nak: add more sizes to assert in bindless_image_sparse_load
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Affects
dEQP-VK.sparse_resources.buffer.texel_buffers.sparse_residency.storage_texel_buffer_sparse_read_size_2_10_r64ui_strict

Fixes: 410de4bf69 ("nak: wire up sparse image loads")
Reviewed-by: Mel Henning <mhenning@darkrefraction.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41586>
This commit is contained in:
Dave Airlie 2026-05-15 06:08:21 +10:00
parent 3831935818
commit 1ab8f1eb00

View file

@ -2824,7 +2824,7 @@ impl<'a> ShaderFromNir<'a> {
let comps = intrin.num_components;
assert!(intrin.def.bit_size() == 32);
assert!(comps == 5);
assert!(comps == 2 || comps == 3 || comps == 5);
let image_access =
ImageAccess::Formatted(ChannelMask::for_comps(comps - 1));