freedreno: Cap reported video memory by VA size
authorRob Clark <robdclark@chromium.org>
Mon, 8 Aug 2022 19:01:58 +0000 (12:01 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 8 Aug 2022 22:10:24 +0000 (22:10 +0000)
commit401d03e1e947279306a9cccc8b86996c940ef91b
tree583f5b51f9730fc957da1eb27e52440a27ff09de
parent2bc1d08c48bd3b309eb9b65db5ac1d7749f512cd
freedreno: Cap reported video memory by VA size

Don't report that we have more video memory than the GPU's virtual
address space size.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17947>
src/gallium/drivers/freedreno/freedreno_screen.c