iris: fix assert to reflect correct limit for encoded size

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/10805>
This commit is contained in:
Lionel Landwerlin 2021-05-14 16:04:13 +03:00 committed by Marge Bot
parent b3499435ec
commit fc765d6a8d

View file

@ -2149,7 +2149,7 @@ iris_get_scratch_space(struct iris_context *ice,
const struct intel_device_info *devinfo = &screen->devinfo;
unsigned encoded_size = ffs(per_thread_scratch) - 11;
assert(encoded_size < (1 << 16));
assert(encoded_size < ARRAY_SIZE(ice->shaders.scratch_bos));
struct iris_bo **bop = &ice->shaders.scratch_bos[encoded_size][stage];