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:
committed by
Marge Bot
parent
be0f04f5bd
commit
eaa7980e15
@@ -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},
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user