mesa/src/intel
Jason Ekstrand df0e2a1565 anv: Don't assume depth/stencil attachments have depth
If a secondary command buffer is used and the client provides a
framebuffer and that framebuffer has a stencil-only attchment, we would
try to get the aux usage for the depth component of that attachment and
crash.  Check the aspects of the image before looking at aux usage.
This fixes at least the following SkQP tests on my Tigerlake:

 - vk_circular-clips
 - vk_filterfastbounds
 - vk_innershapes_bw
 - vk_lineclosepath
 - vk_multipicturedraw_rrectclip_simple
 - vk_pathinvfill
 - vk_quadclosepath
 - vk_rrect_clip_bw
 - vk_windowrectangles

Fixes: 0d8b9c529c ("anv: Allow PMA optimization to be enabled in secondary command buffers")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Tested-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15048>
2022-02-16 23:02:09 +00:00
..
blorp blorp: Assert that blorp_copy() on the blitter can handle it 2022-02-07 09:50:01 -08:00
ci ci: Bump VK-GL-CTS to 1.3.1.0. 2022-02-08 22:16:36 +00:00
common intel: Add missing dep of gen_*_header.py on utils.py. 2022-02-02 11:21:57 -08:00
compiler intel/compiler: make CLUSTER_BROADCAST always deal with integers 2022-02-16 21:36:42 +00:00
dev anv: enable ray queries 2022-02-08 12:55:25 +00:00
ds intel/ds: fix compilation with perfetto 2022-02-08 12:29:21 +00:00
genxml intel/genxml: add PIPE_CONTROL field for L3 read only cache invalidation 2022-02-09 10:05:10 +00:00
isl intel/isl: Add format assertions for surfaces using CCS 2022-02-10 04:47:14 +00:00
nullhw-layer intel/nullhw: fix build 2021-03-26 20:12:40 +00:00
perf intel/perf: use a function to do common allocations 2022-01-20 06:41:17 +00:00
tools intel: remove chipset_id 2022-01-13 03:09:36 +00:00
vulkan anv: Don't assume depth/stencil attachments have depth 2022-02-16 23:02:09 +00:00
Makefile.perf.am intel: Rename GEN_PERF prefix to INTEL_PERF in build files 2021-04-20 20:06:34 +00:00
meson.build anv: add perfetto source 2022-01-14 20:17:44 +00:00