summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/r600/compute_memory_pool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/compute_memory_pool.c b/src/gallium/drivers/r600/compute_memory_pool.c
index 2050f289475..ec8c470fc65 100644
--- a/src/gallium/drivers/r600/compute_memory_pool.c
+++ b/src/gallium/drivers/r600/compute_memory_pool.c
@@ -110,7 +110,7 @@ int64_t compute_memory_prealloc_chunk(
for (item = pool->item_list; item; item = item->next) {
if (item->start_in_dw > -1) {
- if (item->start_in_dw-last_end > size_in_dw) {
+ if (last_end + size_in_dw <= item->start_in_dw) {
return last_end;
}