summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_uvd.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-06-21 21:17:44 +0200
committerMarek Olšák <[email protected]>2016-06-29 20:12:00 +0200
commit36cf5a57c2b53b50778482f7341b7afcdc434daf (patch)
treef0265c0dfdccffbc84cec3eaa8fee860394dfa1b /src/gallium/drivers/radeonsi/si_uvd.c
parent6da92df538824d72e68ed4e290da57f51b00064a (diff)
gallium/radeon: add and use r600_texture_reference
Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Vedran Miletić <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_uvd.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_uvd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_uvd.c b/src/gallium/drivers/radeonsi/si_uvd.c
index 8c3e5fd865d..0d5bc378b2b 100644
--- a/src/gallium/drivers/radeonsi/si_uvd.c
+++ b/src/gallium/drivers/radeonsi/si_uvd.c
@@ -113,7 +113,7 @@ struct pipe_video_buffer *si_video_buffer_create(struct pipe_context *pipe,
error:
for (i = 0; i < VL_NUM_COMPONENTS; ++i)
- pipe_resource_reference((struct pipe_resource **)&resources[i], NULL);
+ r600_texture_reference(&resources[i], NULL);
return NULL;
}