nir: Add load_sampler_lod_paramaters_pan intrinsic
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 21 Nov 2019 13:41:22 +0000 (08:41 -0500)
committerTomeu Vizoso <tomeu.vizoso@collabora.co.uk>
Fri, 22 Nov 2019 05:07:19 +0000 (05:07 +0000)
This loads in the <min_lod, max_lod, lod_bias> settings for a given
sampler, which is necessary for lowering clamps/biases on certain
Midgard chips.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
src/compiler/nir/nir_intrinsics.py

index ce10dd22d6cd0d72cdfcae82a27042623627c26e..3939f8ff5107c201e43b225e40d5eb3396ba30c8 100644 (file)
@@ -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 <min_lod, max_lod, lod_bias>
+# 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