mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 13:18:04 +02:00
st/mesa: fix broken moves for u2i64 and related ops
These ops just put out mov's directly, which screws up the assignment
logic -- it just tries to only process the "last" mov. Don't try to do
the more optimized thing for 64-bit types, where this is just much
trickier.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8463>
(cherry picked from commit 55c42b7885)
This commit is contained in:
parent
7f76e0d4b2
commit
4956c6bfc5
2 changed files with 2 additions and 1 deletions
|
|
@ -1822,7 +1822,7 @@
|
|||
"description": "st/mesa: fix broken moves for u2i64 and related ops",
|
||||
"nominated": false,
|
||||
"nomination_type": null,
|
||||
"resolution": 4,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -3263,6 +3263,7 @@ glsl_to_tgsi_visitor::visit(ir_assignment *ir)
|
|||
ir->rhs == ((glsl_to_tgsi_instruction *)this->instructions.get_tail())->ir &&
|
||||
!((glsl_to_tgsi_instruction *)this->instructions.get_tail())->is_64bit_expanded &&
|
||||
type_size(ir->lhs->type) == 1 &&
|
||||
!ir->lhs->type->is_64bit() &&
|
||||
l.writemask == ((glsl_to_tgsi_instruction *)this->instructions.get_tail())->dst[0].writemask) {
|
||||
/* To avoid emitting an extra MOV when assigning an expression to a
|
||||
* variable, emit the last instruction of the expression again, but
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue