From fe41287ffa8cb35421cadfb16d4cc27c5fcb8b76 Mon Sep 17 00:00:00 2001 From: Christian König Date: Tue, 24 Jul 2012 18:47:19 +0200 Subject: radeonsi: rename r600_resource to si_resource MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also split it into seperate header and add some helper functions. Signed-off-by: Christian König Reviewed-by: Alex Deucher Reviewed-by: Michel Dänzer --- src/gallium/drivers/radeonsi/radeonsi_shader.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/gallium/drivers/radeonsi/radeonsi_shader.c') diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.c b/src/gallium/drivers/radeonsi/radeonsi_shader.c index cc6003544e3..70081370b3e 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_shader.c +++ b/src/gallium/drivers/radeonsi/radeonsi_shader.c @@ -611,8 +611,7 @@ int si_pipe_shader_create( if (shader->bo == NULL) { uint32_t *ptr; - shader->bo = (struct r600_resource*) - pipe_buffer_create(ctx->screen, PIPE_BIND_CUSTOM, PIPE_USAGE_IMMUTABLE, inst_byte_count); + shader->bo = si_resource_create_custom(ctx->screen, PIPE_USAGE_IMMUTABLE, inst_byte_count); if (shader->bo == NULL) { return -ENOMEM; } @@ -634,7 +633,7 @@ int si_pipe_shader_create( void si_pipe_shader_destroy(struct pipe_context *ctx, struct si_pipe_shader *shader) { - pipe_resource_reference((struct pipe_resource**)&shader->bo, NULL); + si_resource_reference(&shader->bo, NULL); memset(&shader->shader,0,sizeof(struct si_shader)); } -- cgit v1.2.3