From 7fd2e43bc0feacb237eddbb3a1f1faded1275faf Mon Sep 17 00:00:00 2001 From: Caleb Cornett Date: Sat, 19 Nov 2022 11:59:38 -0500 Subject: [PATCH 1/3] remove SRC1 blend factors --- include/Refresh.h | 6 +----- src/Refresh_Driver_Template.txt | 6 +----- src/Refresh_Driver_Vulkan.c | 6 +----- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/include/Refresh.h b/include/Refresh.h index 1a1b2ff..7804056 100644 --- a/include/Refresh.h +++ b/include/Refresh.h @@ -281,11 +281,7 @@ typedef enum Refresh_BlendFactor REFRESH_BLENDFACTOR_ONE_MINUS_DST_ALPHA, REFRESH_BLENDFACTOR_CONSTANT_COLOR, REFRESH_BLENDFACTOR_ONE_MINUS_CONSTANT_COLOR, - REFRESH_BLENDFACTOR_SRC_ALPHA_SATURATE, - REFRESH_BLENDFACTOR_SRC1_COLOR, - REFRESH_BLENDFACTOR_ONE_MINUS_SRC1_COLOR, - REFRESH_BLENDFACTOR_SRC1_ALPHA, - REFRESH_BLENDFACTOR_ONE_MINUS_SRC1_ALPHA + REFRESH_BLENDFACTOR_SRC_ALPHA_SATURATE } Refresh_BlendFactor; typedef enum Refresh_ColorComponentFlagBits diff --git a/src/Refresh_Driver_Template.txt b/src/Refresh_Driver_Template.txt index 9940069..5c17b1f 100644 --- a/src/Refresh_Driver_Template.txt +++ b/src/Refresh_Driver_Template.txt @@ -126,11 +126,7 @@ static TEMPLATE_BLEND_FACTOR_TYPE RefreshToTEMPLATE_BlendFactor[] = 0, /* ONE_MINUS_DST_ALPHA */ 0, /* CONSTANT_COLOR */ 0, /* ONE_MINUS_CONSTANT_COLOR */ - 0, /* SRC_ALPHA_SATURATE */ - 0, /* SRC1_COLOR */ - 0, /* ONE_MINUS_SRC1_COLOR */ - 0, /* SRC1_ALPHA */ - 0 /* ONE_MINUS_SRC1_ALPHA */ + 0 /* SRC_ALPHA_SATURATE */ }; static TEMPLATE_BLEND_OP_TYPE RefreshToTEMPLATE_BlendOp[] = diff --git a/src/Refresh_Driver_Vulkan.c b/src/Refresh_Driver_Vulkan.c index 79d8fa6..f39db0f 100644 --- a/src/Refresh_Driver_Vulkan.c +++ b/src/Refresh_Driver_Vulkan.c @@ -287,11 +287,7 @@ static VkBlendFactor RefreshToVK_BlendFactor[] = VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR, VK_BLEND_FACTOR_CONSTANT_ALPHA, VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA, - VK_BLEND_FACTOR_SRC_ALPHA_SATURATE, - VK_BLEND_FACTOR_SRC1_COLOR, - VK_BLEND_FACTOR_ONE_MINUS_SRC1_COLOR, - VK_BLEND_FACTOR_SRC1_ALPHA, - VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA + VK_BLEND_FACTOR_SRC_ALPHA_SATURATE }; static VkBlendOp RefreshToVK_BlendOp[] = -- 2.25.1 From f700761b0fa0734a3c9008d7946e053468c925fa Mon Sep 17 00:00:00 2001 From: Caleb Cornett Date: Sat, 19 Nov 2022 23:10:34 -0500 Subject: [PATCH 2/3] remove Refresh_RasterizerState.depthClampEnable --- include/Refresh.h | 1 - src/Refresh_Driver_Vulkan.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/include/Refresh.h b/include/Refresh.h index 7804056..0e8b09f 100644 --- a/include/Refresh.h +++ b/include/Refresh.h @@ -486,7 +486,6 @@ typedef struct Refresh_ComputeShaderInfo typedef struct Refresh_RasterizerState { - uint8_t depthClampEnable; Refresh_FillMode fillMode; Refresh_CullMode cullMode; Refresh_FrontFace frontFace; diff --git a/src/Refresh_Driver_Vulkan.c b/src/Refresh_Driver_Vulkan.c index f39db0f..7572bbe 100644 --- a/src/Refresh_Driver_Vulkan.c +++ b/src/Refresh_Driver_Vulkan.c @@ -6144,7 +6144,7 @@ static Refresh_GraphicsPipeline* VULKAN_CreateGraphicsPipeline( rasterizationStateCreateInfo.sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO; rasterizationStateCreateInfo.pNext = NULL; rasterizationStateCreateInfo.flags = 0; - rasterizationStateCreateInfo.depthClampEnable = pipelineCreateInfo->rasterizerState.depthClampEnable; + rasterizationStateCreateInfo.depthClampEnable = VK_FALSE; rasterizationStateCreateInfo.rasterizerDiscardEnable = VK_FALSE; rasterizationStateCreateInfo.polygonMode = RefreshToVK_PolygonMode[ pipelineCreateInfo->rasterizerState.fillMode @@ -10615,7 +10615,6 @@ static uint8_t VULKAN_INTERNAL_CreateLogicalDevice( SDL_zero(deviceFeatures); deviceFeatures.occlusionQueryPrecise = VK_TRUE; deviceFeatures.fillModeNonSolid = VK_TRUE; - deviceFeatures.depthClamp = VK_TRUE; deviceFeatures.samplerAnisotropy = VK_TRUE; /* creating the logical device */ -- 2.25.1 From 611eb20185171913d3ed25f0da03b26cf7ee7d0c Mon Sep 17 00:00:00 2001 From: Caleb Cornett Date: Sat, 19 Nov 2022 23:11:22 -0500 Subject: [PATCH 3/3] remove unused occlusionQueryPrecise feature --- src/Refresh_Driver_Vulkan.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Refresh_Driver_Vulkan.c b/src/Refresh_Driver_Vulkan.c index 7572bbe..53bfffa 100644 --- a/src/Refresh_Driver_Vulkan.c +++ b/src/Refresh_Driver_Vulkan.c @@ -10613,7 +10613,6 @@ static uint8_t VULKAN_INTERNAL_CreateLogicalDevice( /* specifying used device features */ SDL_zero(deviceFeatures); - deviceFeatures.occlusionQueryPrecise = VK_TRUE; deviceFeatures.fillModeNonSolid = VK_TRUE; deviceFeatures.samplerAnisotropy = VK_TRUE; -- 2.25.1