Mesa (master): intel/mi_builder: Re-order an initializer
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Apr 16 17:07:59 UTC 2019
Module: Mesa
Branch: master
Commit: 56d9532316ca9ab20f0b23f63f68dc8a3decf07f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=56d9532316ca9ab20f0b23f63f68dc8a3decf07f
Author: Jason Ekstrand <jason at jlekstrand.net>
Date: Mon Apr 15 15:39:22 2019 -0500
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 <clayton.a.craft at intel.com>
---
src/intel/common/gen_mi_builder.h | 4 ++--
1 file 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;
More information about the mesa-commit
mailing list