OSDN Git Service

freedreno/ir3: size input/output arrays properly
authorRob Clark <robclark@freedesktop.org>
Tue, 10 May 2016 15:46:11 +0000 (11:46 -0400)
committerRob Clark <robclark@freedesktop.org>
Tue, 10 May 2016 17:17:27 +0000 (13:17 -0400)
commit8623e599fc050e33a1e19bc7f5aac59bc7fa3ae3
treed43a27dab8bc063aea4a4d1ff2d86cd29df7bb5f
parent2483a9a08cae6935e84fab3580ed285c6c68fb75
freedreno/ir3: size input/output arrays properly

We index into these based on var->data.driver_location, which might have
gaps (ie. two inputs, one w/ drvloc 0 and other 2).  This shows up in
(for example) 'bin/copyteximage 1D', but was only noticed recently due
to additional asserts.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c