st/mesa: fix R8 bitmap texture for TGSI paths.
authorDave Airlie <airlied@redhat.com>
Wed, 9 Oct 2019 23:56:27 +0000 (09:56 +1000)
committerDave 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

index 3c9597e1c6f8c10052025aed3a94a75aa587a098..eb46253d9de4225510bc3f151f05f47ecf7f9786 100644 (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)