investigating memory issues
Build / build (push) Successful in 1m1s
Test / build_and_test (push) Failing after 10m35s

This commit is contained in:
2026-05-06 15:22:02 +02:00
parent da8e0b2716
commit 538106cbba
2 changed files with 6 additions and 3 deletions
+3 -3
View File
@@ -68,7 +68,7 @@ pub fn create(allocator: std.mem.Allocator, instance: *base.Instance) VkError!*S
.max_uniform_buffer_range = 16384,
.max_storage_buffer_range = 134217728,
.max_push_constants_size = 128,
.max_memory_allocation_count = std.math.maxInt(u32),
.max_memory_allocation_count = lib.MAX_ALLOCATION_COUNT,
.max_sampler_allocation_count = 4096,
.buffer_image_granularity = 131072,
.sparse_address_space_size = 0,
@@ -179,8 +179,8 @@ pub fn create(allocator: std.mem.Allocator, instance: *base.Instance) VkError!*S
};
interface.mem_props.memory_heap_count = 1;
interface.mem_props.memory_heaps[0] = .{
.size = std.process.totalSystemMemory() catch 0,
.flags = .{}, // Host memory
.size = lib.PHYSICAL_DEVICE_HEAP_SIZE,
.flags = .{ .device_local_bit = true },
};
interface.features = .{
+3
View File
@@ -66,6 +66,9 @@ pub const MAX_IMAGE_LEVELS_3D = 12;
pub const MAX_IMAGE_LEVELS_CUBE = 15;
pub const MAX_IMAGE_ARRAY_LAYERS = 2048;
pub const PHYSICAL_DEVICE_HEAP_SIZE = 0x80000000; // 2 GiB
pub const MAX_ALLOCATION_COUNT = 4096;
pub const std_options = base.std_options;
comptime {