summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2014-08-08 09:30:33 -0400
committerTom Stellard <[email protected]>2014-08-13 14:17:02 -0400
commit05e9681d5524981db623c077708816476553f908 (patch)
tree411dd451d289539b66402097e1c71f11a3868b18 /src/gallium
parent72969e0efb7a5a011629c1001e81aa2329ede6b1 (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.c4
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;