From df8e52a795803efb022c1dfadecd26d5365bc7e7 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 18 Mar 2024 14:49:50 -0400 Subject: [PATCH] nir: add samples_log2_agx sysval Signed-off-by: Alyssa Rosenzweig Part-of: --- src/compiler/nir/nir_intrinsics.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/compiler/nir/nir_intrinsics.py b/src/compiler/nir/nir_intrinsics.py index f1c4c96dfaa..2b106981e82 100644 --- a/src/compiler/nir/nir_intrinsics.py +++ b/src/compiler/nir/nir_intrinsics.py @@ -1931,6 +1931,12 @@ system_value("api_sample_mask_agx", 1, bit_sizes=[16]) # Loads the sample position array as fixed point packed into a 32-bit word system_value("sample_positions_agx", 1, bit_sizes=[32]) +# In a fragment shader, returns the log2 of the number of samples in the +# tilebuffer. This is the unprocessed value written in the corresponding USC +# word. Used to determine whether sample mask writes have any effect when sample +# count is dynamic. +system_value("samples_log2_agx", 1, bit_sizes=[16]) + # Loads the fixed-function glPointSize() value, or zero if the # shader-supplied value should be used. system_value("fixed_point_size_agx", 1, bit_sizes=[32])