Mesa (master): radeonsi: Use SI_BIG_ENDIAN now that it exists
Tom Stellard
tstellar at kemper.freedesktop.org
Mon Feb 24 21:00:18 UTC 2014
Module: Mesa
Branch: master
Commit: eac7236042e3deb87c681c2f70c606c1b6565c22
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=eac7236042e3deb87c681c2f70c606c1b6565c22
Author: Tom Stellard <thomas.stellard at amd.com>
Date: Wed Feb 19 14:19:53 2014 -0800
radeonsi: Use SI_BIG_ENDIAN now that it exists
Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
---
src/gallium/drivers/radeonsi/si_shader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index 9b04e6b..7776821 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -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)));
}
More information about the mesa-commit
mailing list