summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-04-15 15:39:22 -0500
committerJason Ekstrand <[email protected]>2019-04-16 12:07:15 -0500
commit56d9532316ca9ab20f0b23f63f68dc8a3decf07f (patch)
tree45eb8bc393497dd7fc10afe9120f3209ce896238 /src
parentba0f203ae82673ad050355e94386c849de7eaa92 (diff)
intel/mi_builder: Re-order an initializer
The order doesn't matter in C99 but some C++ compilers seem to care. Tested-by: Clayton Craft <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/intel/common/gen_mi_builder.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/common/gen_mi_builder.h b/src/intel/common/gen_mi_builder.h
index a67126930d6..bb817ce930e 100644
--- a/src/intel/common/gen_mi_builder.h
+++ b/src/intel/common/gen_mi_builder.h
@@ -519,9 +519,9 @@ static inline uint32_t
_gen_mi_pack_alu(uint32_t opcode, uint32_t operand1, uint32_t operand2)
{
struct GENX(MI_MATH_ALU_INSTRUCTION) instr = {
- .ALUOpcode = opcode,
- .Operand1 = operand1,
.Operand2 = operand2,
+ .Operand1 = operand1,
+ .ALUOpcode = opcode,
};
uint32_t dw;