r500: reset fp/fp_const counts

This commit is contained in:
Dave Airlie 2008-05-27 17:11:04 +10:00
parent 4af22c9076
commit 774b3bc5a5
1 changed files with 3 additions and 0 deletions

View File

@ -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",