r600g: indentation fixes
authorJerome Glisse <jglisse@redhat.com>
Fri, 1 Oct 2010 14:26:58 +0000 (10:26 -0400)
committerJerome Glisse <jglisse@redhat.com>
Fri, 1 Oct 2010 14:26:58 +0000 (10:26 -0400)
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
src/gallium/drivers/r600/eg_asm.c
src/gallium/drivers/r600/eg_state_inlines.h
src/gallium/drivers/r600/r600_asm.h
src/gallium/drivers/r600/r600_buffer.c
src/gallium/drivers/r600/r600_resource.c

index dd9eda18d1f259bc10f4c0b13b152f9d590d6c3a..52b7189e9e5280dba892b8e6bb6f683a9491cafb 100644 (file)
@@ -72,8 +72,8 @@ int eg_bc_cf_build(struct r600_bc *bc, struct r600_bc_cf *cf)
                bc->bytecode[id++] = S_SQ_CF_WORD0_ADDR(cf->cf_addr >> 1);
                bc->bytecode[id++] = S_SQ_CF_WORD1_CF_INST(cf->inst) |
                                        S_SQ_CF_WORD1_BARRIER(1) |
-                                       S_SQ_CF_WORD1_COND(cf->cond) |
-                                       S_SQ_CF_WORD1_POP_COUNT(cf->pop_count);
+                                       S_SQ_CF_WORD1_COND(cf->cond) |
+                                       S_SQ_CF_WORD1_POP_COUNT(cf->pop_count);
 
                break;
        default:
index c93b9d94c55dd954cfe2a197f5530b2f0b5779ea..810949044856e6da22b3d44b691dd166520575ad 100644 (file)
@@ -494,9 +494,9 @@ static INLINE uint32_t r600_translate_vertex_data_type(enum pipe_format format)
 
        switch (desc->channel[i].type) {
                /* Half-floats, floats, doubles */
-        case UTIL_FORMAT_TYPE_FLOAT:
+       case UTIL_FORMAT_TYPE_FLOAT:
                switch (desc->channel[i].size) {
-                case 16:
+               case 16:
                        switch (desc->nr_channels) {
                        case 1:
                                result = V_030008_FMT_16_FLOAT;
@@ -512,7 +512,7 @@ static INLINE uint32_t r600_translate_vertex_data_type(enum pipe_format format)
                                break;
                        }
                        break;
-                case 32:
+               case 32:
                        switch (desc->nr_channels) {
                        case 1:
                                result = V_030008_FMT_32_FLOAT;
@@ -528,16 +528,16 @@ static INLINE uint32_t r600_translate_vertex_data_type(enum pipe_format format)
                                break;
                        }
                        break;
-                default:
+               default:
                        goto out_unknown;
                }
                break;
-               /* Unsigned ints */
-        case UTIL_FORMAT_TYPE_UNSIGNED:
-               /* Signed ints */
-        case UTIL_FORMAT_TYPE_SIGNED:
+       /* Unsigned ints */
+       case UTIL_FORMAT_TYPE_UNSIGNED:
+       /* Signed ints */
+       case UTIL_FORMAT_TYPE_SIGNED:
                switch (desc->channel[i].size) {
-                case 8:
+               case 8:
                        switch (desc->nr_channels) {
                        case 1:
                                result = V_030008_FMT_8;
@@ -546,14 +546,14 @@ static INLINE uint32_t r600_translate_vertex_data_type(enum pipe_format format)
                                result = V_030008_FMT_8_8;
                                break;
                        case 3:
-                       //      result = V_038008_FMT_8_8_8; /* fails piglit draw-vertices test */
-                       //      break;
+//                             result = V_038008_FMT_8_8_8; /* fails piglit draw-vertices test */
+//                             break;
                        case 4:
                                result = V_030008_FMT_8_8_8_8;
                                break;
                        }
                        break;
-                case 16:
+               case 16:
                        switch (desc->nr_channels) {
                        case 1:
                                result = V_030008_FMT_16;
@@ -562,14 +562,14 @@ static INLINE uint32_t r600_translate_vertex_data_type(enum pipe_format format)
                                result = V_030008_FMT_16_16;
                                break;
                        case 3:
-                       //      result = V_038008_FMT_16_16_16; /* fails piglit draw-vertices test */
-                       //      break;
+//                             result = V_038008_FMT_16_16_16; /* fails piglit draw-vertices test */
+//                             break;
                        case 4:
                                result = V_030008_FMT_16_16_16_16;
                                break;
                        }
                        break;
-                case 32:
+               case 32:
                        switch (desc->nr_channels) {
                        case 1:
                                result = V_030008_FMT_32;
@@ -585,14 +585,14 @@ static INLINE uint32_t r600_translate_vertex_data_type(enum pipe_format format)
                                break;
                        }
                        break;
-                default:
+               default:
                        goto out_unknown;
                }
                break;
-        default:
+       default:
                goto out_unknown;
        }
