freedreno/a3xx: add support to emulate GL_CLAMP
[mesa.git] / src / gallium / drivers / freedreno / a3xx / fd3_context.h
index 7d7663a28bcaad3b13142cca0f157242bb01af1f..48bbb47e9ca08e5ae05fd733f651e57af4fc57ff 100644 (file)
@@ -76,6 +76,16 @@ struct fd3_context {
 
        struct u_upload_mgr *border_color_uploader;
        struct pipe_resource *border_color_buf;
+
+       /* bitmask of sampler which needs coords clamped for vertex
+        * shader:
+        */
+       unsigned vsaturate_s, vsaturate_t, vsaturate_r;
+
+       /* bitmask of sampler which needs coords clamped for frag
+        * shader:
+        */
+       unsigned fsaturate_s, fsaturate_t, fsaturate_r;
 };
 
 static INLINE struct fd3_context *