vk/0.210.0: Remove depth clip and add depth clamp
This commit is contained in:
@@ -1688,7 +1688,7 @@ typedef struct VkPipelineRasterizationStateCreateInfo {
|
|||||||
VkStructureType sType;
|
VkStructureType sType;
|
||||||
const void* pNext;
|
const void* pNext;
|
||||||
VkPipelineRasterizationStateCreateFlags flags;
|
VkPipelineRasterizationStateCreateFlags flags;
|
||||||
VkBool32 depthClipEnable;
|
VkBool32 depthClampEnable;
|
||||||
VkBool32 rasterizerDiscardEnable;
|
VkBool32 rasterizerDiscardEnable;
|
||||||
VkPolygonMode polygonMode;
|
VkPolygonMode polygonMode;
|
||||||
VkCullModeFlags cullMode;
|
VkCullModeFlags cullMode;
|
||||||
|
@@ -334,7 +334,6 @@ anv_device_init_meta_blit_state(struct anv_device *device)
|
|||||||
},
|
},
|
||||||
.pRasterizationState = &(VkPipelineRasterizationStateCreateInfo) {
|
.pRasterizationState = &(VkPipelineRasterizationStateCreateInfo) {
|
||||||
.sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO,
|
.sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO,
|
||||||
.depthClipEnable = true,
|
|
||||||
.rasterizerDiscardEnable = false,
|
.rasterizerDiscardEnable = false,
|
||||||
.polygonMode = VK_POLYGON_MODE_FILL,
|
.polygonMode = VK_POLYGON_MODE_FILL,
|
||||||
.cullMode = VK_CULL_MODE_NONE,
|
.cullMode = VK_CULL_MODE_NONE,
|
||||||
|
@@ -160,13 +160,11 @@ create_pipeline(struct anv_device *device,
|
|||||||
},
|
},
|
||||||
.pRasterizationState = &(VkPipelineRasterizationStateCreateInfo) {
|
.pRasterizationState = &(VkPipelineRasterizationStateCreateInfo) {
|
||||||
.sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO,
|
.sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO,
|
||||||
.depthClipEnable = false,
|
|
||||||
.rasterizerDiscardEnable = false,
|
.rasterizerDiscardEnable = false,
|
||||||
.polygonMode = VK_POLYGON_MODE_FILL,
|
.polygonMode = VK_POLYGON_MODE_FILL,
|
||||||
.cullMode = VK_CULL_MODE_NONE,
|
.cullMode = VK_CULL_MODE_NONE,
|
||||||
.frontFace = VK_FRONT_FACE_COUNTER_CLOCKWISE,
|
.frontFace = VK_FRONT_FACE_COUNTER_CLOCKWISE,
|
||||||
.depthBiasEnable = false,
|
.depthBiasEnable = false,
|
||||||
.depthClipEnable = false,
|
|
||||||
},
|
},
|
||||||
.pMultisampleState = &(VkPipelineMultisampleStateCreateInfo) {
|
.pMultisampleState = &(VkPipelineMultisampleStateCreateInfo) {
|
||||||
.sType = VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO,
|
.sType = VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO,
|
||||||
|
@@ -135,11 +135,11 @@ emit_rs_state(struct anv_pipeline *pipeline,
|
|||||||
.BackFaceFillMode = vk_to_gen_fillmode[info->polygonMode],
|
.BackFaceFillMode = vk_to_gen_fillmode[info->polygonMode],
|
||||||
.ScissorRectangleEnable = !(extra && extra->disable_scissor),
|
.ScissorRectangleEnable = !(extra && extra->disable_scissor),
|
||||||
#if ANV_GEN == 8
|
#if ANV_GEN == 8
|
||||||
.ViewportZClipTestEnable = info->depthClipEnable
|
.ViewportZClipTestEnable = true,
|
||||||
#else
|
#else
|
||||||
/* GEN9+ splits ViewportZClipTestEnable into near and far enable bits */
|
/* GEN9+ splits ViewportZClipTestEnable into near and far enable bits */
|
||||||
.ViewportZFarClipTestEnable = info->depthClipEnable,
|
.ViewportZFarClipTestEnable = true,
|
||||||
.ViewportZNearClipTestEnable = info->depthClipEnable,
|
.ViewportZNearClipTestEnable = true,
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user