projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4af22c9
)
r500: reset fp/fp_const counts
author
Dave Airlie
<airlied@redhat.com>
Tue, 27 May 2008 07:11:04 +0000
(17:11 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 27 May 2008 07:11:04 +0000
(17:11 +1000)
src/mesa/drivers/dri/r300/r300_state.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r300/r300_state.c
b/src/mesa/drivers/dri/r300/r300_state.c
index 88576738311cf27b753ff949f0fca14cea22500f..32ea7c9f5af8704cffa3a7f2395ecb3ccf829979 100644
(file)
--- 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",