mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
aco/ra: set opsel_hi to zero when converting to VOP2
Otherwise the new modifier validation will fail. Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21023>
This commit is contained in:
parent
366cf4efaa
commit
fc193ab4db
1 changed files with 1 additions and 0 deletions
|
|
@ -2637,6 +2637,7 @@ optimize_encoding_vop2(Program* program, ra_ctx& ctx, RegisterFile& register_fil
|
|||
static_assert(sizeof(VOP2_instruction) <= sizeof(VOP3P_instruction),
|
||||
"Invalid direct instruction cast.");
|
||||
instr->format = Format::VOP2;
|
||||
instr->valu().opsel_hi = 0;
|
||||
switch (instr->opcode) {
|
||||
case aco_opcode::v_mad_f32: instr->opcode = aco_opcode::v_mac_f32; break;
|
||||
case aco_opcode::v_fma_f32: instr->opcode = aco_opcode::v_fmac_f32; break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue