Fix up varying pull constants
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 15 Oct 2014 22:36:43 +0000 (15:36 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Jan 2015 15:18:59 +0000 (07:18 -0800)
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp

index 2b746728a28e714aff1c183d7fb996648913d74b..350cf3fd5fa85fa036827a67ae7bb9f15b4a5a30 100644 (file)
@@ -1424,7 +1424,7 @@ fs_visitor::nir_emit_intrinsic(nir_intrinsic_instr *instr)
       for (unsigned i = 0;
            i < nir_intrinsic_infos[instr->intrinsic].dest_components; i++) {
          exec_list list = VARYING_PULL_CONSTANT_LOAD(dest, surf_index,
-                                                      dest, base_offset + i);
+                                                     offset, base_offset + i);
          fs_inst *last_inst = (fs_inst *) list.get_tail();
          if (instr->has_predicate)
                last_inst->predicate = BRW_PREDICATE_NORMAL;