diff options
author | Tom Stellard <[email protected]> | 2014-08-08 09:30:33 -0400 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2014-08-13 14:17:02 -0400 |
commit | 05e9681d5524981db623c077708816476553f908 (patch) | |
tree | 411dd451d289539b66402097e1c71f11a3868b18 /src/gallium | |
parent | 72969e0efb7a5a011629c1001e81aa2329ede6b1 (diff) |
radeonsi/compute: Update reference counts for buffers in si_set_global_binding()
CC: "10.2" <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_compute.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_compute.c b/src/gallium/drivers/radeonsi/si_compute.c index 12e4f5611c5..2ddd7c2bafd 100644 --- a/src/gallium/drivers/radeonsi/si_compute.c +++ b/src/gallium/drivers/radeonsi/si_compute.c @@ -105,7 +105,7 @@ static void si_set_global_binding( if (!resources) { for (i = first; i < first + n; i++) { - program->global_buffers[i] = NULL; + pipe_resource_reference(&program->global_buffers[i], NULL); } return; } @@ -113,7 +113,7 @@ static void si_set_global_binding( for (i = first; i < first + n; i++) { uint64_t va; uint32_t offset; - program->global_buffers[i] = resources[i]; + pipe_resource_reference(&program->global_buffers[i], resources[i]); va = r600_resource(resources[i])->gpu_address; offset = util_le32_to_cpu(*handles[i]); va += offset; |