vulkan: Rename viewport_state::negative_one_to_one

This makes it a bit clearer what it's for.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18878>
This commit is contained in:
Jason Ekstrand
2022-07-21 13:54:16 -05:00
committed by Marge Bot
parent 76a4d5ce89
commit 10bc2cd3ae
6 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -376,7 +376,7 @@ vk_viewport_state_init(struct vk_viewport_state *vp,
vk_find_struct_const(vp_info->pNext,
PIPELINE_VIEWPORT_DEPTH_CLIP_CONTROL_CREATE_INFO_EXT);
if (vp_dcc_info != NULL)
vp->negative_one_to_one = vp_dcc_info->negativeOneToOne;
vp->depth_clip_negative_one_to_one = vp_dcc_info->negativeOneToOne;
}
static void
+1 -1
View File
@@ -150,7 +150,7 @@ struct vk_tessellation_state {
struct vk_viewport_state {
/** VkPipelineViewportDepthClipControlCreateInfoEXT::negativeOneToOne */
bool negative_one_to_one;
bool depth_clip_negative_one_to_one;
/** VkPipelineViewportStateCreateInfo::viewportCount */
uint8_t viewport_count;