mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
brw/algebraic: Protect SHUFFLE from OOB indices
Akin to b67230de63 ("intel/fs: Protect opt_algebraic from OOB BROADCAST
indices"), we need to protect SHUFFLE as well.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13351
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36779>
This commit is contained in:
parent
a693539ff9
commit
b4b692c486
1 changed files with 2 additions and 2 deletions
|
|
@ -741,9 +741,9 @@ brw_opt_algebraic(brw_shader &s)
|
|||
inst->resize_sources(1);
|
||||
progress = true;
|
||||
} else if (inst->src[1].file == IMM) {
|
||||
const unsigned comp = inst->src[1].ud & (inst->exec_size - 1);
|
||||
inst->opcode = BRW_OPCODE_MOV;
|
||||
inst->src[0] = component(inst->src[0],
|
||||
inst->src[1].ud);
|
||||
inst->src[0] = component(inst->src[0], comp);
|
||||
inst->resize_sources(1);
|
||||
progress = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue