From: Corbin Simpson Date: Sat, 4 Apr 2009 09:19:48 +0000 (-0700) Subject: r300-gallium: Fix bad register write. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=23639ddbaea67185c87c9e2332f10ba95723b2cb;p=mesa.git r300-gallium: Fix bad register write. --- diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c index 0ee32334460..f28404152f0 100644 --- a/src/gallium/drivers/r300/r300_emit.c +++ b/src/gallium/drivers/r300/r300_emit.c @@ -370,15 +370,16 @@ void r300_emit_viewport_state(struct r300_context* r300, { CS_LOCALS(r300); - BEGIN_CS(7); - OUT_CS_REG_SEQ(R300_SE_VPORT_XSCALE, 7); + BEGIN_CS(9); + OUT_CS_REG_SEQ(R300_SE_VPORT_XSCALE, 6); OUT_CS_32F(viewport->xscale); OUT_CS_32F(viewport->xoffset); OUT_CS_32F(viewport->yscale); OUT_CS_32F(viewport->yoffset); OUT_CS_32F(viewport->zscale); OUT_CS_32F(viewport->zoffset); - OUT_CS(viewport->vte_control); + + OUT_CS_REG(R300_VAP_VTE_CNTL, viewport->vte_control); END_CS; }