summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_compute.c
diff options
context:
space:
mode:
authorAndreas Hartmetz <[email protected]>2014-01-11 15:47:07 +0100
committerMarek Olšák <[email protected]>2014-01-14 00:07:13 +0100
commit238aeabce0e5cfd850279a68fe0c816adc175294 (patch)
tree46c567d9cf151fbf88bbd6c10c6453eaba8ce2fc /src/gallium/drivers/radeonsi/si_compute.c
parent786af2f963925df2c2a6fb60b29a83e8340f03c7 (diff)
radeonsi: Rename r600->si for structs in si_pipe.h.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_compute.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_compute.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/drivers/radeonsi/si_compute.c b/src/gallium/drivers/radeonsi/si_compute.c
index 40d75daa3f5..b53b1f65211 100644
--- a/src/gallium/drivers/radeonsi/si_compute.c
+++ b/src/gallium/drivers/radeonsi/si_compute.c
@@ -9,7 +9,7 @@
#define MAX_GLOBAL_BUFFERS 20
struct si_pipe_compute {
- struct r600_context *ctx;
+ struct si_context *ctx;
unsigned local_size;
unsigned private_size;
@@ -27,7 +27,7 @@ static void *radeonsi_create_compute_state(
struct pipe_context *ctx,
const struct pipe_compute_state *cso)
{
- struct r600_context *rctx = (struct r600_context *)ctx;
+ struct si_context *rctx = (struct si_context *)ctx;
struct si_pipe_compute *program =
CALLOC_STRUCT(si_pipe_compute);
const struct pipe_llvm_program_header *header;
@@ -60,7 +60,7 @@ static void *radeonsi_create_compute_state(
static void radeonsi_bind_compute_state(struct pipe_context *ctx, void *state)
{
- struct r600_context *rctx = (struct r600_context*)ctx;
+ struct si_context *rctx = (struct si_context*)ctx;
rctx->cs_shader_state.program = (struct si_pipe_compute*)state;
}
@@ -70,7 +70,7 @@ static void radeonsi_set_global_binding(
uint32_t **handles)
{
unsigned i;
- struct r600_context *rctx = (struct r600_context*)ctx;
+ struct si_context *rctx = (struct si_context*)ctx;
struct si_pipe_compute *program = rctx->cs_shader_state.program;
if (!resources) {
@@ -93,7 +93,7 @@ static void radeonsi_launch_grid(
const uint *block_layout, const uint *grid_layout,
uint32_t pc, const void *input)
{
- struct r600_context *rctx = (struct r600_context*)ctx;
+ struct si_context *rctx = (struct si_context*)ctx;
struct si_pipe_compute *program = rctx->cs_shader_state.program;
struct si_pm4_state *pm4 = CALLOC_STRUCT(si_pm4_state);
struct r600_resource *kernel_args_buffer = NULL;
@@ -287,7 +287,7 @@ static void si_set_compute_resources(struct pipe_context * ctx_,
unsigned start, unsigned count,
struct pipe_surface ** surfaces) { }
-void si_init_compute_functions(struct r600_context *rctx)
+void si_init_compute_functions(struct si_context *rctx)
{
rctx->b.b.create_compute_state = radeonsi_create_compute_state;
rctx->b.b.delete_compute_state = si_delete_compute_state;