From 7278266612fe6be91b30b084de666a1ac4f2c20b Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 27 May 2008 17:39:35 +1000 Subject: [PATCH] r500: need to re-setup inst offset/end for translated programs this fixes texenv --- src/mesa/drivers/dri/r300/r500_fragprog.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/drivers/dri/r300/r500_fragprog.c b/src/mesa/drivers/dri/r300/r500_fragprog.c index f76a3d9560b..0e85a2d7fb5 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); -- 2.30.2