mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 19:00:13 +01:00
st_glsl_to_tgsi: init index to 0 before get_deref_offsets()
Fixes: 8ec4975cd8 ("st_glsl_to_tgsi: don't try and pass 32-bit values to get_deref_offsets")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101401
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
parent
8dddb9788a
commit
6d8a387f78
1 changed files with 2 additions and 2 deletions
|
|
@ -3776,7 +3776,7 @@ glsl_to_tgsi_visitor::visit_image_intrinsic(ir_call *ir)
|
|||
|
||||
st_src_reg reladdr;
|
||||
st_src_reg image(PROGRAM_IMAGE, 0, GLSL_TYPE_UINT);
|
||||
uint16_t index;
|
||||
uint16_t index = 0;
|
||||
get_deref_offsets(img, &sampler_array_size, &sampler_base,
|
||||
&index, &reladdr, true);
|
||||
|
||||
|
|
@ -4392,7 +4392,7 @@ glsl_to_tgsi_visitor::visit(ir_texture *ir)
|
|||
|
||||
st_src_reg sampler(PROGRAM_SAMPLER, 0, GLSL_TYPE_UINT);
|
||||
|
||||
uint16_t index;
|
||||
uint16_t index = 0;
|
||||
get_deref_offsets(ir->sampler, &sampler_array_size, &sampler_base,
|
||||
&index, &reladdr, true);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue