diff options
author | Marek Olšák <[email protected]> | 2013-08-14 01:04:39 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-08-31 01:34:30 +0200 |
commit | a81c3e00fee0626e63b1fb8ebb4c2cef3fb23367 (patch) | |
tree | 663b943d05880c68b9d7f9d6d5ef26bdd7a5aed9 /src/gallium/drivers/radeonsi/radeonsi_resource.h | |
parent | d5b23dfc1c07f98afe749053b9cb4b69829fe3d4 (diff) |
radeonsi: use r600_common_context, r600_common_screen, r600_resource
Also r600_hw_context_priv.h and si_state_streamout.c are removed, because
they are no longer needed.
Reviewed-by: Michel Dänzer <[email protected]>
Reviewed-by: Christian König <[email protected]>
Tested-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/radeonsi_resource.h')
-rw-r--r-- | src/gallium/drivers/radeonsi/radeonsi_resource.h | 34 |
1 files changed, 5 insertions, 29 deletions
diff --git a/src/gallium/drivers/radeonsi/radeonsi_resource.h b/src/gallium/drivers/radeonsi/radeonsi_resource.h index 9f4b4c136cf..7794beb9c57 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_resource.h +++ b/src/gallium/drivers/radeonsi/radeonsi_resource.h @@ -27,40 +27,16 @@ #ifndef RADEONSI_RESOURCE_H #define RADEONSI_RESOURCE_H -#include "../../winsys/radeon/drm/radeon_winsys.h" +#include "../radeon/r600_pipe_common.h" #include "util/u_transfer.h" #include "util/u_inlines.h" -struct si_resource { - struct u_resource b; - - /* Winsys objects. */ - struct pb_buffer *buf; - struct radeon_winsys_cs_handle *cs_buf; - - /* Resource state. */ - unsigned domains; -}; - -static INLINE void -si_resource_reference(struct si_resource **ptr, struct si_resource *res) -{ - pipe_resource_reference((struct pipe_resource **)ptr, - (struct pipe_resource *)res); -} - -static INLINE struct si_resource * -si_resource(struct pipe_resource *r) -{ - return (struct si_resource*)r; -} - -static INLINE struct si_resource * -si_resource_create_custom(struct pipe_screen *screen, - unsigned usage, unsigned size) +static INLINE struct r600_resource * +r600_resource_create_custom(struct pipe_screen *screen, + unsigned usage, unsigned size) { assert(size); - return si_resource(pipe_buffer_create(screen, + return r600_resource(pipe_buffer_create(screen, PIPE_BIND_CUSTOM, usage, size)); } |