nvk: Drop nouveau_ws_bo_new_tiled()

It's no longer used.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26242>
This commit is contained in:
Faith Ekstrand
2023-11-16 17:54:23 -06:00
committed by Marge Bot
parent fbc9811241
commit ce1cccea98
2 changed files with 3 additions and 18 deletions

View File

@@ -124,14 +124,6 @@ nouveau_ws_bo_bind_vma(struct nouveau_ws_device *dev,
bo_bind(dev, bo->handle, addr, range, bo_offset, pte_kind);
}
struct nouveau_ws_bo *
nouveau_ws_bo_new(struct nouveau_ws_device *dev,
uint64_t size, uint64_t align,
enum nouveau_ws_bo_flags flags)
{
return nouveau_ws_bo_new_tiled(dev, size, align, 0, 0, flags);
}
struct nouveau_ws_bo *
nouveau_ws_bo_new_mapped(struct nouveau_ws_device *dev,
uint64_t size, uint64_t align,
@@ -155,10 +147,9 @@ nouveau_ws_bo_new_mapped(struct nouveau_ws_device *dev,
}
struct nouveau_ws_bo *
nouveau_ws_bo_new_tiled(struct nouveau_ws_device *dev,
uint64_t size, uint64_t align,
uint8_t pte_kind, uint16_t tile_mode,
enum nouveau_ws_bo_flags flags)
nouveau_ws_bo_new(struct nouveau_ws_device *dev,
uint64_t size, uint64_t align,
enum nouveau_ws_bo_flags flags)
{
struct nouveau_ws_bo *bo = CALLOC_STRUCT(nouveau_ws_bo);
struct drm_nouveau_gem_new req = {};
@@ -210,7 +201,6 @@ nouveau_ws_bo_new_tiled(struct nouveau_ws_device *dev,
bo->refcnt = 1;
if (dev->has_vm_bind) {
assert(pte_kind == 0);
bo->offset = nouveau_ws_alloc_vma(dev, bo->size, align, false);
nouveau_ws_bo_bind_vma(dev, bo, bo->offset, bo->size, 0, 0);
}

View File

@@ -66,11 +66,6 @@ struct nouveau_ws_bo *nouveau_ws_bo_new_mapped(struct nouveau_ws_device *,
enum nouveau_ws_bo_flags,
enum nouveau_ws_bo_map_flags map_flags,
void **map_out);
struct nouveau_ws_bo *nouveau_ws_bo_new_tiled(struct nouveau_ws_device *,
uint64_t size, uint64_t align,
uint8_t pte_kind,
uint16_t tile_mode,
enum nouveau_ws_bo_flags);
struct nouveau_ws_bo *nouveau_ws_bo_from_dma_buf(struct nouveau_ws_device *,
int fd);
void nouveau_ws_bo_destroy(struct nouveau_ws_bo *);