summaryrefslogtreecommitdiffstats
path: root/src/amd/compiler/aco_validate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/amd/compiler/aco_validate.cpp')
-rw-r--r--src/amd/compiler/aco_validate.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/amd/compiler/aco_validate.cpp b/src/amd/compiler/aco_validate.cpp
index 9919d0a585d..dbfce6314c8 100644
--- a/src/amd/compiler/aco_validate.cpp
+++ b/src/amd/compiler/aco_validate.cpp
@@ -104,7 +104,9 @@ void validate(Program* program, FILE * output)
unsigned num_literals = 0;
for (unsigned i = 0; i < instr->operands.size(); i++)
{
- if (instr->operands[i].isLiteral()) {
+ if (instr->operands[i].isLiteral() && instr->isVOP3() && program->chip_class >= GFX10) {
+ num_literals++;
+ } else if (instr->operands[i].isLiteral()) {
check(instr->format == Format::SOP1 ||
instr->format == Format::SOP2 ||
instr->format == Format::SOPC ||