v3dv: expose maxFragmentOutputAttachments as max_rts

V3DV hardcoded maxFragmentOutputAttachments to 4, from
V3D 4.x when V3D_MAX_RENDER_TARGETS was 4. On V3D 7.x (RPi5)
V3D_MAX_RENDER_TARGETS is 8.

WebGPU's mandatory maxColorAttachments minimum is 8, and wgpu computes
max_color_attachments as min(maxColorAttachments,
maxFragmentOutputAttachments). With the previous value V3DV capped
WebGPU clients to 4 color attachments on RPi5.

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41600>
This commit is contained in:
Jose Maria Casanova Crespo 2026-05-11 21:47:37 +02:00 committed by Marge Bot
parent e1c03cb4f6
commit e3ff5d6cdb

View file

@ -1014,7 +1014,7 @@ get_device_properties(const struct v3dv_physical_device *device,
/* Fragment limits */
.maxFragmentInputComponents = max_varying_components,
.maxFragmentOutputAttachments = 4,
.maxFragmentOutputAttachments = max_rts,
.maxFragmentDualSrcAttachments = 1,
.maxFragmentCombinedOutputResources = max_rts +
MAX_STORAGE_BUFFERS +