tgsi: fix out of bounds access in exec_atomop()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 31 Mar 2016 08:54:17 +0000 (10:54 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 31 Mar 2016 21:15:16 +0000 (07:15 +1000)
commit05902a668611094ec876929fc2dfe1172043e4b9
tree909aed0b389228d8d2065473c7d7845c38e2b4be
parent9076e049340db0c55f57abb4ee9bbaffba61d45d
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>
src/gallium/auxiliary/tgsi/tgsi_exec.c