nir: Add a lowering pass for YUV textures
[mesa.git] / src / compiler / nir / nir.h
index ace6fbbb48760b61c06395b23d28c7821c9376e1..96246f6d634e404c220c9f631d923dc877c9d29f 100644 (file)
@@ -2345,6 +2345,13 @@ typedef struct nir_lower_tex_options {
     */
    bool lower_rect;
 
+   /**
+    * If true, convert yuv to rgb.
+    */
+   unsigned lower_y_uv_external;
+   unsigned lower_y_u_v_external;
+   unsigned lower_yx_xuxv_external;
+
    /**
     * To emulate certain texture wrap modes, this can be used
     * to saturate the specified tex coord to [0.0, 1.0].  The