mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
nv50/ir: fix reversed order of lane ops in quadops
This commit is contained in:
parent
e6caafd9d7
commit
717f55d79d
2 changed files with 6 additions and 4 deletions
|
|
@ -109,9 +109,10 @@ expandIntegerMUL(BuildUtil *bld, Instruction *mul)
|
|||
#define QOP_SUB 2
|
||||
#define QOP_MOV2 3
|
||||
|
||||
// UL UR LL LR
|
||||
#define QUADOP(q, r, s, t) \
|
||||
((QOP_##q << 0) | (QOP_##r << 2) | \
|
||||
(QOP_##s << 4) | (QOP_##t << 6))
|
||||
((QOP_##q << 6) | (QOP_##r << 4) | \
|
||||
(QOP_##s << 2) | (QOP_##t << 0))
|
||||
|
||||
class NV50LegalizePostRA : public Pass
|
||||
{
|
||||
|
|
|
|||
|
|
@ -34,9 +34,10 @@ namespace nv50_ir {
|
|||
#define QOP_SUB 2
|
||||
#define QOP_MOV2 3
|
||||
|
||||
// UL UR LL LR
|
||||
#define QUADOP(q, r, s, t) \
|
||||
((QOP_##q << 0) | (QOP_##r << 2) | \
|
||||
(QOP_##s << 4) | (QOP_##t << 6))
|
||||
((QOP_##q << 6) | (QOP_##r << 4) | \
|
||||
(QOP_##s << 2) | (QOP_##t << 0))
|
||||
|
||||
class NVC0LegalizeSSA : public Pass
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue