lavapipe: EXT_external_memory_dma_buf

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27805>
This commit is contained in:
Lucas Fryzek 2024-04-01 15:34:36 -04:00 committed by Marge Bot
parent c1657de63c
commit 07f25aa785
2 changed files with 10 additions and 0 deletions

View File

@ -1181,6 +1181,12 @@ lvp_physical_device_init(struct lvp_physical_device *device,
device->max_images = device->pscreen->get_shader_param(device->pscreen, MESA_SHADER_FRAGMENT, PIPE_SHADER_CAP_MAX_SHADER_IMAGES);
device->vk.supported_extensions = lvp_device_extensions_supported;
#ifdef HAVE_LIBDRM
/* if import or export is supported then EXT_external_memory_dma_buf is supported */
if (device->pscreen->get_param(device->pscreen, PIPE_CAP_DMABUF))
device->vk.supported_extensions.EXT_external_memory_dma_buf = true;
#endif
lvp_get_features(device, &device->vk.supported_features);
lvp_get_properties(device, &device->vk.properties);

View File

@ -44,6 +44,10 @@
#include "cso_cache/cso_context.h"
#include "nir.h"
#ifdef HAVE_LIBDRM
#include <drm-uapi/drm.h>
#endif
/* Pre-declarations needed for WSI entrypoints */
struct wl_surface;
struct wl_display;