Commit 4fdeb8d2 by Jamie Madill Committed by Commit Bot

Vulkan: Reduce uniform block dynamic buffer size.

This is to fit in the minimum required Vulkan limits that SwiftShader exposes. Bug: angleproject:3876 Bug: b/140251624 Change-Id: If1a36fc578675ebb07d3f6546689709882c174f3 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1801264Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarAlexis Hétu <sugoi@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 3a8b3dc2
...@@ -22,8 +22,8 @@ namespace rx ...@@ -22,8 +22,8 @@ namespace rx
namespace namespace
{ {
// This size is picked according to the required maxUniformBufferRange in the Vulkan spec.
constexpr size_t kUniformBlockDynamicBufferMinSize = 256 * 128; constexpr size_t kUniformBlockDynamicBufferMinSize = 16384u;
// Identical to Std140 encoder in all aspects, except it ignores opaque uniform types. // Identical to Std140 encoder in all aspects, except it ignores opaque uniform types.
class VulkanDefaultBlockEncoder : public sh::Std140BlockEncoder class VulkanDefaultBlockEncoder : public sh::Std140BlockEncoder
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment