Revert "nir: drop unused alpha_ref_float"
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 21 Oct 2019 08:48:07 +0000 (10:48 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 23 Oct 2019 11:03:38 +0000 (13:03 +0200)
This reverts commit e8095f2af0736b5937674ca319f29cc9dabb17d4.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Jose Maria Casanova <jmcasanova@igalia.com>
src/compiler/nir/nir_divergence_analysis.c
src/compiler/nir/nir_intrinsics.py

index f03dfec36f9fedc07efe947249c0f7daee21d74f..301d7a4820b09d9a6efad17f62460f294c22f94e 100644 (file)
@@ -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:
index 637576c092a5cfe1affb951477c08383e272eaca..a648995f7fda471c56c1b0b106798f4e8e69fdd6 100644 (file)
@@ -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)