mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
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:
parent
be0f04f5bd
commit
eaa7980e15
2 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue