mesa/src/microsoft
Daniel Schürmann 9b1a748b5e nir: remove nir_intrinsic_discard
The semantics of discard differ between GLSL and HLSL and
their various implementations. Subsequently, numerous application
bugs occurred and SPV_EXT_demote_to_helper_invocation was written
in order to clarify the behavior. In NIR, we now have 3 different
intrinsics for 2 things, and while demote and terminate have clear
semantics, discard still doesn't and can mean either of the two.

This patch entirely removes nir_intrinsic_discard and
nir_intrinsic_discard_if and replaces all occurences either with
nir_intrinsic_terminate{_if} or nir_intrinsic_demote{_if} in the
case that the NIR option 'discard_is_demote' is being set.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27617>
2024-06-17 19:37:16 +00:00
..
ci nir: introduce discard_is_demote compiler option 2024-06-17 19:37:15 +00:00
clc microsoft/clc: fix incorrect changes that got through while the Windows CI was down 2024-05-10 20:52:21 +00:00
compiler nir: remove nir_intrinsic_discard 2024-06-17 19:37:16 +00:00
spirv_to_dxil nir: remove nir_intrinsic_discard 2024-06-17 19:37:16 +00:00
vulkan dozen: Advertise VK_EXT_shader_replicated_composites 2024-06-04 16:34:48 +00:00
meson.build microsoft: Whitespace change to trigger CI 2023-12-15 00:39:10 +00:00