Increase maxComputeSharedMemorySize.
ANGLE uses SwiftShader for trace verification and updating. One
particular trace in ANGLE used a compute shader shared memory size
greater than the spec minimum. Increase this limit in Swiftshader
so we can accommodate the Genshin Impact trace.
Bug: b/198145188
Change-Id: I5e6682e90291313c922cc2e0a2e5295fe97447eb
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/56688
Presubmit-Ready: Jamie Madill <jmadill@chromium.org>
Kokoro-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Tested-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
diff --git a/src/Vulkan/VkPhysicalDevice.cpp b/src/Vulkan/VkPhysicalDevice.cpp
index af404a4..f5ca7af 100644
--- a/src/Vulkan/VkPhysicalDevice.cpp
+++ b/src/Vulkan/VkPhysicalDevice.cpp
@@ -492,7 +492,7 @@
sw::RENDERTARGETS, // maxFragmentOutputAttachments
1, // maxFragmentDualSrcAttachments
28, // maxFragmentCombinedOutputResources
- 16384, // maxComputeSharedMemorySize
+ 32768, // maxComputeSharedMemorySize
{ 65535, 65535, 65535 }, // maxComputeWorkGroupCount[3]
256, // maxComputeWorkGroupInvocations
{ 256, 256, 64 }, // maxComputeWorkGroupSize[3]