mesa/st: fix st_nir_lower_tex_src_plane arguments

st_nir_lower_tex_src_plane expects a mask, no a boolean.

CC: mesa-stable
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9931>
(cherry picked from commit 72c54713aa)
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2021-03-30 21:42:15 +02:00 committed by Dylan Baker
parent 1665f478ac
commit 882d47fae4
2 changed files with 2 additions and 2 deletions

View file

@ -139,7 +139,7 @@
"description": "mesa/st: fix st_nir_lower_tex_src_plane arguments",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": null
},

View file

@ -1321,7 +1321,7 @@ st_create_fp_variant(struct st_context *st,
key->external.lower_yuv)) {
NIR_PASS_V(state.ir.nir, st_nir_lower_tex_src_plane,
~stfp->Base.SamplersUsed,
key->external.lower_nv12 || key->external.lower_xy_uxvx ||
key->external.lower_nv12 | key->external.lower_xy_uxvx |
key->external.lower_yx_xuxv,
key->external.lower_iyuv);
finalize = true;