diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 5f7a0dcd3e8..01a58d7d2c6 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -4096,7 +4096,11 @@ glsl_to_tgsi_visitor::get_deref_offsets(ir_dereference *ir, st_src_reg glsl_to_tgsi_visitor::canonicalize_gather_offset(st_src_reg offset) { - if (offset.reladdr || offset.reladdr2) { + if (offset.reladdr || offset.reladdr2 || + offset.has_index2 || + offset.file == PROGRAM_UNIFORM || + offset.file == PROGRAM_CONSTANT || + offset.file == PROGRAM_STATE_VAR) { st_src_reg tmp = get_temp(glsl_type::ivec2_type); st_dst_reg tmp_dst = st_dst_reg(tmp); tmp_dst.writemask = WRITEMASK_XY; |