diff options
author | Rob Herring <[email protected]> | 2016-05-16 21:14:21 -0500 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2016-05-23 12:07:46 +0100 |
commit | 0a4275b5343974073ca7c35fa1ff3c5b581573b8 (patch) | |
tree | 0b63a372f70e9d2cfa97143e082b54fa757c9f6b /src/egl/drivers/dri2/platform_drm.c | |
parent | e8431a630d64a39c1cf2feda08e0450d4e522d7d (diff) |
gbm: rename gbm_dri_bo_{map,unmap} to gbm_dri_bo_{map,unmap}_dumb
In preparation to add public map/unmap functions, rename the existing
gbm_dri_bo_{map,unmap} functions to indicate that they are only for dumb
buffers.
Signed-off-by: Rob Herring <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/egl/drivers/dri2/platform_drm.c')
-rw-r--r-- | src/egl/drivers/dri2/platform_drm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/egl/drivers/dri2/platform_drm.c b/src/egl/drivers/dri2/platform_drm.c index 3f4f7e78190..9373496cd0d 100644 --- a/src/egl/drivers/dri2/platform_drm.c +++ b/src/egl/drivers/dri2/platform_drm.c @@ -534,7 +534,7 @@ swrast_put_image2(__DRIdrawable *driDrawable, return; bo = gbm_dri_bo(dri2_surf->current->bo); - if (gbm_dri_bo_map(bo) == NULL) + if (gbm_dri_bo_map_dumb(bo) == NULL) return; internal_stride = bo->base.base.stride; @@ -544,7 +544,7 @@ swrast_put_image2(__DRIdrawable *driDrawable, data + i * stride, stride); } - gbm_dri_bo_unmap(bo); + gbm_dri_bo_unmap_dumb(bo); } static void @@ -564,7 +564,7 @@ swrast_get_image(__DRIdrawable *driDrawable, return; bo = gbm_dri_bo(dri2_surf->current->bo); - if (gbm_dri_bo_map(bo) == NULL) + if (gbm_dri_bo_map_dumb(bo) == NULL) return; internal_stride = bo->base.base.stride; @@ -575,7 +575,7 @@ swrast_get_image(__DRIdrawable *driDrawable, bo->map + (x + i) * internal_stride + y, stride); } - gbm_dri_bo_unmap(bo); + gbm_dri_bo_unmap_dumb(bo); } static struct dri2_egl_display_vtbl dri2_drm_display_vtbl = { |