mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 10:10:09 +01:00
panfrost: Generalize pan_blitter's reg count assert
Needed to avoid crashing on Bifrost/Valhall. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11733>
This commit is contained in:
parent
8ac4156d19
commit
4a79bbdb38
1 changed files with 2 additions and 1 deletions
|
|
@ -417,7 +417,8 @@ pan_blitter_get_blend_shaders(struct panfrost_device *dev,
|
|||
nir_type_float32, /* unused */
|
||||
i);
|
||||
|
||||
assert(b->work_reg_count <= 4);
|
||||
ASSERTED unsigned full_threads = (dev->arch < 7) ? 4 : 32;
|
||||
assert(b->work_reg_count <= full_threads);
|
||||
struct panfrost_ptr bin =
|
||||
pan_pool_alloc_aligned(dev->blitter.shaders.pool,
|
||||
b->binary.size,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue