diff options
author | Dave Airlie <airlied@redhat.com> | 2023-09-26 12:43:37 +1000 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-09-26 20:15:22 +0000 |
commit | 3e6938696aed4bb8f7106267c198fa79d2c6277c (patch) | |
tree | 10b56c27f3bb6e4a22df384f764ac12f9751a62c /src/gallium/drivers/llvmpipe/lp_state_fs.c | |
parent | b1e851d66c3a3e53f1a464023f675f3f6cbd3503 (diff) |
llvmpipe/fs: fix regression in sample mask handling from tgsi removal.
This got the bits the wrong way,
dEQP-VK.rasterization.frag_side_effects.color_at_beginning.sample_mask_after
Fixes: a63c2daf7ad7 ("llvmpipe/fs: start using nir info in some places.")
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25396>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_state_fs.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c index b644a9d5f8a..b380f4cd964 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c @@ -3782,7 +3782,7 @@ generate_variant(struct llvmpipe_context *lp, !key->blend.alpha_to_coverage && !key->depth.enabled && !nir->info.fs.uses_discard && - (nir->info.outputs_written & BITFIELD64_BIT(FRAG_RESULT_SAMPLE_MASK)) && + !(nir->info.outputs_written & BITFIELD64_BIT(FRAG_RESULT_SAMPLE_MASK)) && !nir->info.fs.uses_fbfetch_output; variant->opaque = |