Mesa (master): st/mesa: fix R8 bitmap texture for TGSI paths.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Oct 10 00:37:25 UTC 2019
Module: Mesa
Branch: master
Commit: b1f3173d0f3e23f2022553f513d58aaf12798a2e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b1f3173d0f3e23f2022553f513d58aaf12798a2e
Author: Dave Airlie <airlied at redhat.com>
Date: Thu Oct 10 09:56:27 2019 +1000
st/mesa: fix R8 bitmap texture for TGSI paths.
The initial patch only fixed up the NIR path, but forgot
the TGSI path needed fixing as well.
Fixes: f92226931b ("st/mesa: Prefer R8 for bitmap textures")
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
---
src/mesa/state_tracker/st_program.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c
index 3c9597e1c6f..eb46253d9de 100644
--- a/src/mesa/state_tracker/st_program.c
+++ b/src/mesa/state_tracker/st_program.c
@@ -1298,7 +1298,7 @@ st_create_fp_variant(struct st_context *st,
variant->bitmap_sampler,
st->needs_texcoord_semantic,
st->bitmap.tex_format ==
- PIPE_FORMAT_L8_UNORM);
+ PIPE_FORMAT_R8_UNORM);
if (tokens) {
if (tgsi.tokens != stfp->tgsi.tokens)
More information about the mesa-commit
mailing list