From f52ebe72402e4078cf35ae8351c1ffc7ab7c8394 Mon Sep 17 00:00:00 2001 From: Sergey Kosarevsky Date: Wed, 1 Nov 2023 11:49:23 -0700 Subject: [PATCH] igl | vulkan | Fix uniform/storage buffer alignment queries Summary: Fixed uniform/storage buffer alignment queries. Reviewed By: rokuz Differential Revision: D50866092 fbshipit-source-id: 75118743eb2927ee3c2cea93571c74384de4c370 --- src/igl/vulkan/Device.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/igl/vulkan/Device.cpp b/src/igl/vulkan/Device.cpp index 5cd600eb20..25b7cbc1bb 100644 --- a/src/igl/vulkan/Device.cpp +++ b/src/igl/vulkan/Device.cpp @@ -585,13 +585,13 @@ bool Device::getFeatureLimits(DeviceFeatureLimits featureLimits, size_t& result) result = 4; return true; case DeviceFeatureLimits::ShaderStorageBufferOffsetAlignment: - result = 8; + result = limits.minStorageBufferOffsetAlignment; return true; case DeviceFeatureLimits::BufferAlignment: - result = 1; + result = limits.minUniformBufferOffsetAlignment; return true; case DeviceFeatureLimits::BufferNoCopyAlignment: - result = 0; + result = limits.minUniformBufferOffsetAlignment; return true; case DeviceFeatureLimits::MaxBindBytesBytes: result = 0;