mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
aco: fix labelling of s_not with constant
Fixes RADV compilation of a Cyberpunk 2077 RT pipeline with
PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT.
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Fixes: dfaa3c0af6 ("aco: Flip s_cbranch / s_cselect to optimize out an s_not if possible.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27194>
This commit is contained in:
parent
7adc7678a8
commit
6dc182b6b2
1 changed files with 2 additions and 1 deletions
|
|
@ -2022,7 +2022,8 @@ label_instruction(opt_ctx& ctx, aco_ptr<Instruction>& instr)
|
|||
break;
|
||||
case aco_opcode::s_not_b32:
|
||||
case aco_opcode::s_not_b64:
|
||||
if (ctx.info[instr->operands[0].tempId()].is_uniform_bool()) {
|
||||
if (!instr->operands[0].isTemp()) {
|
||||
} else if (ctx.info[instr->operands[0].tempId()].is_uniform_bool()) {
|
||||
ctx.info[instr->definitions[0].tempId()].set_uniform_bitwise();
|
||||
ctx.info[instr->definitions[1].tempId()].set_scc_invert(
|
||||
ctx.info[instr->operands[0].tempId()].temp);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue