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@amd.com>
This commit is contained in:
Dave Airlie 2019-10-10 09:56:27 +10:00
parent c7e5d24d8f
commit b1f3173d0f

View file

@ -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)