mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
st/glsl_to_tgsi: fix block copies of arrays of doubles
Set the type of the left-hand side to the same as the right-hand side,
so that when the base type is double, the writemask of the MOV instruction
is properly fixed up.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Cc: 13.0 <mesa-stable@lists.freedesktop.org>
(cherry picked from commit ca592af880)
This commit is contained in:
parent
4d478aad50
commit
3a030e886d
1 changed files with 1 additions and 0 deletions
|
|
@ -2799,6 +2799,7 @@ glsl_to_tgsi_visitor::emit_block_mov(ir_assignment *ir, const struct glsl_type *
|
|||
|
||||
assert(type->is_scalar() || type->is_vector());
|
||||
|
||||
l->type = type->base_type;
|
||||
r->type = type->base_type;
|
||||
if (cond) {
|
||||
st_src_reg l_src = st_src_reg(*l);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue