llvmpipe: ignore multisample state for alpha_to_one
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 19 Jul 2022 13:28:38 +0000 (09:28 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 20 Jul 2022 15:41:14 +0000 (15:41 +0000)
this is more accurate and fixes usage with lavapipe

cc: mesa-stable

Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17627>

src/gallium/drivers/llvmpipe/lp_state_fs.c

index 707f133..c9b6ad0 100644 (file)
@@ -1082,7 +1082,7 @@ generate_fs_loop(struct gallivm_state *gallivm,
       }
    }
 
-   if (key->blend.alpha_to_one && key->multisample) {
+   if (key->blend.alpha_to_one) {
       for (unsigned attrib = 0; attrib < shader->info.base.num_outputs; ++attrib) {
          unsigned cbuf = shader->info.base.output_semantic_index[attrib];
          if ((shader->info.base.output_semantic_name[attrib] == TGSI_SEMANTIC_COLOR) &&