zink: use pipe_resource::width0 for clamping ssbo sizes
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 13 May 2021 12:53:04 +0000 (08:53 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 2 Jul 2021 03:29:04 +0000 (03:29 +0000)
commit9be640ff21e389c69b1ed266a73de7245273414f
tree7c764a23c5b81c33c2699ada2fa7ccbd1b3b7bad
parent46695dd93816a335bdfc0097200fe99f5640f856
zink: use pipe_resource::width0 for clamping ssbo sizes

zink_resource_object::size is the size of the memory allocation, which
is effectively unrelated

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11687>
src/gallium/drivers/zink/zink_context.c