diff options
author | Vincent Lejeune <vljn@ovi.com> | 2012-11-06 16:17:02 +0100 |
---|---|---|
committer | Vincent Lejeune <vljn@ovi.com> | 2012-11-06 16:17:23 +0100 |
commit | bbf869382403f8543012aef4e208cdf43a0d6d24 (patch) | |
tree | a464d224dc1728fe909a48f4d5322b101abdde77 | |
parent | 55723d6f26a0926701009fe6524e84477dfcb959 (diff) |
r600g: use load_ar checks with llvm output.arlfixes
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 4634c30b6b..1dc0cc2cce 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -344,6 +344,12 @@ static unsigned r600_alu_from_byte_stream(struct r600_shader_ctx *ctx, } #endif + if (alu.inst == CTX_INST(V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_MOVA_INT)) { + ctx->bc->ar_reg = alu.src[0].sel; + ctx->bc->ar_loaded = 0; + return bytes_read; + } + if (alu.execute_mask) { alu.pred_sel = 0; r600_bytecode_add_alu_type(ctx->bc, &alu, CTX_INST(V_SQ_CF_ALU_WORD1_SQ_CF_INST_ALU_PUSH_BEFORE)); |