From: Erik Faye-Lund Date: Mon, 21 Oct 2019 08:48:07 +0000 (+0200) Subject: Revert "nir: drop unused alpha_ref_float" X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=beb6639a9d064b7c4dce389f9ea56fd1373edf33;p=mesa.git Revert "nir: drop unused alpha_ref_float" This reverts commit e8095f2af0736b5937674ca319f29cc9dabb17d4. Reviewed-by: Eric Anholt Reviewed-by: Jose Maria Casanova --- diff --git a/src/compiler/nir/nir_divergence_analysis.c b/src/compiler/nir/nir_divergence_analysis.c index f03dfec36f9..301d7a4820b 100644 --- a/src/compiler/nir/nir_divergence_analysis.c +++ b/src/compiler/nir/nir_divergence_analysis.c @@ -98,6 +98,7 @@ visit_intrinsic(bool *divergent, nir_intrinsic_instr *instr, case nir_intrinsic_load_draw_id: case nir_intrinsic_load_is_indexed_draw: case nir_intrinsic_load_viewport_scale: + case nir_intrinsic_load_alpha_ref_float: case nir_intrinsic_load_user_clip_plane: case nir_intrinsic_load_viewport_x_scale: case nir_intrinsic_load_viewport_y_scale: diff --git a/src/compiler/nir/nir_intrinsics.py b/src/compiler/nir/nir_intrinsics.py index 637576c092a..a648995f7fd 100644 --- a/src/compiler/nir/nir_intrinsics.py +++ b/src/compiler/nir/nir_intrinsics.py @@ -572,6 +572,7 @@ system_value("work_group_id", 3) system_value("user_clip_plane", 4, indices=[UCP_ID]) system_value("num_work_groups", 3) system_value("helper_invocation", 1, bit_sizes=[1, 32]) +system_value("alpha_ref_float", 1) system_value("layer_id", 1) system_value("view_index", 1) system_value("subgroup_size", 1)