diff options
author | Vadim Girlin <[email protected]> | 2013-05-01 21:33:33 +0400 |
---|---|---|
committer | Vadim Girlin <[email protected]> | 2013-05-03 16:53:41 +0400 |
commit | a6fe055fa77e42e35f25272bdd5ca7213b436a1a (patch) | |
tree | 0e4173dafa5b0715dd613100c49530ae350d2e46 /src/gallium/drivers/r600/r600_shader.c | |
parent | 4ca67dbf0cc4cd509c225c5feb5e45387739a48b (diff) |
r600g/sb: use hex instead of binary constants
This should fix build issues with GCC < 4.3
Signed-off-by: Vadim Girlin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index ab05b5ac997..9afd57f71a2 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -1001,7 +1001,7 @@ static int tgsi_declaration(struct r600_shader_ctx *ctx) r600_add_gpr_array(ctx->shader, ctx->file_offset[TGSI_FILE_TEMPORARY] + d->Range.First, - d->Range.Last - d->Range.First + 1, 0b1111); + d->Range.Last - d->Range.First + 1, 0x0F); } } break; @@ -1417,13 +1417,13 @@ static int r600_shader_from_tgsi(struct r600_screen *rscreen, r600_add_gpr_array(shader, ctx.file_offset[TGSI_FILE_INPUT], ctx.file_offset[TGSI_FILE_OUTPUT] - ctx.file_offset[TGSI_FILE_INPUT], - 0b1111); + 0x0F); } if (ctx.info.indirect_files & (1 << TGSI_FILE_OUTPUT)) { r600_add_gpr_array(shader, ctx.file_offset[TGSI_FILE_OUTPUT], ctx.file_offset[TGSI_FILE_TEMPORARY] - ctx.file_offset[TGSI_FILE_OUTPUT], - 0b1111); + 0x0F); } } |