Mesa (main): anv: allow stencil memory export
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Aug 9 06:00:13 UTC 2021
Module: Mesa
Branch: main
Commit: 5e80cdbf8e6ede5506b00302443a3466883d06d0
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5e80cdbf8e6ede5506b00302443a3466883d06d0
Author: Tapani Pälli <tapani.palli at intel.com>
Date: Wed Apr 28 08:09:35 2021 +0300
anv: allow stencil memory export
This commit reverts 58e93711412 as now iris driver can import stencil.
This makes ext_external_objects-vk-stencil-display pass and X-Plane 11
vulkan rendering backend to work with anv + iris.
Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
Reviewed-by: Eleni Maria Stea <elene.mst at gmail.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10609>
---
src/intel/vulkan/anv_formats.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c
index 709973e591b..abc8184c6fd 100644
--- a/src/intel/vulkan/anv_formats.c
+++ b/src/intel/vulkan/anv_formats.c
@@ -1393,15 +1393,6 @@ VkResult anv_GetPhysicalDeviceImageFormatProperties2(
*/
switch (external_info->handleType) {
case VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT:
-
- /* Disable stencil export, there are issues. */
- if (vk_format_aspects(base_info->format) & VK_IMAGE_ASPECT_STENCIL_BIT) {
- result = vk_errorfi(instance, &physical_device->vk.base,
- VK_ERROR_FORMAT_NOT_SUPPORTED,
- "External stencil buffers are not supported yet");
- goto fail;
- }
-
if (external_props) {
if (tiling_has_explicit_layout) {
/* With an explicit memory layout, we don't care which type of fd
More information about the mesa-commit
mailing list