i965/fs: Fix up for 8752764076e5b3f052a57e0134424a37bf2e9164.
authorEric Anholt <eric@anholt.net>
Fri, 27 May 2011 16:50:34 +0000 (09:50 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 27 May 2011 16:51:28 +0000 (09:51 -0700)
I failed to commit and squash before pushing.

src/mesa/drivers/dri/i965/brw_fs_emit.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp

index 8958aeb8153f02fbbcfaeca84d4ecaa581b9eb99..6b7c434949c01029f8ccbd7e8d9c43983c85be87 100644 (file)
@@ -602,7 +602,7 @@ fs_visitor::generate_code()
 
    if (unlikely(INTEL_DEBUG & DEBUG_WM)) {
       printf("Native code for fragment shader %d (%d-wide dispatch):\n",
-            ctx->Shader.CurrentFragmentProgram->Name, c->dispatch_width);
+            prog->Name, c->dispatch_width);
    }
 
    foreach_iter(exec_list_iterator, iter, this->instructions) {
index 1445582dc00bfc06f894a2d80f17964500dd82ea..6e81256cec5f34cff2b8e958b9f81cf887d5ddb0 100644 (file)
@@ -867,9 +867,9 @@ fs_visitor::visit(ir_texture *ir)
    assert(!ir->projector);
 
    sampler = _mesa_get_sampler_uniform_value(ir->sampler,
-                                            ctx->Shader.CurrentFragmentProgram,
-                                            &brw->fragment_program->Base);
-   sampler = c->fp->program.Base.SamplerUnits[sampler];
+                                            prog,
+                                            &fp->Base);
+   sampler = fp->Base.SamplerUnits[sampler];
 
    /* The 965 requires the EU to do the normalization of GL rectangle
     * texture coordinates.  We use the program parameter state