projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added few more stubs so that control reaches to DestroyDevice().
[mesa.git]
/
src
/
gallium
/
auxiliary
/
pipebuffer
/
pb_cache.c
diff --git
a/src/gallium/auxiliary/pipebuffer/pb_cache.c
b/src/gallium/auxiliary/pipebuffer/pb_cache.c
index 0aaedbfae4ccbb58f08cd26b8e29acccd3320ad6..ec878202f0825b266e1d862819404a1e31439c80 100644
(file)
--- a/
src/gallium/auxiliary/pipebuffer/pb_cache.c
+++ b/
src/gallium/auxiliary/pipebuffer/pb_cache.c
@@
-42,7
+42,7
@@
destroy_buffer_locked(struct pb_cache_entry *entry)
assert(!pipe_is_referenced(&buf->reference));
if (entry->head.next) {
assert(!pipe_is_referenced(&buf->reference));
if (entry->head.next) {
-
LIST_DEL
(&entry->head);
+
list_del
(&entry->head);
assert(mgr->num_buffers);
--mgr->num_buffers;
mgr->cache_size -= buf->size;
assert(mgr->num_buffers);
--mgr->num_buffers;
mgr->cache_size -= buf->size;
@@
-104,7
+104,7
@@
pb_cache_add_buffer(struct pb_cache_entry *entry)
entry->start = os_time_get();
entry->end = entry->start + mgr->usecs;
entry->start = os_time_get();
entry->end = entry->start + mgr->usecs;
-
LIST_ADDTAIL
(&entry->head, cache);
+
list_addtail
(&entry->head, cache);
++mgr->num_buffers;
mgr->cache_size += buf->size;
mtx_unlock(&mgr->mutex);
++mgr->num_buffers;
mgr->cache_size += buf->size;
mtx_unlock(&mgr->mutex);
@@
-169,7
+169,7
@@
pb_cache_reclaim_buffer(struct pb_cache *mgr, pb_size size,
cur_entry = LIST_ENTRY(struct pb_cache_entry, cur, head);
if (!entry && (ret = pb_cache_is_buffer_compat(cur_entry, size,
cur_entry = LIST_ENTRY(struct pb_cache_entry, cur, head);
if (!entry && (ret = pb_cache_is_buffer_compat(cur_entry, size,
- alignment, usage)
> 0)
)
+ alignment, usage)
) > 0
)
entry = cur_entry;
else if (os_time_timeout(cur_entry->start, cur_entry->end, now))
destroy_buffer_locked(cur_entry);
entry = cur_entry;
else if (os_time_timeout(cur_entry->start, cur_entry->end, now))
destroy_buffer_locked(cur_entry);
@@
-208,7
+208,7
@@
pb_cache_reclaim_buffer(struct pb_cache *mgr, pb_size size,
struct pb_buffer *buf = entry->buffer;
mgr->cache_size -= buf->size;
struct pb_buffer *buf = entry->buffer;
mgr->cache_size -= buf->size;
-
LIST_DEL
(&entry->head);
+
list_del
(&entry->head);
--mgr->num_buffers;
mtx_unlock(&mgr->mutex);
/* Increase refcount */
--mgr->num_buffers;
mtx_unlock(&mgr->mutex);
/* Increase refcount */
@@
-290,7
+290,7
@@
pb_cache_init(struct pb_cache *mgr, uint num_heaps,
return;
for (i = 0; i < num_heaps; i++)
return;
for (i = 0; i < num_heaps; i++)
-
LIST_INITHEAD
(&mgr->buckets[i]);
+
list_inithead
(&mgr->buckets[i]);
(void) mtx_init(&mgr->mutex, mtx_plain);
mgr->cache_size = 0;
(void) mtx_init(&mgr->mutex, mtx_plain);
mgr->cache_size = 0;