-       
+
        result = S_030008_DATA_FORMAT(result);
 
        if (desc->channel[i].type == UTIL_FORMAT_TYPE_SIGNED) {
@@ -611,36 +611,36 @@ out_unknown:
 
 static INLINE uint32_t r600_translate_vertex_data_swizzle(enum pipe_format format)
 {
-        const struct util_format_description *desc = util_format_description(format);
-        unsigned i;
-        uint32_t word3;
-
-        assert(format);
-
-        if (desc->layout != UTIL_FORMAT_LAYOUT_PLAIN) {
-                fprintf(stderr, "r600: Bad format %s in %s:%d\n",
-                        util_format_short_name(format), __FUNCTION__, __LINE__);
-                return 0;
-        }
-
-        word3 = 0;
-        for (i = 0; i < desc->nr_channels; i++) {
-                switch (i) {
-                case 0:
-                        word3 |= S_03000C_DST_SEL_X(desc->swizzle[0]);
-                        break;
-                case 1:
-                        word3 |= S_03000C_DST_SEL_Y(desc->swizzle[1]);
-                        break;
-                case 2:
-                        word3 |= S_03000C_DST_SEL_Z(desc->swizzle[2]);
-                        break;
-                case 3:
-                        word3 |= S_03000C_DST_SEL_W(desc->swizzle[3]);
-                        break;
-                }
-        }
-        return word3;
+       const struct util_format_description *desc = util_format_description(format);
+       unsigned i;
+       uint32_t word3;
+
+       assert(format);
+
+       if (desc->layout != UTIL_FORMAT_LAYOUT_PLAIN) {
+               fprintf(stderr, "r600: Bad format %s in %s:%d\n",
+                               util_format_short_name(format), __FUNCTION__, __LINE__);
+               return 0;
+       }
+
+       word3 = 0;
+       for (i = 0; i < desc->nr_channels; i++) {
+               switch (i) {
+               case 0:
+                       word3 |= S_03000C_DST_SEL_X(desc->swizzle[0]);
+                       break;
+               case 1:
+                       word3 |= S_03000C_DST_SEL_Y(desc->swizzle[1]);
+                       break;
+               case 2:
+                       word3 |= S_03000C_DST_SEL_Z(desc->swizzle[2]);
+                       break;
+               case 3:
+                       word3 |= S_03000C_DST_SEL_W(desc->swizzle[3]);
+                       break;
+               }
+       }
+       return word3;
 }
 
 #endif
index cbf46a8b64be9022821ee5ccb15fd418009d2c29..dba60afc528098b03ff8616401ae3a1f8d82bbb9 100644 (file)
@@ -58,7 +58,7 @@ struct r600_bc_alu {
        unsigned                        bank_swizzle;
        unsigned                        bank_swizzle_force;
        u32                             value[4];
-       int hw_gpr[NUM_OF_CYCLES][NUM_OF_COMPONENTS];
+       int                             hw_gpr[NUM_OF_CYCLES][NUM_OF_COMPONENTS];
 };
 
 struct r600_bc_tex {
index 3900b3779f302b1f30f3ecea5bb96dbe6eb16e54..1bbcb310ebfdaa5d2e9eb271c2789d69f01ec388 100644 (file)
@@ -43,23 +43,23 @@ u32 r600_domain_from_usage(unsigned usage)
        u32 domain = RADEON_GEM_DOMAIN_GTT;
 
        if (usage & PIPE_BIND_RENDER_TARGET) {
-           domain |= RADEON_GEM_DOMAIN_VRAM;
+               domain |= RADEON_GEM_DOMAIN_VRAM;
        }
        if (usage & PIPE_BIND_DEPTH_STENCIL) {
-           domain |= RADEON_GEM_DOMAIN_VRAM;
+               domain |= RADEON_GEM_DOMAIN_VRAM;
        }
        if (usage & PIPE_BIND_SAMPLER_VIEW) {
-           domain |= RADEON_GEM_DOMAIN_VRAM;
+               domain |= RADEON_GEM_DOMAIN_VRAM;
        }
        /* also need BIND_BLIT_SOURCE/DESTINATION ? */
        if (usage & PIPE_BIND_VERTEX_BUFFER) {
-           domain |= RADEON_GEM_DOMAIN_GTT;
+               domain |= RADEON_GEM_DOMAIN_GTT;
        }
        if (usage & PIPE_BIND_INDEX_BUFFER) {
-           domain |= RADEON_GEM_DOMAIN_GTT;
+               domain |= RADEON_GEM_DOMAIN_GTT;
        }
        if (usage & PIPE_BIND_CONSTANT_BUFFER) {
-           domain |= RADEON_GEM_DOMAIN_VRAM;
+               domain |= RADEON_GEM_DOMAIN_VRAM;
        }
 
        return domain;
index 59edab0e24a25148def1d0a947f080423732d40b..207642ccfa90010574cd439dc837e23940ff3822 100644 (file)
@@ -63,4 +63,3 @@ void r600_init_context_resource_functions(struct r600_pipe_context *r600)
        r600->context.transfer_inline_write = u_transfer_inline_write_vtbl;
        r600->context.is_resource_referenced = u_is_resource_referenced_vtbl;
 }
-