Module: Mesa
Branch: main
Commit: af3cca98a2f9db3fc79dcfe91aeff2c0deeaf8e1
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=af3cca98a2f9db3fc79dcfe91aeff2c0deeaf8e1

Author: Dave Airlie <airl...@redhat.com>
Date:   Thu Sep 28 12:48:03 2023 +1000

lavapipe: bump .maxResourceDescriptorBufferRange

Fail (maxResourceDescriptorBufferRange is less than (((1u << 20) - (1u << 15)) 
* maxResourceDescriptorSize) at vktBindingDescriptorBufferTests.cpp:5127)

bump this to pass the test now.

Reviewed-by: Roland Scheidegger <srol...@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25398>

---

 src/gallium/frontends/lavapipe/lvp_device.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/frontends/lavapipe/lvp_device.c 
b/src/gallium/frontends/lavapipe/lvp_device.c
index ca064f9982c..da30cacc80b 100644
--- a/src/gallium/frontends/lavapipe/lvp_device.c
+++ b/src/gallium/frontends/lavapipe/lvp_device.c
@@ -661,6 +661,7 @@ lvp_get_properties(const struct lvp_physical_device 
*device, struct vk_propertie
 
    int texel_buffer_alignment = device->pscreen->get_param(device->pscreen, 
PIPE_CAP_TEXTURE_BUFFER_OFFSET_ALIGNMENT);
 
+   STATIC_ASSERT(sizeof(struct lp_descriptor) <= 256);
    *p = (struct vk_properties) {
       /* Vulkan 1.0 */
       .apiVersion = LVP_API_VERSION,
@@ -968,7 +969,7 @@ lvp_get_properties(const struct lvp_physical_device 
*device, struct vk_propertie
       .inputAttachmentDescriptorSize = sizeof(struct lp_descriptor),
       .accelerationStructureDescriptorSize = 0,
       .maxSamplerDescriptorBufferRange = 1<<27, //spec minimum
-      .maxResourceDescriptorBufferRange = 1<<27, //spec minimum
+      .maxResourceDescriptorBufferRange = 1<<28, //spec minimum
       .resourceDescriptorBufferAddressSpaceSize = 1<<27, //spec minimum
       .samplerDescriptorBufferAddressSpaceSize = 1<<27, //spec minimum
       .descriptorBufferAddressSpaceSize = 1<<27, //spec minimum

Reply via email to