From: Kristian Høgsberg Kristensen Date: Tue, 25 Aug 2015 23:14:59 +0000 (-0700) Subject: vk/vec4: Use the right constant for offset into a UBO X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5360edcb304e147341b934567f3bbf40e9d5a3b5;p=mesa.git 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 --- 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) {