OSDN Git Service

r600g: fix loop break/continue operations
authorVadim Girlin <vadimgirlin@gmail.com>
Mon, 23 Jan 2012 09:23:19 +0000 (13:23 +0400)
committerDave Airlie <airlied@redhat.com>
Tue, 24 Jan 2012 11:33:24 +0000 (21:33 +1000)
Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
src/gallium/drivers/r600/r600_shader.c

index 85bbad3..a3724c2 100644 (file)
@@ -4489,11 +4489,9 @@ static int tgsi_loop_brk_cont(struct r600_shader_ctx *ctx)
        }
 
        r600_bytecode_add_cfinst(ctx->bc, ctx->inst_info->r600_opcode);
-       ctx->bc->cf_last->pop_count = 1;
 
        fc_set_mid(ctx, fscp);
 
-       pops(ctx, 1);
        callstack_check_depth(ctx, FC_PUSH_VPM, 1);
        return 0;
 }