anv: enable VK_KHR_fragment_shader_barycentric
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34445>
This commit is contained in:
Iván Briano 2025-03-11 15:49:07 -07:00 committed by Marge Bot
parent 6268792a29
commit 815bcda06d

View file

@ -177,6 +177,7 @@ get_device_extensions(const struct anv_physical_device *device,
.KHR_external_semaphore = true,
.KHR_external_semaphore_fd = true,
.KHR_format_feature_flags2 = true,
.KHR_fragment_shader_barycentric = device->info.ver >= 20,
.KHR_fragment_shading_rate = device->info.ver >= 11,
.KHR_get_memory_requirements2 = true,
.KHR_global_priority = device->max_context_priority >=
@ -958,6 +959,10 @@ get_features(const struct anv_physical_device *pdevice,
.shaderBFloat16CooperativeMatrix =
anv_device_has_bfloat16_cooperative_matrix(pdevice),
.shaderBFloat16DotProduct = pdevice->info.has_bfloat16,
/* VK_KHR_fragment_shader_barycentric */
.fragmentShaderBarycentric =
pdevice->vk.supported_extensions.KHR_fragment_shader_barycentric,
};
/* The new DOOM and Wolfenstein games require depthBounds without
@ -1440,6 +1445,11 @@ get_properties(const struct anv_physical_device *pdevice,
props->meshAndTaskShaderDerivatives = pdevice->info.has_mesh_shading;
}
/* VK_KHR_fragment_shader_barycentric */
{
props->triStripVertexOrderIndependentOfProvokingVertex = false;
}
/* VK_KHR_fragment_shading_rate */
{
props->primitiveFragmentShadingRateWithMultipleViewports =