r600g: use load_ar checks with llvm output.
authorVincent Lejeune <vljn@ovi.com>
Tue, 6 Nov 2012 15:18:06 +0000 (16:18 +0100)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 13 Dec 2012 19:22:10 +0000 (19:22 +0000)
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/r600/r600_shader.c

index 72cb58582f2bb2ac10a16a8d6a8a78dc6af03449..102d1c61118fe2e8b8f7ff963bd7efa303994afa 100644 (file)
@@ -345,6 +345,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));