diff options
author | Thomas Hindoe Paaboel Andersen <[email protected]> | 2016-04-13 03:06:05 +0200 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-04-13 11:51:34 +1000 |
commit | b89708f95fafc458cc79bc210407b723a0f0f78c (patch) | |
tree | 3b278ade776458083888ce4eb0843318ea94226c /src/gallium/auxiliary | |
parent | b9294bc3452737914e2528775b3ae2099ab74110 (diff) |
tgsi: fix buffer overflow
Increase r to four channels as rgba is written to it
Reviewed-by: Edward O'Callaghan <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c index fb5105173c6..41dd0f0466a 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_exec.c +++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c @@ -4011,7 +4011,7 @@ static void exec_atomop_buf(struct tgsi_exec_machine *mach, const struct tgsi_full_instruction *inst) { - union tgsi_exec_channel r[3]; + union tgsi_exec_channel r[4]; union tgsi_exec_channel value[4], value2[4]; float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]; float rgba2[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]; |