r300: Ensure that immediates have matching negate flags too.

We only have one bit of negate, so we have to make sure that immediate
usage has matching negates on all used channels (or rewrite to do so).

Cc: mesa-stable
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14117>
(cherry picked from commit d6fed4ab7db63c5f569032dba2cc95ea3ccfc65c)
This commit is contained in:
Emma Anholt 2021-12-06 15:07:38 -08:00 committed by Eric Engestrom
parent 94449816ab
commit 7771f16e08
2 changed files with 1 additions and 3 deletions

View File

@ -4549,7 +4549,7 @@
"description": "r300: Ensure that immediates have matching negate flags too.",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View File

@ -219,8 +219,6 @@ static int r500_swizzle_is_native(rc_opcode opcode, struct rc_src_register reg)
return 1;
return 0;
} else if (reg.File == RC_FILE_INLINE) {
return 1;
} else {
/* ALU instructions support almost everything */
relevant = 0;