diff --git a/src/gallium/frontends/dri/dri2.c b/src/gallium/frontends/dri/dri2.c index 3c73aedc92b..7c4d244f6ec 100644 --- a/src/gallium/frontends/dri/dri2.c +++ b/src/gallium/frontends/dri/dri2.c @@ -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) { diff --git a/src/gallium/frontends/dri/dri_util.h b/src/gallium/frontends/dri/dri_util.h index e2a248a713c..c61178c0479 100644 --- a/src/gallium/frontends/dri/dri_util.h +++ b/src/gallium/frontends/dri/dri_util.h @@ -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, diff --git a/src/gallium/targets/dri/dri.sym.in b/src/gallium/targets/dri/dri.sym.in index d1a2ae2080d..e06673488ea 100644 --- a/src/gallium/targets/dri/dri.sym.in +++ b/src/gallium/targets/dri/dri.sym.in @@ -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;