aco: don't apply omod/clamp of different bit-size

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14810>
This commit is contained in:
Rhys Perry
2022-01-31 18:12:59 +00:00
committed by Marge Bot
parent 7e30f99b0a
commit 3d8a8c6fc1
+3
View File
@@ -3020,6 +3020,9 @@ apply_omod_clamp(opt_ctx& ctx, aco_ptr<Instruction>& instr)
if (!ctx.uses[def_info.instr->definitions[0].tempId()])
return false;
if (def_info.instr->definitions[0].bytes() != instr->definitions[0].bytes())
return false;
/* MADs/FMAs are created later, so we don't have to update the original add */
assert(!ctx.info[instr->definitions[0].tempId()].is_mad());