anv: expose VK_EXT_image_2d_view_of_3d
sampling only available on gen9+ Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15754>
This commit is contained in:
parent
8b5c9e7c81
commit
6fd344ff98
|
@ -273,6 +273,7 @@ get_device_extensions(const struct anv_physical_device *device,
|
||||||
.EXT_global_priority_query = device->max_context_priority >=
|
.EXT_global_priority_query = device->max_context_priority >=
|
||||||
INTEL_CONTEXT_MEDIUM_PRIORITY,
|
INTEL_CONTEXT_MEDIUM_PRIORITY,
|
||||||
.EXT_host_query_reset = true,
|
.EXT_host_query_reset = true,
|
||||||
|
.EXT_image_2d_view_of_3d = true,
|
||||||
.EXT_image_robustness = true,
|
.EXT_image_robustness = true,
|
||||||
.EXT_image_drm_format_modifier = true,
|
.EXT_image_drm_format_modifier = true,
|
||||||
.EXT_index_type_uint8 = true,
|
.EXT_index_type_uint8 = true,
|
||||||
|
@ -1506,6 +1507,14 @@ void anv_GetPhysicalDeviceFeatures2(
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_2D_VIEW_OF_3D_FEATURES_EXT: {
|
||||||
|
VkPhysicalDeviceImage2DViewOf3DFeaturesEXT *features =
|
||||||
|
(VkPhysicalDeviceImage2DViewOf3DFeaturesEXT *)ext;
|
||||||
|
features->image2DViewOf3D = true;
|
||||||
|
features->sampler2DViewOf3D = pdevice->info.ver >= 9;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COMPUTE_SHADER_DERIVATIVES_FEATURES_NV: {
|
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COMPUTE_SHADER_DERIVATIVES_FEATURES_NV: {
|
||||||
VkPhysicalDeviceComputeShaderDerivativesFeaturesNV *features =
|
VkPhysicalDeviceComputeShaderDerivativesFeaturesNV *features =
|
||||||
(VkPhysicalDeviceComputeShaderDerivativesFeaturesNV *)ext;
|
(VkPhysicalDeviceComputeShaderDerivativesFeaturesNV *)ext;
|
||||||
|
|
Loading…
Reference in New Issue