mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 16:40:13 +01:00
aco: allow no export instruction for gfx10+ fs
radeonsi will generate no export instruction when no discard and no output. Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22727>
This commit is contained in:
parent
3c59df7318
commit
65c3d1869d
1 changed files with 4 additions and 1 deletions
|
|
@ -1010,7 +1010,10 @@ fix_exports(asm_context& ctx, std::vector<uint32_t>& out, Program* program)
|
|||
}
|
||||
}
|
||||
|
||||
if (!exported) {
|
||||
/* GFX10+ FS may not export anything if no discard is used. */
|
||||
bool may_skip_export = program->stage.hw == HWStage::FS && program->gfx_level >= GFX10;
|
||||
|
||||
if (!exported && !may_skip_export) {
|
||||
/* Abort in order to avoid a GPU hang. */
|
||||
bool is_vertex_or_ngg =
|
||||
(program->stage.hw == HWStage::VS || program->stage.hw == HWStage::NGG);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue