From ce87da71e93d9eea7e9a2667e3273cab9c97667f Mon Sep 17 00:00:00 2001 From: Daniel Schürmann Date: Wed, 4 Mar 2020 16:55:13 +0100 Subject: nir: add pass to lower discard() to demote() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This pass is intended to work around game bugs, only! It also lowers nir_intrinsic_load_helper_invocation to nir_intrinsic_is_helper_invocation for consistency. Reviewed-by: Marek Olšák Part-of: --- src/compiler/nir/nir.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/compiler/nir/nir.h') diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 804e2d82519..a151f7b8e74 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -4197,6 +4197,8 @@ typedef enum { bool nir_lower_interpolation(nir_shader *shader, nir_lower_interpolation_options options); +bool nir_lower_discard_to_demote(nir_shader *shader); + bool nir_normalize_cubemap_coords(nir_shader *shader); void nir_live_ssa_defs_impl(nir_function_impl *impl); -- cgit v1.2.3