From deaebc82a73ba3f34c4f2ecf97cedb7fc9b0b154 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 21 Nov 2019 08:41:22 -0500 Subject: [PATCH] nir: Add load_sampler_lod_paramaters_pan intrinsic This loads in the settings for a given sampler, which is necessary for lowering clamps/biases on certain Midgard chips. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Tomeu Vizoso --- src/compiler/nir/nir_intrinsics.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/compiler/nir/nir_intrinsics.py b/src/compiler/nir/nir_intrinsics.py index ce10dd22d6c..3939f8ff510 100644 --- a/src/compiler/nir/nir_intrinsics.py +++ b/src/compiler/nir/nir_intrinsics.py @@ -847,6 +847,10 @@ store("raw_output_pan", 1, []) load("raw_output_pan", 0, [], [CAN_ELIMINATE, CAN_REORDER]) load("output_u8_as_fp16_pan", 0, [], [CAN_ELIMINATE, CAN_REORDER]) +# Loads the sampler paramaters +# src[] = { sampler_index } +load("sampler_lod_parameters_pan", 1, [CAN_ELIMINATE, CAN_REORDER]) + # V3D-specific instrinc for tile buffer color reads. # # The hardware requires that we read the samples and components of a pixel -- 2.30.2