freedreno: Assert that we don't exceed constlen.
authorEric Anholt <eric@anholt.net>
Wed, 26 Jun 2019 22:35:44 +0000 (15:35 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 17 Jul 2019 23:20:12 +0000 (16:20 -0700)
commit85bbdaff6ca5a9b0480df2f28cf48424121c0ca3
tree6af2f32e767cb221c5df79044033bf3a73134df5
parentbc50ecfa7af9976ce7543aeecef9337d5c874083
freedreno: Assert that we don't exceed constlen.

We actually could go up to vs->constlen in the binning shader on a6xx,
but for sanity let's make sure that we're always under constlen.  This
would have caught the bug fixed in 572c76fd8826 ("freedreno: Clamp UBO
uploads to the constlen decided by the shader.")

Reviewed-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/ir3/ir3_gallium.c