mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
lavapipe: more fixes for sample shading
this fixes the case where a draw without sample shading precedes
a draw with sample shading without changes to the sample mask
Fixes: cc9e958053 ("lavapipe: fix DS3 min sample setting")
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23663>
This commit is contained in:
parent
9aff38c7ca
commit
cb03191e82
1 changed files with 2 additions and 1 deletions
|
|
@ -1060,6 +1060,7 @@ static void handle_graphics_pipeline(struct lvp_pipeline *pipeline,
|
|||
state->force_min_sample = pipeline->force_min_sample;
|
||||
state->sample_shading = ps->ms->sample_shading_enable;
|
||||
state->min_sample_shading = ps->ms->min_sample_shading;
|
||||
state->min_samples_dirty = true;
|
||||
state->blend_dirty = true;
|
||||
if (!BITSET_TEST(ps->dynamic, MESA_VK_DYNAMIC_MS_RASTERIZATION_SAMPLES))
|
||||
update_samples(state, ps->ms->rasterization_samples);
|
||||
|
|
@ -1072,7 +1073,7 @@ static void handle_graphics_pipeline(struct lvp_pipeline *pipeline,
|
|||
if (!BITSET_TEST(ps->dynamic, MESA_VK_DYNAMIC_MS_SAMPLE_MASK)) {
|
||||
state->sample_mask_dirty = state->sample_mask != 0xffffffff;
|
||||
state->sample_mask = 0xffffffff;
|
||||
state->min_samples_dirty = state->min_samples;
|
||||
state->min_samples_dirty = !!state->min_samples;
|
||||
state->min_samples = 0;
|
||||
}
|
||||
state->blend_dirty |= state->blend_state.alpha_to_coverage || state->blend_state.alpha_to_one;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue