mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
asahi: rm deadcode
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29179>
This commit is contained in:
parent
3cb8c1de81
commit
5f40b0e9fd
3 changed files with 0 additions and 23 deletions
|
|
@ -29,13 +29,6 @@ agx_bucket(struct agx_device *dev, unsigned size)
|
|||
return &dev->bo_cache.buckets[agx_bucket_index(size)];
|
||||
}
|
||||
|
||||
static bool
|
||||
agx_bo_wait(struct agx_bo *bo, int64_t timeout_ns)
|
||||
{
|
||||
/* TODO: When we allow parallelism we'll need to implement this for real */
|
||||
return true;
|
||||
}
|
||||
|
||||
static void
|
||||
agx_bo_cache_remove_locked(struct agx_device *dev, struct agx_bo *bo)
|
||||
{
|
||||
|
|
@ -70,11 +63,6 @@ agx_bo_cache_fetch(struct agx_device *dev, size_t size, size_t align,
|
|||
if (align > entry->align)
|
||||
continue;
|
||||
|
||||
/* If the oldest BO in the cache is busy, likely so is
|
||||
* everything newer, so bail. */
|
||||
if (!agx_bo_wait(entry, dontwait ? 0 : INT64_MAX))
|
||||
break;
|
||||
|
||||
/* This one works, use it */
|
||||
agx_bo_cache_remove_locked(dev, entry);
|
||||
bo = entry;
|
||||
|
|
|
|||
|
|
@ -83,15 +83,6 @@ struct agx_bo {
|
|||
/* Syncobj handle of the current writer, if any */
|
||||
uint32_t writer_syncobj;
|
||||
|
||||
/* Globally unique value (system wide) for tracing. Exists for resources,
|
||||
* command buffers, GPU submissions, segments, segmentent lists, encoders,
|
||||
* accelerators, and channels. Corresponds to Instruments' magic table
|
||||
* metal-gpu-submission-to-command-buffer-id */
|
||||
uint64_t guid;
|
||||
|
||||
/* Human-readable label, or NULL if none */
|
||||
char *name;
|
||||
|
||||
/* Owner */
|
||||
struct agx_device *dev;
|
||||
|
||||
|
|
|
|||
|
|
@ -151,8 +151,6 @@ agx_bo_alloc(struct agx_device *dev, size_t size, size_t align,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
bo->guid = bo->handle; /* TODO: We don't care about guids */
|
||||
|
||||
uint32_t bind = ASAHI_BIND_READ;
|
||||
if (!(flags & AGX_BO_READONLY)) {
|
||||
bind |= ASAHI_BIND_WRITE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue