mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
r600g: fix CAYMAN geometry shader support
cayman has a different end of program bit, so do that properly. fixes hangs with geom shader tests on cayman. Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
7ec5e883f2
commit
ce9e939144
1 changed files with 6 additions and 2 deletions
|
|
@ -1357,8 +1357,12 @@ static int generate_gs_copy_shader(struct r600_context *rctx,
|
|||
cf_pop->cf_addr = cf_pop->id + 2;
|
||||
cf_pop->pop_count = 1;
|
||||
|
||||
r600_bytecode_add_cfinst(ctx.bc, CF_OP_NOP);
|
||||
ctx.bc->cf_last->end_of_program = 1;
|
||||
if (ctx.bc->chip_class == CAYMAN)
|
||||
cm_bytecode_add_cf_end(ctx.bc);
|
||||
else {
|
||||
r600_bytecode_add_cfinst(ctx.bc, CF_OP_NOP);
|
||||
ctx.bc->cf_last->end_of_program = 1;
|
||||
}
|
||||
|
||||
gs->gs_copy_shader = cshader;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue