vec4/generator: Actually pass the sampler into generate_tex
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 15 Dec 2015 05:10:26 +0000 (21:10 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 15 Dec 2015 05:13:52 +0000 (21:13 -0800)
This is an artifact of the way the separate samplers/textures series ended
up getting sent out and rebased.  This should fix a number of CTS tests
involving geometry shaders.

src/mesa/drivers/dri/i965/brw_vec4_generator.cpp

index 205a86d597af0813718e5082556a0ccc5aeb8371..3299843bfa9408045c9e7ddee440247bab7adf02 100644 (file)
@@ -1341,7 +1341,7 @@ generate_code(struct brw_codegen *p,
       case SHADER_OPCODE_TG4:
       case SHADER_OPCODE_TG4_OFFSET:
       case SHADER_OPCODE_SAMPLEINFO:
-         generate_tex(p, prog_data, inst, dst, src[0], src[1], src[1]);
+         generate_tex(p, prog_data, inst, dst, src[0], src[1], src[2]);
          break;
 
       case VS_OPCODE_URB_WRITE: