mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-24 10:38:11 +02:00
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:
parent
e1c03cb4f6
commit
e3ff5d6cdb
1 changed files with 1 additions and 1 deletions
|
|
@ -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 +
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue