wayland/dma-buf: Make gbm_bo import function better named
It imports a DMA buffer as a gbm_bo, but only if it can be used to scan it out, so name it import_scanout_gbm_bo(). https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1261
This commit is contained in:
parent
dbf47b652e
commit
7343b8d817
1 changed files with 5 additions and 5 deletions
|
@ -185,10 +185,10 @@ meta_wayland_dma_buf_buffer_attach (MetaWaylandBuffer *buffer,
|
|||
|
||||
#ifdef HAVE_NATIVE_BACKEND
|
||||
static struct gbm_bo *
|
||||
create_gbm_bo (MetaWaylandDmaBufBuffer *dma_buf,
|
||||
MetaGpuKms *gpu_kms,
|
||||
int n_planes,
|
||||
gboolean *use_modifier)
|
||||
import_scanout_gbm_bo (MetaWaylandDmaBufBuffer *dma_buf,
|
||||
MetaGpuKms *gpu_kms,
|
||||
int n_planes,
|
||||
gboolean *use_modifier)
|
||||
{
|
||||
struct gbm_device *gbm_device;
|
||||
|
||||
|
@ -276,7 +276,7 @@ meta_wayland_dma_buf_try_acquire_scanout (MetaWaylandDmaBufBuffer *dma_buf,
|
|||
return NULL;
|
||||
|
||||
gpu_kms = meta_renderer_native_get_primary_gpu (renderer_native);
|
||||
gbm_bo = create_gbm_bo (dma_buf, gpu_kms, n_planes, &use_modifier);
|
||||
gbm_bo = import_scanout_gbm_bo (dma_buf, gpu_kms, n_planes, &use_modifier);
|
||||
if (!gbm_bo)
|
||||
{
|
||||
g_debug ("Failed to import scanout gbm_bo: %s", g_strerror (errno));
|
||||
|
|
Loading…
Reference in a new issue