mirror of https://gitlab.freedesktop.org/mesa/mesa
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:
parent
c1657de63c
commit
07f25aa785
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue