freedreno/a5xx: Remove bogus assertion about BO size.
authorEmma Anholt <emma@anholt.net>
Thu, 4 Nov 2021 17:27:42 +0000 (10:27 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 4 Nov 2021 22:49:29 +0000 (22:49 +0000)
commit99f5b7ba1ed3c0b09492d26aae7d69edcced8fd2
tree590cfc581f69548a848d15206245055c839f5b31
parent03d8677bcaf81adc91fae39b4d062a7000b1f420
freedreno/a5xx: Remove bogus assertion about BO size.

The slice->size0 temp is being used as both the array stride (incorrectly)
and as the size of the slice (for this assert).  This assert doesn't seem
to be in the right place to me, if you want to check that offset+slice
size is < bo size, you could just do that at the end of layout setup.

This caused troubles when fixing the temp to be the actual array stride
for filling out the HW state, since then rendering to nonzero levels would
think that the rendering overflowed the BO when it doesn't.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13668>
src/gallium/drivers/freedreno/a5xx/fd5_gmem.c