mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 10:20:09 +01:00
aco/ngg: Schedule position exports of NGG VS/TES.
Similarly to the HW VS stage, the HW NGG GS stage also benefits from executing these exports as early as possible. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3576>
This commit is contained in:
parent
c633edad72
commit
e4da482d9e
1 changed files with 1 additions and 1 deletions
|
|
@ -843,7 +843,7 @@ void schedule_block(sched_ctx& ctx, Program *program, Block* block, live& live_v
|
|||
}
|
||||
}
|
||||
|
||||
if ((program->stage & hw_vs) && block->index == program->blocks.size() - 1) {
|
||||
if ((program->stage & (hw_vs | hw_ngg_gs)) && (block->kind & block_kind_export_end)) {
|
||||
/* Try to move position exports as far up as possible, to reduce register
|
||||
* usage and because ISA reference guides say so. */
|
||||
for (unsigned idx = 0; idx < block->instructions.size(); idx++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue