projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba0f203
)
intel/mi_builder: Re-order an initializer
author
Jason Ekstrand
<jason@jlekstrand.net>
Mon, 15 Apr 2019 20:39:22 +0000
(15:39 -0500)
committer
Jason Ekstrand
<jason@jlekstrand.net>
Tue, 16 Apr 2019 17:07:15 +0000
(12:07 -0500)
The order doesn't matter in C99 but some C++ compilers seem to care.
Tested-by: Clayton Craft <clayton.a.craft@intel.com>
src/intel/common/gen_mi_builder.h
patch
|
blob
|
history
diff --git
a/src/intel/common/gen_mi_builder.h
b/src/intel/common/gen_mi_builder.h
index a67126930d6ca7ccf4bf0c40e8518357cc99848b..bb817ce930e5536b015dbfea63b22718d381d2dd 100644
(file)
--- 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;