mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
venus: add VK_EXT_{conditional_rendering,index_type_uint8} extensions
Implements all the necessary code in the device initialization and extensions functions. Signed-off-by: Igor Torrente <igor.torrente@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15652>
This commit is contained in:
parent
bfab83ab4b
commit
cc8e271813
3 changed files with 32 additions and 0 deletions
|
|
@ -1564,3 +1564,18 @@ vn_CmdSetRasterizerDiscardEnable(VkCommandBuffer commandBuffer,
|
|||
VN_CMD_ENQUEUE(vkCmdSetRasterizerDiscardEnable, commandBuffer,
|
||||
rasterizerDiscardEnable);
|
||||
}
|
||||
|
||||
void
|
||||
vn_CmdBeginConditionalRenderingEXT(
|
||||
VkCommandBuffer commandBuffer,
|
||||
const VkConditionalRenderingBeginInfoEXT *pConditionalRenderingBegin)
|
||||
{
|
||||
VN_CMD_ENQUEUE(vkCmdBeginConditionalRenderingEXT, commandBuffer,
|
||||
pConditionalRenderingBegin);
|
||||
}
|
||||
|
||||
void
|
||||
vn_CmdEndConditionalRenderingEXT(VkCommandBuffer commandBuffer)
|
||||
{
|
||||
VN_CMD_ENQUEUE(vkCmdEndConditionalRenderingEXT, commandBuffer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -135,11 +135,16 @@ vn_physical_device_init_features(struct vn_physical_device *physical_dev)
|
|||
features2);
|
||||
|
||||
/* EXT */
|
||||
VN_ADD_EXT_TO_PNEXT(exts->EXT_conditional_rendering,
|
||||
feats->conditional_rendering,
|
||||
CONDITIONAL_RENDERING_FEATURES_EXT, features2);
|
||||
VN_ADD_EXT_TO_PNEXT(exts->EXT_custom_border_color,
|
||||
feats->custom_border_color,
|
||||
CUSTOM_BORDER_COLOR_FEATURES_EXT, features2);
|
||||
VN_ADD_EXT_TO_PNEXT(exts->EXT_depth_clip_enable, feats->depth_clip_enable,
|
||||
DEPTH_CLIP_ENABLE_FEATURES_EXT, features2);
|
||||
VN_ADD_EXT_TO_PNEXT(exts->EXT_index_type_uint8, feats->index_type_uint8,
|
||||
INDEX_TYPE_UINT8_FEATURES_EXT, features2);
|
||||
VN_ADD_EXT_TO_PNEXT(exts->EXT_line_rasterization,
|
||||
feats->line_rasterization,
|
||||
LINE_RASTERIZATION_FEATURES_EXT, features2);
|
||||
|
|
@ -948,12 +953,14 @@ vn_physical_device_get_passthrough_extensions(
|
|||
|
||||
/* EXT */
|
||||
.EXT_calibrated_timestamps = true,
|
||||
.EXT_conditional_rendering = true,
|
||||
.EXT_conservative_rasterization = true,
|
||||
.EXT_custom_border_color = true,
|
||||
.EXT_depth_clip_enable = true,
|
||||
#ifndef ANDROID
|
||||
.EXT_image_drm_format_modifier = true,
|
||||
#endif
|
||||
.EXT_index_type_uint8 = true,
|
||||
.EXT_line_rasterization = true,
|
||||
.EXT_provoking_vertex = true,
|
||||
.EXT_queue_family_foreign = true,
|
||||
|
|
@ -1581,8 +1588,10 @@ vn_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
|
|||
*shader_demote_to_helper_invocation;
|
||||
|
||||
/* EXT */
|
||||
VkPhysicalDeviceConditionalRenderingFeaturesEXT *conditional_rendering;
|
||||
VkPhysicalDeviceCustomBorderColorFeaturesEXT *custom_border_color;
|
||||
VkPhysicalDeviceDepthClipEnableFeaturesEXT *depth_clip_enable;
|
||||
VkPhysicalDeviceIndexTypeUint8FeaturesEXT *index_type_uint8;
|
||||
VkPhysicalDeviceLineRasterizationFeaturesEXT *line_rasterization;
|
||||
VkPhysicalDeviceProvokingVertexFeaturesEXT *provoking_vertex;
|
||||
VkPhysicalDeviceRobustness2FeaturesEXT *robustness_2;
|
||||
|
|
@ -1768,12 +1777,18 @@ vn_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
|
|||
break;
|
||||
|
||||
/* EXT */
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CONDITIONAL_RENDERING_FEATURES_EXT:
|
||||
*u.conditional_rendering = feats->conditional_rendering;
|
||||
break;
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CUSTOM_BORDER_COLOR_FEATURES_EXT:
|
||||
*u.custom_border_color = feats->custom_border_color;
|
||||
break;
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_CLIP_ENABLE_FEATURES_EXT:
|
||||
*u.depth_clip_enable = feats->depth_clip_enable;
|
||||
break;
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INDEX_TYPE_UINT8_FEATURES_EXT:
|
||||
*u.index_type_uint8 = feats->index_type_uint8;
|
||||
break;
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_FEATURES_EXT:
|
||||
*u.line_rasterization = feats->line_rasterization;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -31,8 +31,10 @@ struct vn_physical_device_features {
|
|||
shader_demote_to_helper_invocation;
|
||||
|
||||
/* EXT */
|
||||
VkPhysicalDeviceConditionalRenderingFeaturesEXT conditional_rendering;
|
||||
VkPhysicalDeviceCustomBorderColorFeaturesEXT custom_border_color;
|
||||
VkPhysicalDeviceDepthClipEnableFeaturesEXT depth_clip_enable;
|
||||
VkPhysicalDeviceIndexTypeUint8FeaturesEXT index_type_uint8;
|
||||
VkPhysicalDeviceLineRasterizationFeaturesEXT line_rasterization;
|
||||
VkPhysicalDeviceProvokingVertexFeaturesEXT provoking_vertex;
|
||||
VkPhysicalDeviceRobustness2FeaturesEXT robustness_2;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue