summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-11-15 15:15:48 -0800
committerJason Ekstrand <[email protected]>2016-11-22 13:03:29 -0800
commit08441dae59e93c2eea3b64a861bc3462dc595c51 (patch)
treee4140cca767093f595f34ba8dae37902ed4ebaf3
parent2e44799f50b4a1cc1e4f9ad3e5e540ee9efdea62 (diff)
nir: Add a layer_id system value intrinsic
Reviewed-by: Jordan Justen <[email protected]>
-rw-r--r--src/compiler/nir/nir_intrinsics.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_intrinsics.h b/src/compiler/nir/nir_intrinsics.h
index 00bd294b910..f45bfe22a0d 100644
--- a/src/compiler/nir/nir_intrinsics.h
+++ b/src/compiler/nir/nir_intrinsics.h
@@ -328,6 +328,7 @@ SYSTEM_VALUE(num_work_groups, 3, 0, xx, xx, xx)
SYSTEM_VALUE(helper_invocation, 1, 0, xx, xx, xx)
SYSTEM_VALUE(channel_num, 1, 0, xx, xx, xx)
SYSTEM_VALUE(alpha_ref_float, 1, 0, xx, xx, xx)
+SYSTEM_VALUE(layer_id, 1, 0, xx, xx, xx)
/* Blend constant color values. Float values are clamped. */
SYSTEM_VALUE(blend_const_color_r_float, 1, 0, xx, xx, xx)