mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
tu: Lower maxMultiviewViewCount to 6
With multiview, the HW has to dispatch at least ViewCount * 6 fibers per primitive, since there are up to 6 VS threads per primitive. The HW can launch multiple GS waves per VS wave but one VS wave must contain the entire primitive. With ViewCount = 16 there are 96 fibers per primitive, which is more than we can launch in one wave. To fix this, lower the maximum view count. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40153>
This commit is contained in:
parent
3433e53da7
commit
73ab56fd2e
2 changed files with 2 additions and 2 deletions
|
|
@ -105,7 +105,7 @@
|
|||
#define SAMPLE_LOCATION_MAX 0.9375f
|
||||
|
||||
#define TU_MAX_DRM_DEVICES 8
|
||||
#define MAX_VIEWS 16
|
||||
#define MAX_VIEWS 6
|
||||
#define MAX_HW_SCALED_VIEWS 6
|
||||
#define MAX_BIND_POINTS 2 /* compute + graphics */
|
||||
/* match the latest Qualcomm driver which is also a hw limit on later gens */
|
||||
|
|
|
|||
|
|
@ -899,7 +899,7 @@ tu_get_physical_device_properties_1_1(struct tu_physical_device *pdevice,
|
|||
|
||||
p->pointClippingBehavior = VK_POINT_CLIPPING_BEHAVIOR_ALL_CLIP_PLANES;
|
||||
p->maxMultiviewViewCount =
|
||||
tu_has_multiview(pdevice) ? MAX_VIEWPORTS : 1;
|
||||
tu_has_multiview(pdevice) ? MAX_VIEWS : 1;
|
||||
p->maxMultiviewInstanceIndex = INT_MAX;
|
||||
p->protectedNoFault = false;
|
||||
/* Our largest descriptors are 2 texture descriptors, or a texture and
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue