mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
i965: Replace the subroutine-skipping jump in VS with a NOP if it's a NOP.
This showed a 1.9% (+/-.3%, n=3) improvement in OA performance with high geometry settings.
This commit is contained in:
parent
7de5e60c18
commit
9f981ec27d
1 changed files with 5 additions and 1 deletions
|
|
@ -1262,7 +1262,11 @@ post_vs_emit( struct brw_vs_compile *c,
|
|||
|
||||
/* patch up the END code to jump past subroutines, etc */
|
||||
offset = last_inst - end_inst;
|
||||
brw_set_src1(end_inst, brw_imm_d(offset * 16));
|
||||
if (offset > 1) {
|
||||
brw_set_src1(end_inst, brw_imm_d(offset * 16));
|
||||
} else {
|
||||
end_inst->header.opcode = BRW_OPCODE_NOP;
|
||||
}
|
||||
}
|
||||
|
||||
static uint32_t
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue