i965/fs: Fix up for 8752764076.

I failed to commit and squash before pushing.
This commit is contained in:
Eric Anholt 2011-05-27 09:50:34 -07:00
parent 9bd7e9c6b2
commit 0653c450cc
2 changed files with 4 additions and 4 deletions

View 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) {

View 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