freedreno: Use the resource size rather than BO size for VFD_FETCH[].SIZE.
authorEmma Anholt <emma@anholt.net>
Mon, 28 Feb 2022 22:39:59 +0000 (14:39 -0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 2 Mar 2022 17:31:49 +0000 (17:31 +0000)
commit35ddb65ea6b5310c56e75f274a2456e49ef04f55
tree74e5e0639f9a24959ed0834f9a3973982ace9f79
parentb21e7e1ef7ba2c2cf97f073a8a01d6bc43835622
freedreno: Use the resource size rather than BO size for VFD_FETCH[].SIZE.

We should be using the API size to clamp, rather than what we allocated
the BO into.

Fixes: #13
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15198>
src/gallium/drivers/freedreno/a4xx/fd4_emit.c
src/gallium/drivers/freedreno/a5xx/fd5_emit.c
src/gallium/drivers/freedreno/a6xx/fd6_emit.c