We're going to add a new variant of the dumb BO allocation function, so let's rename vc4_dumb_create() to something a bit more specific.
Unified · Split
| @@ -471,9 +471,9 @@ struct vc4_bo *vc4_bo_create(struct drm_device *dev, size_t unaligned_size, · 470 unmodified lines | ||
| 471 | 471 | return bo; |
| 472 | 472 | } |
| 473 | 473 | |
| 474 | −int vc4_dumb_create(struct drm_file *file_priv, | |
| 475 | − struct drm_device *dev, | |
| 476 | − struct drm_mode_create_dumb *args) | |
| 474 | +int vc4_bo_dumb_create(struct drm_file *file_priv, | |
| 475 | + struct drm_device *dev, | |
| 476 | + struct drm_mode_create_dumb *args) | |
| 477 | 477 | { |
| 478 | 478 | int min_pitch = DIV_ROUND_UP(args->width * args->bpp, 8); |
| 479 | 479 | struct vc4_bo *bo = NULL; |
| @@ -175,7 +175,7 @@ static struct drm_driver vc4_drm_driver = { · 174 unmodified lines | ||
| 175 | 175 | |
| 176 | 176 | .gem_create_object = vc4_create_object, |
| 177 | 177 | |
| 178 | − DRM_GEM_CMA_DRIVER_OPS_WITH_DUMB_CREATE(vc4_dumb_create), | |
| 178 | + DRM_GEM_CMA_DRIVER_OPS_WITH_DUMB_CREATE(vc4_bo_dumb_create), | |
| 179 | 179 | |
| 180 | 180 | .ioctls = vc4_drm_ioctls, |
| 181 | 181 | .num_ioctls = ARRAY_SIZE(vc4_drm_ioctls), |
| @@ -814,9 +814,9 @@ struct vc4_validated_shader_info { · 813 unmodified lines | ||
| 814 | 814 | struct drm_gem_object *vc4_create_object(struct drm_device *dev, size_t size); |
| 815 | 815 | struct vc4_bo *vc4_bo_create(struct drm_device *dev, size_t size, |
| 816 | 816 | bool from_cache, enum vc4_kernel_bo_type type); |
| 817 | −int vc4_dumb_create(struct drm_file *file_priv, | |
| 818 | − struct drm_device *dev, | |
| 819 | − struct drm_mode_create_dumb *args); | |
| 817 | +int vc4_bo_dumb_create(struct drm_file *file_priv, | |
| 818 | + struct drm_device *dev, | |
| 819 | + struct drm_mode_create_dumb *args); | |
| 820 | 820 | int vc4_create_bo_ioctl(struct drm_device *dev, void *data, |
| 821 | 821 | struct drm_file *file_priv); |
| 822 | 822 | int vc4_create_shader_bo_ioctl(struct drm_device *dev, void *data, |