diff options
author | Marek Olšák <[email protected]> | 2018-04-08 21:52:05 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-04-27 17:56:04 -0400 |
commit | 6fadfc01c6f1600de89e8cd74f2ba78f503b5e6b (patch) | |
tree | 916697109be70bb94cb447c0e9ffd2bd5170c558 /src/gallium/drivers/radeonsi/si_query.c | |
parent | 3160ee876aa37ddf3f9de42a3db3f986eff57000 (diff) |
radeonsi: use r600_resource() typecast helper
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_query.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_query.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_query.c b/src/gallium/drivers/radeonsi/si_query.c index d621f22f46b..7f32be39a16 100644 --- a/src/gallium/drivers/radeonsi/si_query.c +++ b/src/gallium/drivers/radeonsi/si_query.c @@ -530,9 +530,9 @@ static struct r600_resource *si_new_query_buffer(struct si_screen *sscreen, * being written by the gpu, hence staging is probably a good * usage pattern. */ - struct r600_resource *buf = (struct r600_resource*) + struct r600_resource *buf = r600_resource( pipe_buffer_create(&sscreen->b, 0, - PIPE_USAGE_STAGING, buf_size); + PIPE_USAGE_STAGING, buf_size)); if (!buf) return NULL; @@ -1742,7 +1742,7 @@ static void si_query_hw_get_result_resource(struct si_context *sctx, ssbo[2].buffer_offset = offset; ssbo[2].buffer_size = 8; - ((struct r600_resource *)resource)->TC_L2_dirty = true; + r600_resource(resource)->TC_L2_dirty = true; } sctx->b.set_shader_buffers(&sctx->b, PIPE_SHADER_COMPUTE, 0, 3, ssbo); |