diff options
author | Dave Airlie <airlied@redhat.com> | 2008-05-27 17:39:35 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-05-27 17:39:35 +1000 |
commit | 7278266612fe6be91b30b084de666a1ac4f2c20b (patch) | |
tree | 1fe806034c74e6c2e60f1b936915d87d145ebc31 | |
parent | 774b3bc5a57dc768ed09516a6b91358783c63f72 (diff) |
r500: need to re-setup inst offset/end for translated programs
this fixes texenv
-rw-r--r-- | src/mesa/drivers/dri/r300/r500_fragprog.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r500_fragprog.c b/src/mesa/drivers/dri/r300/r500_fragprog.c index f76a3d9560..0e85a2d7fb 100644 --- a/src/mesa/drivers/dri/r300/r500_fragprog.c +++ b/src/mesa/drivers/dri/r300/r500_fragprog.c @@ -1402,6 +1402,9 @@ void r500TranslateFragmentShader(r300ContextPtr r300, r300UpdateStateParameters(fp->ctx, _NEW_PROGRAM); + } else { + fp->inst_offset = 0; + fp->inst_end = fp->cs->nrslots - 1; } update_params(fp); |