vallium: limit buffer allocations to gallium max.
authorDave Airlie <airlied@redhat.com>
Fri, 17 Jul 2020 01:30:25 +0000 (11:30 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 31 Aug 2020 00:28:21 +0000 (10:28 +1000)
commit668e4c235657ba230eab326d5001f60f37e403c3
treed6ab9a467154cbdf60ca2d0fc9542a29085906c9
parent857008850f37886f3febeaaf3b4e42f3db4e7603
vallium: limit buffer allocations to gallium max.

Don't allocate buffers greater than gallium can handle.

Fixes:
dEQP-VK.api.buffer.basic.size_max_uint64

Fixes: b38879f8c5f57b7f1802 ("vallium: initial import of the vulkan frontend")
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6381>
src/gallium/frontends/vallium/val_image.c