r600g: set address of pop instructions to next instruction
authorFabian Bieler <der.fabe@gmx.net>
Fri, 3 Dec 2010 02:39:48 +0000 (03:39 +0100)
committerJerome Glisse <jglisse@redhat.com>
Fri, 3 Dec 2010 16:35:44 +0000 (11:35 -0500)
src/gallium/drivers/r600/r600_shader.c

index b6d815f43e4f233d98bbd61b6970096cf86a621a..60e67942af132657ff6b3a9057511f2f294b5a28 100644 (file)
@@ -2805,6 +2805,7 @@ static int pops(struct r600_shader_ctx *ctx, int pops)
 {
        r600_bc_add_cfinst(ctx->bc, CTX_INST(V_SQ_CF_WORD1_SQ_CF_INST_POP));
        ctx->bc->cf_last->pop_count = pops;
+       ctx->bc->cf_last->cf_addr = ctx->bc->cf_last->id + 2;
        return 0;
 }