diff options
author | Kristian Høgsberg Kristensen <[email protected]> | 2015-08-25 16:14:59 -0700 |
---|---|---|
committer | Kristian Høgsberg Kristensen <[email protected]> | 2015-08-25 16:14:59 -0700 |
commit | 5360edcb304e147341b934567f3bbf40e9d5a3b5 (patch) | |
tree | 9784209ae4794833124ecb85eb2597abbb35eef5 | |
parent | 647a60226d974288ca8ff106592f156dbd0b2645 (diff) |
vk/vec4: Use the right constant for offset into a UBO
We were using constant 0, which is the set.
Signed-off-by: Kristian Høgsberg Kristensen <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4_nir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp b/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp index ee353b22330..fd3d556bfb6 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp @@ -644,7 +644,7 @@ vec4_visitor::nir_emit_intrinsic(nir_intrinsic_instr *instr) shader_prog->NumUniformBlocks - 1); } - unsigned const_offset = instr->const_index[0]; + unsigned const_offset = instr->const_index[1]; src_reg offset; if (!has_indirect) { |