radeonsi: Use SI_BIG_ENDIAN now that it exists
authorTom Stellard <thomas.stellard@amd.com>
Wed, 19 Feb 2014 22:19:53 +0000 (14:19 -0800)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 24 Feb 2014 20:56:27 +0000 (12:56 -0800)
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/si_shader.c

index 9b04e6b5e5093a23a3b1255d59b287a48dac7f22..77768214f5aac42f94eeb352d2b4373b2bce41c0 100644 (file)
@@ -2333,7 +2333,7 @@ int si_compile_llvm(struct si_context *sctx, struct si_pipe_shader *shader,
        }
 
        ptr = (uint32_t*)sctx->b.ws->buffer_map(shader->bo->cs_buf, sctx->b.rings.gfx.cs, PIPE_TRANSFER_WRITE);
-       if (0 /*SI_BIG_ENDIAN*/) {
+       if (SI_BIG_ENDIAN) {
                for (i = 0; i < binary.code_size / 4; ++i) {
                        ptr[i] = util_cpu_to_le32((*(uint32_t*)(binary.code + i*4)));
                }