Mesa (master): st/mesa: run st_nir_lower_tex_src_plane for lowered xyuv/ayuv
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jan 15 02:34:30 UTC 2020
Module: Mesa
Branch: master
Commit: 222e127e3934d27319b2547be68955eb24cf19c7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=222e127e3934d27319b2547be68955eb24cf19c7
Author: Jonathan Marek <jonathan at marek.ca>
Date: Fri Sep 6 09:30:25 2019 -0400
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 <jonathan at marek.ca>
Reviewed-by: Christian Gmeiner <christian.gmeiner at 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 | 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 ||
More information about the mesa-commit
mailing list