nvk: Add a #define for max shared memory size

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27130>
This commit is contained in:
Faith Ekstrand 2024-01-17 15:53:42 -06:00 committed by Marge Bot
parent be0f04f5bd
commit eaa7980e15
2 changed files with 2 additions and 1 deletions

View file

@ -598,7 +598,7 @@ nvk_get_device_properties(const struct nvk_instance *instance,
.maxFragmentOutputAttachments = NVK_MAX_RTS,
.maxFragmentDualSrcAttachments = 1,
.maxFragmentCombinedOutputResources = 16,
.maxComputeSharedMemorySize = 49152,
.maxComputeSharedMemorySize = NVK_MAX_SHARED_SIZE,
.maxComputeWorkGroupCount = {0x7fffffff, 65535, 65535},
.maxComputeWorkGroupInvocations = 1024,
.maxComputeWorkGroupSize = {1024, 1024, 64},

View file

@ -29,6 +29,7 @@
#define NVK_SPARSE_ADDR_SPACE_SIZE (1ull << 39)
#define NVK_MAX_BUFFER_SIZE (1ull << 31)
#define NVK_MAX_SHARED_SIZE (48 * 1024)
/* Max size of a bound cbuf */
#define NVK_MAX_CBUF_SIZE (1u << 16)