mesa/src/intel
Lionel Landwerlin 28207669d0 anv: Fix stencil layout in render passes
We incorrectly utilize the stencil layouts structures even if we
should stick to the depth_stencil ones if the layout includes stencil.

v2: Don't forget stencil only layout (Nanley)
    Simplify callers of new helper functions (Nanley)

v3: Store VK_IMAGE_LAYOUT_UNDEFINED when no stencil is available (Nanley)
    Use a switch statement (Nanley)

v4: Consider all layouts but depth only to be potential stencil layouts (Lionel)

v5: Refactor helper in vk_image_layout_depth_only() and discard
    VkAttachmentDescriptionStencilLayoutKHR in
    VkAttachmentDescription2KHR if format is not depth/stencil.

v5: s/LAYOUT_COLOR_ATTACHMENT_OPTIMAL/LAYOUT_DEPTH_ATTACHMENT_OPTIMAL/ (Nanley)

v6: Fix overly harsh assert()

Fixes: c1c346f166 ("anv: implement VK_KHR_separate_depth_stencil_layouts")
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4084
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8475>
2021-01-20 20:36:34 +00:00
..
blorp intel/blorp: use intrinsic builders 2021-01-06 14:34:41 +00:00
common intel/mi_builder: fix self modifying batches 2021-01-15 13:26:23 +02:00
compiler intel/fs: Separate SLM size calculation from encoding 2021-01-19 21:49:04 +00:00
dev intel: change urb max shader geometry for CML GT1 2021-01-19 13:37:35 +00:00
genxml intel/genxml,anv,iris: Drop the legacy compute path from gen125.xml 2021-01-13 13:10:28 -08:00
isl intel/isl: move get_tile dims/masks to common isl header 2020-12-30 06:06:33 +10:00
perf intel/perf: move gt_frequency to results 2021-01-15 13:26:23 +02:00
tools intel/tools/aubinator_error_decode: fix small memory leaks 2020-12-09 12:15:56 +00:00
vulkan anv: Fix stencil layout in render passes 2021-01-20 20:36:34 +00:00
Android.blorp.mk
Android.common.mk intel: split driver/device UUID generators 2020-10-07 11:11:23 +03:00
Android.compiler.mk android: fix build issues with brw_nir_trig_workarounds.c 2017-10-04 07:39:05 +03:00
Android.dev.mk intel: add identifier for debug purposes 2020-05-20 15:58:22 +00:00
Android.genxml.mk intel/genxml: Build gen 12.5 2020-12-01 19:06:22 +00:00
Android.isl.mk intel/isl: Build gen 12.5 2020-12-01 19:06:22 +00:00
Android.mk i965: extract performance query metrics 2019-04-17 14:10:42 +01:00
Android.perf.mk i965: extract performance query metrics 2019-04-17 14:10:42 +01:00
Android.vulkan.mk intel/anv: Build gen 12.5 2020-12-01 19:06:22 +00:00
Makefile.perf.am i965: extract performance query metrics 2019-04-17 14:10:42 +01:00
Makefile.sources isl: Fix android build 2020-12-05 11:42:15 +00:00
meson.build meson: only build imgui when needed 2019-11-25 07:51:56 +00:00