mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 01:38:06 +02:00
dri: Remove dri2_from_names
This is now unused with the removal of X11 DRI2, and the wl_drm pre-dmabuf path. Signed-off-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35885>
This commit is contained in:
parent
20f719ecb5
commit
a8629e5622
3 changed files with 0 additions and 39 deletions
|
|
@ -1447,40 +1447,6 @@ dri2_validate_usage(struct dri_image *image, unsigned int use)
|
|||
return screen->check_resource_capability(screen, image->texture, bind);
|
||||
}
|
||||
|
||||
struct dri_image *
|
||||
dri2_from_names(struct dri_screen *screen, int width, int height, int fourcc,
|
||||
int *names, int num_names, int *strides, int *offsets,
|
||||
void *loaderPrivate)
|
||||
{
|
||||
const struct dri2_format_mapping *map = dri2_get_mapping_by_fourcc(fourcc);
|
||||
struct dri_image *img;
|
||||
struct winsys_handle whandle;
|
||||
|
||||
if (!map)
|
||||
return NULL;
|
||||
|
||||
if (num_names != 1)
|
||||
return NULL;
|
||||
|
||||
memset(&whandle, 0, sizeof(whandle));
|
||||
whandle.type = WINSYS_HANDLE_TYPE_SHARED;
|
||||
whandle.handle = names[0];
|
||||
whandle.stride = strides[0];
|
||||
whandle.offset = offsets[0];
|
||||
whandle.format = map->pipe_format;
|
||||
whandle.modifier = DRM_FORMAT_MOD_INVALID;
|
||||
|
||||
img = dri_create_image_from_winsys(screen, width, height, map,
|
||||
1, &whandle, 0, loaderPrivate);
|
||||
if (img == NULL)
|
||||
return NULL;
|
||||
|
||||
img->dri_fourcc = map->dri_fourcc;
|
||||
img->dri_format = map->dri_format;
|
||||
|
||||
return img;
|
||||
}
|
||||
|
||||
struct dri_image *
|
||||
dri2_from_planar(struct dri_image *image, int plane, void *loaderPrivate)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -250,10 +250,6 @@ dri2_dup_image(struct dri_image *image, void *loaderPrivate);
|
|||
PUBLIC GLboolean
|
||||
dri2_validate_usage(struct dri_image *image, unsigned int use);
|
||||
PUBLIC struct dri_image *
|
||||
dri2_from_names(struct dri_screen *screen, int width, int height, int fourcc,
|
||||
int *names, int num_names, int *strides, int *offsets,
|
||||
void *loaderPrivate);
|
||||
PUBLIC struct dri_image *
|
||||
dri2_from_planar(struct dri_image *image, int plane, void *loaderPrivate);
|
||||
PUBLIC struct dri_image *
|
||||
dri2_from_dma_bufs(struct dri_screen *screen,
|
||||
|
|
|
|||
|
|
@ -47,7 +47,6 @@
|
|||
dri2_query_image;
|
||||
dri2_dup_image;
|
||||
dri2_validate_usage;
|
||||
dri2_from_names;
|
||||
dri2_from_planar;
|
||||
dri2_from_dma_bufs;
|
||||
dri2_blit_image;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue