anv: bound load descriptor mem better

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21645>
This commit is contained in:
Lionel Landwerlin
2023-01-10 10:18:06 +02:00
committed by Marge Bot
parent 6d1223a5c9
commit 1c45cd217e
@@ -269,7 +269,7 @@ build_load_descriptor_mem(nir_builder *b,
.align_mul = 8,
.align_offset = desc_offset % 8,
.range_base = 0,
.range = ~0);
.range = num_components * bit_size / 8);
}
default: