mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
anv: Fix misplaced assertion in anv_scratch_pool_alloc
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com> Fixes:ee42a489("anv: Fix scratch pool buffer allocation sizes") (cherry picked from commit2fbc722dcf) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39003>
This commit is contained in:
parent
66d590cf24
commit
7264f03e23
2 changed files with 2 additions and 3 deletions
|
|
@ -164,7 +164,7 @@
|
|||
"description": "anv: Fix misplaced assertion in anv_scratch_pool_alloc",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "ee42a48984d0ce17ac5d1d4c2218e789d6b6a9f0",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -1387,8 +1387,6 @@ anv_scratch_pool_alloc(struct anv_device *device, struct anv_scratch_pool *pool,
|
|||
unsigned bucket = scratch_size_log2 - 11;
|
||||
assert(bucket < 16);
|
||||
|
||||
assert(stage < ARRAY_SIZE(pool->bos[0]));
|
||||
|
||||
const struct intel_device_info *devinfo = device->info;
|
||||
|
||||
/* On GFX version 12.5, scratch access changed to a surface-based model.
|
||||
|
|
@ -1399,6 +1397,7 @@ anv_scratch_pool_alloc(struct anv_device *device, struct anv_scratch_pool *pool,
|
|||
if (devinfo->verx10 >= 125)
|
||||
stage = MESA_SHADER_COMPUTE;
|
||||
|
||||
assert(stage < ARRAY_SIZE(pool->bos[0]));
|
||||
struct anv_bo *bo = p_atomic_read(&pool->bos[bucket][stage]);
|
||||
|
||||
if (bo != NULL)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue