mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 20:10:17 +01:00
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:
parent
b3499435ec
commit
fc765d6a8d
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue