diff options
author | Dave Airlie <[email protected]> | 2015-02-24 15:57:49 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2015-12-02 08:25:13 +1000 |
commit | 13b134a443744e0a1d25d37a1e819d6737aca4a2 (patch) | |
tree | b0735745c8dd577a54963e8aa40b1397ed034e4e /src/gallium/drivers/r600/r600_shader.c | |
parent | af4013d26b3203a794ae34fe0c98139bc1058273 (diff) |
r600: add alu + cf nop to copy shader on r600
SB suggests we do this for r600, so lets do it,
for the copy shader.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 9fe20b02861..fe4a27d36ff 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -1613,6 +1613,16 @@ static int generate_gs_copy_shader(struct r600_context *rctx, cshader->shader.ring_item_sizes[ring] = ocnt * 16; } + /* bc adds nops - copy it */ + if (ctx.bc->chip_class == R600) { + memset(&alu, 0, sizeof(struct r600_bytecode_alu)); + alu.op = ALU_OP0_NOP; + alu.last = 1; + r600_bytecode_add_alu(ctx.bc, &alu); + + r600_bytecode_add_cfinst(ctx.bc, CF_OP_NOP); + } + /* export vertex data */ /* XXX factor out common code with r600_shader_from_tgsi ? */ for (i = 0; i < ocnt; ++i) { |