summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2008-05-27 17:11:04 +1000
committerDave Airlie <[email protected]>2008-05-27 17:11:04 +1000
commit774b3bc5a57dc768ed09516a6b91358783c63f72 (patch)
tree5dc56126146fdae5ecb686ad751fb9c759009ae7 /src/mesa
parent4af22c9076954d544417e615561695695773708d (diff)
r500: reset fp/fp_const counts
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/r300/r300_state.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_state.c b/src/mesa/drivers/dri/r300/r300_state.c
index 88576738311..32ea7c9f5af 100644
--- a/src/mesa/drivers/dri/r300/r300_state.c
+++ b/src/mesa/drivers/dri/r300/r300_state.c
@@ -2512,6 +2512,9 @@ static void r500SetupPixelShader(r300ContextPtr rmesa)
if (!fp) /* should only happenen once, just after context is created */
return;
+ ((drm_r300_cmd_header_t *) rmesa->hw.r500fp.cmd)->r500fp.count = 0;
+ ((drm_r300_cmd_header_t *) rmesa->hw.r500fp_const.cmd)->r500fp.count = 0;
+
r500TranslateFragmentShader(rmesa, fp);
if (!fp->translated) {
fprintf(stderr, "%s: No valid fragment shader, exiting\n",