From: Alyssa Rosenzweig Date: Thu, 21 Nov 2019 13:41:22 +0000 (-0500) Subject: nir: Add load_sampler_lod_paramaters_pan intrinsic X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=deaebc82a73ba3f34c4f2ecf97cedb7fc9b0b154;p=mesa.git 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 --- 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