aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir.h
diff options
context:
space:
mode:
authorDaniel Schürmann <[email protected]>2020-03-04 16:55:13 +0100
committerMarge Bot <[email protected]>2020-03-09 12:29:32 +0000
commitce87da71e93d9eea7e9a2667e3273cab9c97667f (patch)
treebece32f0db7bb5f02c3ef7b8be61b5fe818c2f9e /src/compiler/nir/nir.h
parent5adcfa68a935f866dd76f87a189108fbbf226630 (diff)
nir: add pass to lower discard() to demote()
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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4047>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r--src/compiler/nir/nir.h2
1 files changed, 2 insertions, 0 deletions
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);