From: Corbin Simpson Date: Wed, 11 Mar 2009 10:24:19 +0000 (-0700) Subject: r300-gallium: Fix CS count in fb state emit. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ddba20b064253f0556e078157ba6ff8f3250441b;p=mesa.git r300-gallium: Fix CS count in fb state emit. --- diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c index ad65832ab34..4ffd92c9dc3 100644 --- a/src/gallium/drivers/r300/r300_emit.c +++ b/src/gallium/drivers/r300/r300_emit.c @@ -160,7 +160,7 @@ void r300_emit_fb_state(struct r300_context* r300, struct r300_texture* tex; int i; - BEGIN_CS((6 * fb->nr_cbufs) + (fb->zsbuf ? 5 : 0) + 4); + BEGIN_CS((6 * fb->nr_cbufs) + (fb->zsbuf ? 6 : 0) + 4); for (i = 0; i < fb->nr_cbufs; i++) { tex = (struct r300_texture*)fb->cbufs[i]->texture; OUT_CS_REG_SEQ(R300_RB3D_COLOROFFSET0 + (4 * i), 1);