mesa/src/panfrost/lib
Italo Nicola 7682a5de04 panfrost: fix null deref when no color buffer is attached
Do not dereference color buffer #0 in the SFBD code path if no color buffer is
attached, as with depth-only attachments. Fixes a crash running glmark2 -b
shadow on Mali T720.

Signed-off-by: Italo Nicola <italonicola@collabora.com>
Fixes: c746747cb8 ("panfrost: fix GL_EXT_multisampled_render_to_texture regression")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12927>
2021-09-20 14:42:39 +00:00
..
tests panfrost: Add unit tests for non-dithered clears 2021-08-18 23:32:40 +00:00
.gitignore panfrost: Add panloader/ to .gitignore 2020-08-06 23:54:24 +00:00
decode.c panfrost: Prepare pandecode to per-gen XML 2021-09-20 15:11:30 +02:00
decode.h panfrost: Prepare pandecode to per-gen XML 2021-09-20 15:11:30 +02:00
decode_common.c panfrost: Prepare pandecode to per-gen XML 2021-09-20 15:11:30 +02:00
gen_macros.h panfrost: Move panfrost_major_version() to gen_macros.h 2021-09-20 15:10:10 +02:00
gen_pack.py pan/gen_pack: Add parens around packed1/2 vars in pan_merge() 2021-08-26 10:35:17 +02:00
meson.build panfrost: Prepare shader helpers to per-gen XML 2021-09-20 15:18:56 +02:00
midgard.xml panfrost: Match sampler "nearest" names 2021-07-23 20:12:18 +00:00
pan_afbc.c panfrost: Remove AFBC format fixups 2021-06-10 18:06:10 +00:00
pan_attributes.c panfrost: Move panfrost_vertex/instance_id to per-gen 2021-07-12 23:12:29 +00:00
pan_blend.c panfrost: Prepare shader helpers to per-gen XML 2021-09-20 15:18:56 +02:00
pan_blend.h panfrost: Prepare blend helpers to per-gen XML 2021-09-20 15:09:19 +02:00
pan_blitter.c panfrost: Prepare shader helpers to per-gen XML 2021-09-20 15:18:56 +02:00
pan_blitter.h panfrost: Prepare blitter helpers to per-gen XML 2021-09-20 15:08:31 +02:00
pan_bo.c panfrost: Move bo->label assignment into the lock 2021-08-24 14:31:54 -04:00
pan_bo.h panfrost: Label all BOs in userspace 2021-05-18 19:19:01 +00:00
pan_clear.c panfrost: Get rid of the mali_xxx enum redefinitions 2021-08-26 10:35:17 +02:00
pan_cs.c panfrost: fix null deref when no color buffer is attached 2021-09-20 14:42:39 +00:00
pan_cs.h panfrost: Prepare pan_cs helpers to per-gen XML 2021-09-20 15:10:00 +02:00
pan_device.h panfrost: Stop including midgard_pack.h directly 2021-08-26 10:35:17 +02:00
pan_encoder.h panfrost: Prepare pan_encoder.h to per-gen XML 2021-09-20 15:18:50 +02:00
pan_format.c panfrost: RGB332_UNORM is not a valid texture format on v6+ 2021-09-20 11:21:29 +00:00
pan_format.h panfrost: Get rid of the mali_xxx enum redefinitions 2021-08-26 10:35:17 +02:00
pan_indirect_dispatch.c panfrost: Prepare shader helpers to per-gen XML 2021-09-20 15:18:56 +02:00
pan_indirect_dispatch.h panfrost: Prepare indirect dispatch helpers to per-gen XML 2021-08-26 10:35:17 +02:00
pan_indirect_draw.c panfrost: Prepare shader helpers to per-gen XML 2021-09-20 15:18:56 +02:00
pan_indirect_draw.h panfrost: Prepare indirect draw helpers to per-gen XML 2021-08-26 10:35:17 +02:00
pan_pool.h panfrost: Stop including midgard_pack.h directly 2021-08-26 10:35:17 +02:00
pan_props.c panfrost: Move panfrost_major_version() to gen_macros.h 2021-09-20 15:10:10 +02:00
pan_samples.c panfrost: Label all BOs in userspace 2021-05-18 19:19:01 +00:00
pan_scoreboard.h panfrost: Prepare scoreboard helpers to per-gen XML 2021-09-20 15:12:33 +02:00
pan_scratch.c panfrost: Fix stack shift calculation 2020-11-13 20:49:06 +00:00
pan_shader.c panfrost: Prepare shader helpers to per-gen XML 2021-09-20 15:18:56 +02:00
pan_shader.h panfrost: Prepare shader helpers to per-gen XML 2021-09-20 15:18:56 +02:00
pan_texture.c panfrost: Prepare texture helpers to per-gen XML 2021-09-20 15:18:56 +02:00
pan_texture.h panfrost: Prepare texture helpers to per-gen XML 2021-09-20 15:18:56 +02:00
pan_tiler.c panfrost: Prepare pan_encoder.h to per-gen XML 2021-09-20 15:18:50 +02:00
pan_util.c panfrost: Use _PU for non-dithered formats 2021-08-11 18:15:52 +00:00
pan_util.h panfrost: Port v5 blend shader issue to blitter 2021-08-23 20:54:34 +00:00
wrap.h panfrost: Prepare pandecode to per-gen XML 2021-09-20 15:11:30 +02:00