mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 10:18:05 +02:00
tgsi: fix out of bounds access in exec_atomop()
The number of channels must be 4 for all RGBA components.
Fixes: 22d129601 ("tgsi: add support for image operations to tgsi_exec. (v2.1)")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
9076e04934
commit
05902a6686
1 changed files with 1 additions and 1 deletions
|
|
@ -3853,7 +3853,7 @@ static void
|
|||
exec_atomop(struct tgsi_exec_machine *mach,
|
||||
const struct tgsi_full_instruction *inst)
|
||||
{
|
||||
union tgsi_exec_channel r[3], sample_r;
|
||||
union tgsi_exec_channel r[4], sample_r;
|
||||
union tgsi_exec_channel value[4], value2[4];
|
||||
float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE];
|
||||
float rgba2[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue