aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_buffer.c
diff options
context:
space:
mode:
authorAndreas Hartmetz <[email protected]>2014-01-11 16:00:50 +0100
committerMarek Olšák <[email protected]>2014-01-14 00:07:14 +0100
commit8662e66bf237a820a704df112718be599136098b (patch)
treed187f3c7e62a1d16ed3eca45c2af687114101f68 /src/gallium/drivers/radeonsi/si_buffer.c
parent44d27ce2b2b1b3d2b1c541c3e72374b77cb37b36 (diff)
radeonsi: Rename the commonly occurring rctx/r600 variables.
The "r" stands for R600. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_buffer.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_buffer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeonsi/si_buffer.c b/src/gallium/drivers/radeonsi/si_buffer.c
index 111081df53c..6b05c9f52b8 100644
--- a/src/gallium/drivers/radeonsi/si_buffer.c
+++ b/src/gallium/drivers/radeonsi/si_buffer.c
@@ -35,14 +35,14 @@
#include "si.h"
#include "si_pipe.h"
-void si_upload_index_buffer(struct si_context *rctx,
+void si_upload_index_buffer(struct si_context *sctx,
struct pipe_index_buffer *ib, unsigned count)
{
- u_upload_data(rctx->b.uploader, 0, count * ib->index_size,
+ u_upload_data(sctx->b.uploader, 0, count * ib->index_size,
ib->user_buffer, &ib->offset, &ib->buffer);
}
-void si_upload_const_buffer(struct si_context *rctx, struct r600_resource **rbuffer,
+void si_upload_const_buffer(struct si_context *sctx, struct r600_resource **rbuffer,
const uint8_t *ptr, unsigned size,
uint32_t *const_offset)
{
@@ -59,12 +59,12 @@ void si_upload_const_buffer(struct si_context *rctx, struct r600_resource **rbuf
tmpPtr[i] = util_bswap32(((uint32_t *)ptr)[i]);
}
- u_upload_data(rctx->b.uploader, 0, size, tmpPtr, const_offset,
+ u_upload_data(sctx->b.uploader, 0, size, tmpPtr, const_offset,
(struct pipe_resource**)rbuffer);
free(tmpPtr);
} else {
- u_upload_data(rctx->b.uploader, 0, size, ptr, const_offset,
+ u_upload_data(sctx->b.uploader, 0, size, ptr, const_offset,
(struct pipe_resource**)rbuffer);
}
}