Browse Source

anv: Support v3 of VK_EXT_vertex_attribute_divisor

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
(cherry picked from commit 6f00785765)
tags/mesa-18.2.1
Jason Ekstrand 7 years ago
parent
commit
f3c91874fa
2 changed files with 9 additions and 1 deletions
  1. 8
    0
      src/intel/vulkan/anv_device.c
  2. 1
    1
      src/intel/vulkan/anv_extensions.py

+ 8
- 0
src/intel/vulkan/anv_device.c View File

@@ -934,6 +934,14 @@ void anv_GetPhysicalDeviceFeatures2(
break;
}

case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_FEATURES_EXT: {
VkPhysicalDeviceVertexAttributeDivisorFeaturesEXT *features =
(VkPhysicalDeviceVertexAttributeDivisorFeaturesEXT *)ext;
features->vertexAttributeInstanceRateDivisor = VK_TRUE;
features->vertexAttributeInstanceRateZeroDivisor = VK_TRUE;
break;
}

default:
anv_debug_ignored_stype(ext->sType);
break;

+ 1
- 1
src/intel/vulkan/anv_extensions.py View File

@@ -123,7 +123,7 @@ EXTENSIONS = [
'device->has_context_priority'),
Extension('VK_EXT_shader_viewport_index_layer', 1, True),
Extension('VK_EXT_shader_stencil_export', 1, 'device->info.gen >= 9'),
Extension('VK_EXT_vertex_attribute_divisor', 2, True),
Extension('VK_EXT_vertex_attribute_divisor', 3, True),
Extension('VK_EXT_post_depth_coverage', 1, 'device->info.gen >= 9'),
]


Loading…
Cancel
Save