diff options
author | Tom Stellard <[email protected]> | 2014-08-19 16:07:24 -0700 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2014-08-21 06:12:12 -0700 |
commit | a9f0b08bacc9422bf98ce14d97b6c60a1b80df04 (patch) | |
tree | 69488ec7942308580f96f82d40bc9c836190dd7b /src | |
parent | 43d954342e02a2bd719e543d567fd6c43b3e5367 (diff) |
r600g/compute: Use the first parameter in evergreen_set_global_binding()
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/r600/evergreen_compute.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c index acc1b714fdf..9e3404f2d1d 100644 --- a/src/gallium/drivers/r600/evergreen_compute.c +++ b/src/gallium/drivers/r600/evergreen_compute.c @@ -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; |