zink: use VK_WHOLE_SIZE for full-sized bufferviews
this works around most cts coverage which violates spec by creating a view sized using a range that isn't a multiple of the format's blocksize Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12631>
This commit is contained in:
parent
441018a173
commit
6270f8cb7c
|
@ -619,7 +619,7 @@ get_buffer_view(struct zink_context *ctx, struct zink_resource *res, enum pipe_f
|
|||
bvci.format = zink_get_format(screen, format);
|
||||
assert(bvci.format);
|
||||
bvci.offset = offset;
|
||||
bvci.range = range;
|
||||
bvci.range = !offset && range == res->base.b.width0 ? VK_WHOLE_SIZE : range;
|
||||
|
||||
uint32_t hash = hash_bufferview(&bvci);
|
||||
simple_mtx_lock(&screen->bufferview_mtx);
|
||||
|
|
Loading…
Reference in New Issue