mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 22:30:24 +01:00
st/glsl_to_tgsi: when doing reladdr get vec4 of correct type
This fixes fp64 relative addressing, in the upcoming dmat-vs-gs-tcs-tes.shader_test. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
d87894b98f
commit
84dbf3c4ff
1 changed files with 1 additions and 1 deletions
|
|
@ -1441,7 +1441,7 @@ glsl_to_tgsi_visitor::reladdr_to_temp(ir_instruction *ir,
|
|||
if (reg->reladdr2) emit_arl(ir, address_reg2, *reg->reladdr2);
|
||||
|
||||
if (*num_reladdr != 1) {
|
||||
st_src_reg temp = get_temp(glsl_type::vec4_type);
|
||||
st_src_reg temp = get_temp(reg->type == GLSL_TYPE_DOUBLE ? glsl_type::dvec4_type : glsl_type::vec4_type);
|
||||
|
||||
emit_asm(ir, TGSI_OPCODE_MOV, st_dst_reg(temp), *reg);
|
||||
*reg = temp;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue