Skip to content
Snippets Groups Projects
Commit a9f0b08b authored by Tom Stellard's avatar Tom Stellard
Browse files

r600g/compute: Use the first parameter in evergreen_set_global_binding()

parent 43d95434
No related branches found
No related tags found
No related merge requests found
......@@ -648,6 +648,7 @@ static void evergreen_set_global_binding(
struct compute_memory_pool *pool = ctx->screen->global_pool;
struct r600_resource_global **buffers =
(struct r600_resource_global **)resources;
unsigned i;
COMPUTE_DBG(ctx->screen, "*** evergreen_set_global_binding first = %u n = %u\n",
first, n);
......@@ -659,7 +660,7 @@ static void evergreen_set_global_binding(
/* We mark these items for promotion to the pool if they
* aren't already there */
for (unsigned i = 0; i < n; i++) {
for (i = first; i < first + n; i++) {
struct compute_memory_item *item = buffers[i]->chunk;
if (!is_item_in_pool(item))
......@@ -671,7 +672,7 @@ static void evergreen_set_global_binding(
return;
}
for (unsigned i = 0; i < n; i++)
for (i = first; i < first + n; i++)
{
uint32_t buffer_offset;
uint32_t handle;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment