svga: increase SVGA_MAX_FRAMEBUFFER_DEFAULT_SAMPLES to 16
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

This fixes the piglit arb_framebuffer_no_attachments-query test
(asserted in debug builds, crashed in release builds).  Passes
with this change.

The SVGA_MAX_FRAMEBUFFER_DEFAULT_SAMPLES value is only used to
dimension the svga_rasterizer_state::altRastIds[] array.

Signed-off-by: Brian Paul <brian.paul@broadcom.com>
Reviewed-by: Roland Scheidegger <roland.scheidegger@broadcom.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34888>
This commit is contained in:
Brian Paul 2025-05-08 14:46:03 -06:00 committed by Marge Bot
parent c4ead6d703
commit c2267358c6

View file

@ -167,7 +167,8 @@ struct svga_depth_stencil_state {
#define SVGA_PIPELINE_FLAG_LINES (1<<MESA_PRIM_LINES)
#define SVGA_PIPELINE_FLAG_TRIS (1<<MESA_PRIM_TRIANGLES)
#define SVGA_MAX_FRAMEBUFFER_DEFAULT_SAMPLES 4
// We support non-attachment/UAV rendering with up to 16 samples.
#define SVGA_MAX_FRAMEBUFFER_DEFAULT_SAMPLES 16
struct svga_rasterizer_state {
struct pipe_rasterizer_state templ; /* needed for draw module */