mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 08:00:12 +01:00
panfrost: Fix NULL deref for an empty frag shader
Fixes debug builds of dEQP-GLES31.functional.stencil_texturing.render.* Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9105>
This commit is contained in:
parent
fa9046b262
commit
50f32bb6e2
1 changed files with 2 additions and 1 deletions
|
|
@ -315,7 +315,8 @@ panfrost_emit_bifrost_blend(struct panfrost_batch *batch,
|
|||
* the same top 32 bit as the fragment shader.
|
||||
* TODO: Ensure that's always the case.
|
||||
*/
|
||||
assert((blend[i].shader.gpu & (0xffffffffull << 32)) ==
|
||||
assert(!fs->bo ||
|
||||
(blend[i].shader.gpu & (0xffffffffull << 32)) ==
|
||||
(fs->bo->ptr.gpu & (0xffffffffull << 32)));
|
||||
cfg.bifrost.internal.shader.pc = (u32)blend[i].shader.gpu;
|
||||
unsigned ret_offset = fs->info.bifrost.blend[i].return_offset;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue