mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 05:00:09 +01:00
gallium: handle empty cbuf slots in framebuffer samples helper
If we have cbufs but they are all empty, default to returning the fb->samples. Fixes: dEQP-VK.pipeline.multisample.mixed_count.1_4_unused on lavapipe v2: drop unneeded chunk (Roland) Cc: 20.3 <mesa-stable> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7499>
This commit is contained in:
parent
46d2f2224f
commit
4b1d23b243
1 changed files with 1 additions and 1 deletions
|
|
@ -244,7 +244,7 @@ util_framebuffer_get_num_samples(const struct pipe_framebuffer_state *fb)
|
|||
fb->zsbuf->nr_samples);
|
||||
}
|
||||
|
||||
return 1;
|
||||
return MAX2(fb->samples, 1);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue