mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 17:20:21 +01:00
aco: adjust fix_exports() for VS/TES as NGG and non-monolithic shaders
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24907>
This commit is contained in:
parent
bfb39031f1
commit
ee8ba0f98f
1 changed files with 7 additions and 0 deletions
|
|
@ -1017,6 +1017,13 @@ fix_exports(asm_context& ctx, std::vector<uint32_t>& out, Program* program)
|
|||
* exports MRTZ (if present) and the epilog exports colors.
|
||||
*/
|
||||
exported |= program->stage.hw == AC_HW_PIXEL_SHADER && program->info.has_epilog;
|
||||
|
||||
/* Do not abort for VS/TES as NGG if they are non-monolithic shaders
|
||||
* because a jump would be emitted.
|
||||
*/
|
||||
exported |= (program->stage.sw == SWStage::VS || program->stage.sw == SWStage::TES) &&
|
||||
program->stage.hw == AC_HW_NEXT_GEN_GEOMETRY_SHADER &&
|
||||
!program->info.is_monolithic;
|
||||
}
|
||||
++it;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue