Use correct shared memory size (in words, not bytes)
This commit is contained in:
parent
ad3bc2531b
commit
3323a3a042
2 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ namespace Ryujinx.Graphics.Gpu.Engine
|
|||
ulong shaderGpuVa = shaderBaseAddress.Pack() + (uint)dispatchParams.ShaderOffset;
|
||||
|
||||
// Note: A size of 0 is also invalid, the size must be at least 1.
|
||||
int sharedMemorySize = Math.Clamp(dispatchParams.SharedMemorySize & 0xffff, 1, _context.Capabilities.MaximumComputeSharedMemorySize);
|
||||
int sharedMemorySize = Math.Clamp(dispatchParams.SharedMemorySize & 0xffff, 4, _context.Capabilities.MaximumComputeSharedMemorySize);
|
||||
|
||||
ComputeShader cs = _shaderCache.GetComputeShader(
|
||||
shaderGpuVa,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue