radv: reduce maxTexelBufferElements to 1<<29
It's the number of elements. RADV exposes VK_FORMAT_R64_{UINT,SINT}
formats for texel buffers, so the maximum is 1<<29 to fit in the
32-bit bounds checking.
Fixes KHR-GL46.texture_buffer_size_clamping.* with Zink and new VKCTS
dEQP-VK.texture.misc.max_elements.*.
Cc: mesa-stable.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38140>
This commit is contained in:
committed by
Marge Bot
parent
bb19e30e0d
commit
fda1262eed
@@ -1616,7 +1616,7 @@ radv_get_physical_device_properties(struct radv_physical_device *pdev)
|
||||
MIN3(pdev->image_props.max_dims.width, pdev->image_props.max_dims.height, pdev->image_props.max_dims.depth),
|
||||
.maxImageDimensionCube = MIN2(pdev->image_props.max_dims.width, pdev->image_props.max_dims.height),
|
||||
.maxImageArrayLayers = pdev->image_props.max_array_layers,
|
||||
.maxTexelBufferElements = UINT32_MAX,
|
||||
.maxTexelBufferElements = 512 * 1024 * 1024,
|
||||
.maxUniformBufferRange = UINT32_MAX,
|
||||
.maxStorageBufferRange = UINT32_MAX,
|
||||
.maxPushConstantsSize = MAX_PUSH_CONSTANTS_SIZE,
|
||||
|
||||
Reference in New Issue
Block a user