mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
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 <airlied@redhat.com>
This commit is contained in:
parent
af4013d26b
commit
13b134a443
1 changed files with 10 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue