From 222e127e3934d27319b2547be68955eb24cf19c7 Mon Sep 17 00:00:00 2001 From: Jonathan Marek Date: Fri, 6 Sep 2019 09:30:25 -0400 Subject: [PATCH] st/mesa: run st_nir_lower_tex_src_plane for lowered xyuv/ayuv Has the effect of removing the nir_tex_src_plane for these formats too. Signed-off-by: Jonathan Marek Reviewed-by: Christian Gmeiner Tested-by: Marge Bot Part-of: --- src/mesa/state_tracker/st_program.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c index d441ac777ab..bbf639ac180 100644 --- a/src/mesa/state_tracker/st_program.c +++ b/src/mesa/state_tracker/st_program.c @@ -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 || -- 2.30.2