summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi
diff options
context:
space:
mode:
authorAndreas Hartmetz <[email protected]>2014-01-11 15:56:47 +0100
committerMarek Olšák <[email protected]>2014-01-14 00:07:13 +0100
commit0b57fc15e13ee6b1f8271927b7334a7ea280624b (patch)
tree2d2d7cbdfc66c82b11e9c766a8fd5bfbab299b72 /src/gallium/drivers/radeonsi
parent1b79764f495c769f3d56a4229085e313f23c9e3e (diff)
radeonsi: Rename R600->SI in some remaining defines.
I had previously considered that unsafe. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r--src/gallium/drivers/radeonsi/si_buffer.c2
-rw-r--r--src/gallium/drivers/radeonsi/si_hw_context.c10
-rw-r--r--src/gallium/drivers/radeonsi/si_pipe.c4
-rw-r--r--src/gallium/drivers/radeonsi/si_pipe.h12
-rw-r--r--src/gallium/drivers/radeonsi/si_pm4.c6
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.c2
-rw-r--r--src/gallium/drivers/radeonsi/si_state.c2
-rw-r--r--src/gallium/drivers/radeonsi/si_state_draw.c6
8 files changed, 22 insertions, 22 deletions
diff --git a/src/gallium/drivers/radeonsi/si_buffer.c b/src/gallium/drivers/radeonsi/si_buffer.c
index 8261deb1c98..111081df53c 100644
--- a/src/gallium/drivers/radeonsi/si_buffer.c
+++ b/src/gallium/drivers/radeonsi/si_buffer.c
@@ -46,7 +46,7 @@ void si_upload_const_buffer(struct si_context *rctx, struct r600_resource **rbuf
const uint8_t *ptr, unsigned size,
uint32_t *const_offset)
{
- if (R600_BIG_ENDIAN) {
+ if (SI_BIG_ENDIAN) {
uint32_t *tmpPtr;
unsigned i;
diff --git a/src/gallium/drivers/radeonsi/si_hw_context.c b/src/gallium/drivers/radeonsi/si_hw_context.c
index a557647e678..4542b0f5efc 100644
--- a/src/gallium/drivers/radeonsi/si_hw_context.c
+++ b/src/gallium/drivers/radeonsi/si_hw_context.c
@@ -161,9 +161,9 @@ void si_need_cs_space(struct si_context *ctx, unsigned num_dw,
/* Count in framebuffer cache flushes at the end of CS. */
num_dw += ctx->atoms.cache_flush->num_dw;
-#if R600_TRACE_CS
+#if SI_TRACE_CS
if (ctx->screen->trace_bo) {
- num_dw += R600_TRACE_CS_DWORDS;
+ num_dw += SI_TRACE_CS_DWORDS;
}
#endif
@@ -208,7 +208,7 @@ void si_context_flush(struct si_context *ctx, unsigned flags)
/* force to keep tiling flags */
flags |= RADEON_FLUSH_KEEP_TILING_FLAGS;
-#if R600_TRACE_CS
+#if SI_TRACE_CS
if (ctx->screen->trace_bo) {
struct si_screen *rscreen = ctx->screen;
unsigned i;
@@ -223,7 +223,7 @@ void si_context_flush(struct si_context *ctx, unsigned flags)
/* Flush the CS. */
ctx->b.ws->cs_flush(ctx->b.rings.gfx.cs, flags, 0);
-#if R600_TRACE_CS
+#if SI_TRACE_CS
if (ctx->screen->trace_bo) {
struct si_screen *rscreen = ctx->screen;
unsigned i;
@@ -695,7 +695,7 @@ void si_context_queries_resume(struct si_context *ctx)
}
}
-#if R600_TRACE_CS
+#if SI_TRACE_CS
void si_trace_emit(struct si_context *rctx)
{
struct si_screen *rscreen = rctx->screen;
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
index 2865269ca43..5c772cba914 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -597,7 +597,7 @@ static void si_destroy_screen(struct pipe_screen* pscreen)
r600_common_screen_cleanup(&rscreen->b);
-#if R600_TRACE_CS
+#if SI_TRACE_CS
if (rscreen->trace_bo) {
rscreen->ws->buffer_unmap(rscreen->trace_bo->cs_buf);
pipe_resource_reference((struct pipe_resource**)&rscreen->trace_bo, NULL);
@@ -656,7 +656,7 @@ struct pipe_screen *radeonsi_screen_create(struct radeon_winsys *ws)
if (debug_get_bool_option("RADEON_DUMP_SHADERS", FALSE))
rscreen->b.debug_flags |= DBG_FS | DBG_VS | DBG_GS | DBG_PS | DBG_CS;
-#if R600_TRACE_CS
+#if SI_TRACE_CS
rscreen->cs_count = 0;
if (rscreen->info.drm_minor >= 28) {
rscreen->trace_bo = (struct r600_resource*)pipe_buffer_create(&rscreen->screen,
diff --git a/src/gallium/drivers/radeonsi/si_pipe.h b/src/gallium/drivers/radeonsi/si_pipe.h
index 8fbadc74124..abf19442c90 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.h
+++ b/src/gallium/drivers/radeonsi/si_pipe.h
@@ -41,13 +41,13 @@
#include "si_state.h"
#ifdef PIPE_ARCH_BIG_ENDIAN
-#define R600_BIG_ENDIAN 1
+#define SI_BIG_ENDIAN 1
#else
-#define R600_BIG_ENDIAN 0
+#define SI_BIG_ENDIAN 0
#endif
-#define R600_TRACE_CS 0
-#define R600_TRACE_CS_DWORDS 6
+#define SI_TRACE_CS 0
+#define SI_TRACE_CS_DWORDS 6
#define SI_MAX_DRAW_CS_DWORDS 18
@@ -55,7 +55,7 @@ struct si_pipe_compute;
struct si_screen {
struct r600_common_screen b;
-#if R600_TRACE_CS
+#if SI_TRACE_CS
struct r600_resource *trace_bo;
uint32_t *trace_ptr;
unsigned cs_count;
@@ -203,7 +203,7 @@ void si_translate_index_buffer(struct si_context *r600,
struct pipe_index_buffer *ib,
unsigned count);
-#if R600_TRACE_CS
+#if SI_TRACE_CS
void si_trace_emit(struct si_context *rctx);
#endif
diff --git a/src/gallium/drivers/radeonsi/si_pm4.c b/src/gallium/drivers/radeonsi/si_pm4.c
index c08c86475c6..4f81ca875be 100644
--- a/src/gallium/drivers/radeonsi/si_pm4.c
+++ b/src/gallium/drivers/radeonsi/si_pm4.c
@@ -200,10 +200,10 @@ unsigned si_pm4_dirty_dw(struct si_context *rctx)
continue;
count += state->ndw;
-#if R600_TRACE_CS
+#if SI_TRACE_CS
/* for tracing each states */
if (rctx->screen->trace_bo) {
- count += R600_TRACE_CS_DWORDS;
+ count += SI_TRACE_CS_DWORDS;
}
#endif
}
@@ -227,7 +227,7 @@ void si_pm4_emit(struct si_context *rctx, struct si_pm4_state *state)
cs->cdw += state->ndw;
-#if R600_TRACE_CS
+#if SI_TRACE_CS
if (rctx->screen->trace_bo) {
r600_trace_emit(rctx);
}
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index 78c02da7802..3e401371975 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -1948,7 +1948,7 @@ int si_compile_llvm(struct si_context *rctx, struct si_pipe_shader *shader,
}
ptr = (uint32_t*)rctx->b.ws->buffer_map(shader->bo->cs_buf, rctx->b.rings.gfx.cs, PIPE_TRANSFER_WRITE);
- if (0 /*R600_BIG_ENDIAN*/) {
+ if (0 /*SI_BIG_ENDIAN*/) {
for (i = 0; i < binary.code_size / 4; ++i) {
ptr[i] = util_bswap32(*(uint32_t*)(binary.code + i*4));
}
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
index 9ce0955e62d..22111787069 100644
--- a/src/gallium/drivers/radeonsi/si_state.c
+++ b/src/gallium/drivers/radeonsi/si_state.c
@@ -948,7 +948,7 @@ static uint32_t si_translate_colorswap(enum pipe_format format)
static uint32_t si_colorformat_endian_swap(uint32_t colorformat)
{
- if (R600_BIG_ENDIAN) {
+ if (SI_BIG_ENDIAN) {
switch(colorformat) {
/* 8-bit buffers. */
case V_028C70_COLOR_8:
diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c
index f5947279349..056fb62e409 100644
--- a/src/gallium/drivers/radeonsi/si_state_draw.c
+++ b/src/gallium/drivers/radeonsi/si_state_draw.c
@@ -586,10 +586,10 @@ static void si_state_draw(struct si_context *rctx,
/* draw packet */
si_pm4_cmd_begin(pm4, PKT3_INDEX_TYPE);
if (ib->index_size == 4) {
- si_pm4_cmd_add(pm4, V_028A7C_VGT_INDEX_32 | (R600_BIG_ENDIAN ?
+ si_pm4_cmd_add(pm4, V_028A7C_VGT_INDEX_32 | (SI_BIG_ENDIAN ?
V_028A7C_VGT_DMA_SWAP_32_BIT : 0));
} else {
- si_pm4_cmd_add(pm4, V_028A7C_VGT_INDEX_16 | (R600_BIG_ENDIAN ?
+ si_pm4_cmd_add(pm4, V_028A7C_VGT_INDEX_16 | (SI_BIG_ENDIAN ?
V_028A7C_VGT_DMA_SWAP_16_BIT : 0));
}
si_pm4_cmd_end(pm4, rctx->predicate_drawing);
@@ -748,7 +748,7 @@ void si_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info)
si_pm4_emit_dirty(rctx);
rctx->pm4_dirty_cdwords = 0;
-#if R600_TRACE_CS
+#if SI_TRACE_CS
if (rctx->screen->trace_bo) {
r600_trace_emit(rctx);
}