st/mesa: run st_nir_lower_tex_src_plane for lowered xyuv/ayuv
authorJonathan Marek <jonathan@marek.ca>
Fri, 6 Sep 2019 13:30:25 +0000 (09:30 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 15 Jan 2020 02:20:00 +0000 (02:20 +0000)
Has the effect of removing the nir_tex_src_plane for these formats too.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1896>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1896>

src/mesa/state_tracker/st_program.c

index d441ac777abdb15cbf1a5a962b15b51e12d6cac5..bbf639ac1800a547dc9397a5d85fe9119b04fa3b 100644 (file)
@@ -1249,7 +1249,8 @@ st_create_fp_variant(struct st_context *st,
 
       /* This pass needs to happen *after* nir_lower_sampler */
       if (unlikely(key->external.lower_nv12 || key->external.lower_iyuv ||
-                   key->external.lower_xy_uxvx || key->external.lower_yx_xuxv)) {
+                   key->external.lower_xy_uxvx || key->external.lower_yx_xuxv ||
+                   key->external.lower_ayuv || key->external.lower_xyuv)) {
          NIR_PASS_V(state.ir.nir, st_nir_lower_tex_src_plane,
                     ~stfp->Base.SamplersUsed,
                     key->external.lower_nv12 || key->external.lower_xy_uxvx ||