]> git.nega.tv - josh/narcissus/commitdiff
narcissus-gpu: Fix old naming
authorJoshua Simmons <josh@nega.tv>
Wed, 26 Jul 2023 18:00:32 +0000 (20:00 +0200)
committerJoshua Simmons <josh@nega.tv>
Wed, 26 Jul 2023 18:00:32 +0000 (20:00 +0200)
libs/narcissus-gpu/src/backend/vulkan/allocator.rs

index 3dcfb463c8821ed670c70f08bf2e84a22ed657ae..cd1f63077286fb0e408f6b4ef398d4a595c16b69 100644 (file)
@@ -72,11 +72,12 @@ impl VulkanAllocator {
         // restriction cleverly, use a separate Tlsf allocator for images if
         // `buffer_image_granularity` is greater than the guaranteed alignment of the
         // Tlsf configuration.
-        let use_segregated_image_allocator = buffer_image_granularity > tlsf::MIN_ALIGNMENT as u64;
+        let use_segregated_non_linear_allocator =
+            buffer_image_granularity > tlsf::MIN_ALIGNMENT as u64;
 
         Self {
             memory_heaps,
-            use_segregated_non_linear_allocator: use_segregated_image_allocator,
+            use_segregated_non_linear_allocator,
             ..default()
         }
     }