projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7e5d24
)
st/mesa: fix R8 bitmap texture for TGSI paths.
author
Dave Airlie
<airlied@redhat.com>
Wed, 9 Oct 2019 23:56:27 +0000
(09:56 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 10 Oct 2019 00:22:37 +0000
(10:22 +1000)
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@amd.com>
src/mesa/state_tracker/st_program.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_program.c
b/src/mesa/state_tracker/st_program.c
index 3c9597e1c6f8c10052025aed3a94a75aa587a098..eb46253d9de4225510bc3f151f05f47ecf7f9786 100644
(file)
--- 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_
L
8_UNORM);
+ PIPE_FORMAT_
R
8_UNORM);
if (tokens) {
if (tgsi.tokens != stfp->tgsi.tokens)