mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 15:30:14 +01:00
st/glsl_to_tgsi: handle offsets from inputs
This fixes: GL45-CTS.gpu_shader5.texture_gather_offset_color_repeat Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
aa730aca20
commit
f75a26d1ba
1 changed files with 9 additions and 0 deletions
|
|
@ -5581,6 +5581,15 @@ translate_tex_offset(struct st_translate *t,
|
||||||
offset.SwizzleZ = imm_src.SwizzleZ;
|
offset.SwizzleZ = imm_src.SwizzleZ;
|
||||||
offset.Padding = 0;
|
offset.Padding = 0;
|
||||||
break;
|
break;
|
||||||
|
case PROGRAM_INPUT:
|
||||||
|
imm_src = t->inputs[t->inputMapping[imm_src.Index]];
|
||||||
|
offset.File = imm_src.File;
|
||||||
|
offset.Index = imm_src.Index;
|
||||||
|
offset.SwizzleX = GET_SWZ(in_offset->swizzle, 0);
|
||||||
|
offset.SwizzleY = GET_SWZ(in_offset->swizzle, 1);
|
||||||
|
offset.SwizzleZ = GET_SWZ(in_offset->swizzle, 2);
|
||||||
|
offset.Padding = 0;
|
||||||
|
break;
|
||||||
case PROGRAM_TEMPORARY:
|
case PROGRAM_TEMPORARY:
|
||||||
imm_src = ureg_src(t->temps[in_offset->index]);
|
imm_src = ureg_src(t->temps[in_offset->index]);
|
||||||
offset.File = imm_src.File;
|
offset.File = imm_src.File;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue