Module: Mesa Branch: master Commit: 6db5fbf9f274cf433525628ed7a979f7a05cbd96 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6db5fbf9f274cf433525628ed7a979f7a05cbd96
Author: Rhys Perry <[email protected]> Date: Thu Oct 15 22:09:45 2020 +0100 aco: allow literals on sub-dword p_parallelcopy Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Timur Kristóf <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7216> --- src/amd/compiler/aco_validate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_validate.cpp b/src/amd/compiler/aco_validate.cpp index ef3b4c78cba..87a48d8ad70 100644 --- a/src/amd/compiler/aco_validate.cpp +++ b/src/amd/compiler/aco_validate.cpp @@ -332,7 +332,7 @@ bool validate_ir(Program* program) if (!instr->definitions[i].regClass().is_subdword()) continue; Operand op = instr->operands[i]; - check(!op.isLiteral(), "Sub-dword copies cannot take literals", instr.get()); + check(program->chip_class >= GFX9 || !op.isLiteral(), "Sub-dword copies cannot take literals", instr.get()); if (op.isConstant() || (op.hasRegClass() && op.regClass().type() == RegType::sgpr)) check(program->chip_class >= GFX9, "Sub-dword pseudo instructions can only take constants or SGPRs on GFX9+", instr.get()); } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
