summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/r600_resource.h
diff options
context:
space:
mode:
authorChristian König <[email protected]>2012-07-24 18:47:19 +0200
committerChristian König <[email protected]>2012-07-30 14:44:38 +0200
commitfe41287ffa8cb35421cadfb16d4cc27c5fcb8b76 (patch)
tree216c973432d57a84baaf285b50f84bf2364a06bf /src/gallium/drivers/radeonsi/r600_resource.h
parentdcf8754cce1af09547a5976a74ba807bc6f2657c (diff)
radeonsi: rename r600_resource to si_resource
Also split it into seperate header and add some helper functions. Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/r600_resource.h')
-rw-r--r--src/gallium/drivers/radeonsi/r600_resource.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gallium/drivers/radeonsi/r600_resource.h b/src/gallium/drivers/radeonsi/r600_resource.h
index 314fb239b83..b4427a165de 100644
--- a/src/gallium/drivers/radeonsi/r600_resource.h
+++ b/src/gallium/drivers/radeonsi/r600_resource.h
@@ -39,7 +39,7 @@ struct r600_transfer {
};
struct r600_resource_texture {
- struct r600_resource resource;
+ struct si_resource resource;
/* If this resource is a depth-stencil buffer on evergreen, this contains
* the depth part of the format. There is a separate stencil resource
@@ -77,11 +77,6 @@ struct pipe_resource *r600_texture_from_handle(struct pipe_screen *screen,
const struct pipe_resource *base,
struct winsys_handle *whandle);
-static INLINE struct r600_resource *r600_resource(struct pipe_resource *r)
-{
- return (struct r600_resource*)r;
-}
-
int r600_texture_depth_flush(struct pipe_context *ctx, struct pipe_resource *texture, boolean just_create);
/* r600_texture.c texture transfer functions. */
@@ -99,7 +94,7 @@ void r600_texture_transfer_unmap(struct pipe_context *ctx,
struct r600_context;
-void r600_upload_const_buffer(struct r600_context *rctx, struct r600_resource **rbuffer,
+void r600_upload_const_buffer(struct r600_context *rctx, struct si_resource **rbuffer,
const uint8_t *ptr, unsigned size,
uint32_t *const_offset);