Module: Mesa
Branch: master
Commit: 055aff2613a2913e499ebb82ad61cc2bb343955f
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=055aff2613a2913e499ebb82ad61cc2bb343955f

Author: Samuel Pitoiset <[email protected]>
Date:   Thu Dec  3 16:15:46 2020 +0100

radv: reduce maxTransformFeedbackBufferDataSize to 512

DRAW_OPAQUE_VERTEX_STRIDE only has 9 bits, so the register can
represent 511 bytes at most.

Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7900>

---

 src/amd/vulkan/radv_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 61ebc0230e0..0d3dfd1b803 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -1994,7 +1994,7 @@ void radv_GetPhysicalDeviceProperties2(
                        properties->maxTransformFeedbackBuffers = 
MAX_SO_BUFFERS;
                        properties->maxTransformFeedbackBufferSize = UINT32_MAX;
                        properties->maxTransformFeedbackStreamDataSize = 512;
-                       properties->maxTransformFeedbackBufferDataSize = 
UINT32_MAX;
+                       properties->maxTransformFeedbackBufferDataSize = 512;
                        properties->maxTransformFeedbackBufferDataStride = 512;
                        properties->transformFeedbackQueries = 
!pdevice->use_ngg_streamout;
                        properties->transformFeedbackStreamsLinesTriangles = 
!pdevice->use_ngg_streamout;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to