radeonsi: fix an out-of-bounds read reported by ASAN
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 16 Nov 2018 16:20:26 +0000 (17:20 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 19 Nov 2018 10:16:35 +0000 (11:16 +0100)
commit46a59ce0262a44d6520787741085a716c99200ed
treeef5c910bd409016341bf7871198254db8a157ac9
parentd174cbccfadf206bfbe237e5038b3aa7992b96ba
radeonsi: fix an out-of-bounds read reported by ASAN

We read 4 values out of sample_locs_8x, so make sure the array is
big enough.

Fixes: ac76aeef20 ("radeonsi: switch back to standard DX sample positions")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_state_msaa.c