From 2afdcc187b3f72d1db669b179f22aca11a6d8a52 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 27 Jan 2021 16:18:01 -0500 Subject: [PATCH] nir: Add sample_positions_pan intrinsic Facilites the gl_SamplePosition lowering on Bifrost, where the sample positions are accessed directly in a packed in-memory format. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/compiler/nir/nir_intrinsics.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compiler/nir/nir_intrinsics.py b/src/compiler/nir/nir_intrinsics.py index 8e5b0328fb0..0a3925a3263 100644 --- a/src/compiler/nir/nir_intrinsics.py +++ b/src/compiler/nir/nir_intrinsics.py @@ -1101,6 +1101,9 @@ load("raw_output_pan", [1], [BASE], [CAN_ELIMINATE, CAN_REORDER]) # src[] = { sampler_index } load("sampler_lod_parameters_pan", [1], flags=[CAN_ELIMINATE, CAN_REORDER]) +# Loads the sample position array on Bifrost, in a packed Arm-specific format +system_value("sample_positions_pan", 1, bit_sizes=[64]) + # R600 specific instrincs # # location where the tesselation data is stored in LDS