@@ -2059,27 +2059,24 @@ static uint8_t VULKAN_INTERNAL_FindMemoryType(
2059
2059
VulkanRenderer * renderer ,
2060
2060
uint32_t typeFilter ,
2061
2061
VkMemoryPropertyFlags requiredProperties ,
2062
- VkMemoryPropertyFlags ignoredProperties ,
2063
2062
uint32_t * memoryTypeIndex
2064
2063
) {
2065
2064
uint32_t i ;
2066
2065
2067
2066
for (i = * memoryTypeIndex ; i < renderer -> memoryProperties .memoryTypeCount ; i += 1 )
2068
2067
{
2069
2068
if ( (typeFilter & (1 << i )) &&
2070
- (renderer -> memoryProperties .memoryTypes [i ].propertyFlags & requiredProperties ) == requiredProperties &&
2071
- (renderer -> memoryProperties .memoryTypes [i ].propertyFlags & ignoredProperties ) == 0 )
2069
+ (renderer -> memoryProperties .memoryTypes [i ].propertyFlags & requiredProperties ) == requiredProperties )
2072
2070
{
2073
2071
* memoryTypeIndex = i ;
2074
2072
return 1 ;
2075
2073
}
2076
2074
}
2077
2075
2078
2076
FNA3D_LogWarn (
2079
- "Failed to find memory type %X, required %X, ignored %X " ,
2077
+ "Failed to find memory type %X, required %X" ,
2080
2078
typeFilter ,
2081
- requiredProperties ,
2082
- ignoredProperties
2079
+ requiredProperties
2083
2080
);
2084
2081
return 0 ;
2085
2082
}
@@ -2711,7 +2708,6 @@ static uint8_t VULKAN_INTERNAL_FindBufferMemoryRequirements(
2711
2708
VulkanRenderer * renderer ,
2712
2709
VkBuffer buffer ,
2713
2710
VkMemoryPropertyFlags requiredMemoryProperties ,
2714
- VkMemoryPropertyFlags ignoredMemoryProperties ,
2715
2711
VkMemoryRequirements * pMemoryRequirements ,
2716
2712
uint32_t * pMemoryTypeIndex
2717
2713
) {
@@ -2725,7 +2721,6 @@ static uint8_t VULKAN_INTERNAL_FindBufferMemoryRequirements(
2725
2721
renderer ,
2726
2722
pMemoryRequirements -> memoryTypeBits ,
2727
2723
requiredMemoryProperties ,
2728
- ignoredMemoryProperties ,
2729
2724
pMemoryTypeIndex
2730
2725
);
2731
2726
}
@@ -2734,7 +2729,6 @@ static uint8_t VULKAN_INTERNAL_FindImageMemoryRequirements(
2734
2729
VulkanRenderer * renderer ,
2735
2730
VkImage image ,
2736
2731
VkMemoryPropertyFlags requiredMemoryPropertyFlags ,
2737
- VkMemoryPropertyFlags ignoredMemoryPropertyFlags ,
2738
2732
VkMemoryRequirements * pMemoryRequirements ,
2739
2733
uint32_t * pMemoryTypeIndex
2740
2734
) {
@@ -2748,7 +2742,6 @@ static uint8_t VULKAN_INTERNAL_FindImageMemoryRequirements(
2748
2742
renderer ,
2749
2743
pMemoryRequirements -> memoryTypeBits ,
2750
2744
requiredMemoryPropertyFlags ,
2751
- ignoredMemoryPropertyFlags ,
2752
2745
pMemoryTypeIndex
2753
2746
);
2754
2747
}
@@ -2763,18 +2756,15 @@ static uint8_t VULKAN_INTERNAL_BindMemoryForImage(
2763
2756
uint8_t bindResult = 0 ;
2764
2757
uint32_t memoryTypeIndex = 0 ;
2765
2758
VkMemoryPropertyFlags requiredMemoryPropertyFlags ;
2766
- VkMemoryPropertyFlags ignoredMemoryPropertyFlags ;
2767
2759
VkMemoryRequirements memoryRequirements ;
2768
2760
2769
2761
/* Prefer GPU allocation */
2770
2762
requiredMemoryPropertyFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT ;
2771
- ignoredMemoryPropertyFlags = 0 ;
2772
2763
2773
2764
while (VULKAN_INTERNAL_FindImageMemoryRequirements (
2774
2765
renderer ,
2775
2766
image ,
2776
2767
requiredMemoryPropertyFlags ,
2777
- ignoredMemoryPropertyFlags ,
2778
2768
& memoryRequirements ,
2779
2769
& memoryTypeIndex
2780
2770
)) {
@@ -2810,7 +2800,6 @@ static uint8_t VULKAN_INTERNAL_BindMemoryForImage(
2810
2800
{
2811
2801
memoryTypeIndex = 0 ;
2812
2802
requiredMemoryPropertyFlags = 0 ;
2813
- ignoredMemoryPropertyFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT ;
2814
2803
2815
2804
if (isRenderTarget )
2816
2805
{
@@ -2823,7 +2812,6 @@ static uint8_t VULKAN_INTERNAL_BindMemoryForImage(
2823
2812
renderer ,
2824
2813
image ,
2825
2814
requiredMemoryPropertyFlags ,
2826
- ignoredMemoryPropertyFlags ,
2827
2815
& memoryRequirements ,
2828
2816
& memoryTypeIndex
2829
2817
)) {
@@ -2869,21 +2857,16 @@ static uint8_t VULKAN_INTERNAL_BindMemoryForBuffer(
2869
2857
uint8_t bindResult = 0 ;
2870
2858
uint32_t memoryTypeIndex = 0 ;
2871
2859
VkMemoryPropertyFlags requiredMemoryPropertyFlags ;
2872
- VkMemoryPropertyFlags ignoredMemoryPropertyFlags ;
2873
2860
VkMemoryRequirements memoryRequirements ;
2874
2861
2875
2862
requiredMemoryPropertyFlags =
2876
2863
VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT |
2877
2864
VK_MEMORY_PROPERTY_HOST_COHERENT_BIT ;
2878
2865
2879
- /* since buffers are able to be memcpy'd directly, we never want them to be device-local */
2880
- ignoredMemoryPropertyFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT ;
2881
-
2882
2866
while (VULKAN_INTERNAL_FindBufferMemoryRequirements (
2883
2867
renderer ,
2884
2868
buffer ,
2885
2869
requiredMemoryPropertyFlags ,
2886
- ignoredMemoryPropertyFlags ,
2887
2870
& memoryRequirements ,
2888
2871
& memoryTypeIndex
2889
2872
)) {
0 commit comments