mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 11:40:31 +01:00
r300g: cleanup the emission of framebuffer state
Some emits are not needed anymore.
This commit is contained in:
parent
8e2f9f4009
commit
67049b59fd
2 changed files with 3 additions and 11 deletions
|
|
@ -388,8 +388,7 @@ void r300_emit_fb_state(struct r300_context* r300, void* state)
|
|||
int i;
|
||||
CS_LOCALS(r300);
|
||||
|
||||
BEGIN_CS((10 * fb->nr_cbufs) + (2 * (4 - fb->nr_cbufs)) +
|
||||
(fb->zsbuf ? 10 : 0) + 6);
|
||||
BEGIN_CS((10 * fb->nr_cbufs) + (fb->zsbuf ? 10 : 0) + 6);
|
||||
|
||||
/* Flush and free renderbuffer caches. */
|
||||
OUT_CS_REG(R300_RB3D_DSTCACHE_CTLSTAT,
|
||||
|
|
@ -433,11 +432,6 @@ void r300_emit_fb_state(struct r300_context* r300, void* state)
|
|||
r300_translate_out_fmt(surf->format));
|
||||
}
|
||||
|
||||
/* Disable unused colorbuffers. */
|
||||
for (; i < 4; i++) {
|
||||
OUT_CS_REG(R300_US_OUT_FMT_0 + (4 * i), R300_US_OUT_FMT_UNUSED);
|
||||
}
|
||||
|
||||
/* Set up a zbuffer. */
|
||||
if (fb->zsbuf) {
|
||||
surf = fb->zsbuf;
|
||||
|
|
|
|||
|
|
@ -505,9 +505,6 @@ static void
|
|||
unsigned max_width, max_height;
|
||||
uint32_t zbuffer_bpp = 0;
|
||||
|
||||
r300->fb_state.size = (10 * state->nr_cbufs) +
|
||||
(2 * (4 - state->nr_cbufs)) +
|
||||
(state->zsbuf ? 10 : 0) + 6;
|
||||
|
||||
if (state->nr_cbufs > 4) {
|
||||
debug_printf("r300: Implementation error: Too many MRTs in %s, "
|
||||
|
|
@ -535,7 +532,8 @@ static void
|
|||
|
||||
memcpy(r300->fb_state.state, state, sizeof(struct pipe_framebuffer_state));
|
||||
|
||||
/* Don't rely on the order of states being set for the first time. */
|
||||
r300->fb_state.size = (10 * state->nr_cbufs) + (state->zsbuf ? 10 : 0) + 6;
|
||||
|
||||
/* XXX wait what */
|
||||
r300->blend_state.dirty = TRUE;
|
||||
r300->dsa_state.dirty = TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue