nir/vtn: Convert constant samplers to variables with data
[mesa.git] / src / compiler / nir / nir.h
index 73a08344197176631d9289ca860834878402ede2..e5091831350a3de3b86623ffc68160fdda2fb108 100644 (file)
@@ -545,6 +545,16 @@ typedef struct nir_variable {
             enum pipe_format format;
          } image;
 
+         struct {
+            /**
+             * For OpenCL inline samplers. See cl_sampler_addressing_mode and cl_sampler_filter_mode
+             */
+            unsigned is_inline_sampler : 1;
+            unsigned addressing_mode : 3;
+            unsigned normalized_coordinates : 1;
+            unsigned filter_mode : 1;
+         } sampler;
+
          struct {
             /**
              * Transform feedback buffer.