summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris/iris_state.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-12-04 22:02:50 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:10 -0800
commit5094062bbeeb78aa9ea38c8986adff465b12db52 (patch)
tree928cae76677d43513a71bb7b5ba42f4c97fc69c7 /src/gallium/drivers/iris/iris_state.c
parent2f5d85661fc413cff3fa5652183018187e73e7ed (diff)
iris: Reorder LRR parameters to have dst first.
LRI and LRM both put dst first, be consistent.
Diffstat (limited to 'src/gallium/drivers/iris/iris_state.c')
-rw-r--r--src/gallium/drivers/iris/iris_state.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c
index 540f0dfa96d..ef133c59740 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -486,7 +486,7 @@ _iris_emit_lri(struct iris_batch *batch, uint32_t reg, uint32_t val)
#define iris_emit_lri(b, r, v) _iris_emit_lri(b, GENX(r##_num), v)
static void
-_iris_emit_lrr(struct iris_batch *batch, uint32_t src, uint32_t dst)
+_iris_emit_lrr(struct iris_batch *batch, uint32_t dst, uint32_t src)
{
iris_emit_cmd(batch, GENX(MI_LOAD_REGISTER_REG), lrr) {
lrr.SourceRegisterAddress = src;
@@ -4834,18 +4834,18 @@ iris_destroy_state(struct iris_context *ice)
/* ------------------------------------------------------------------- */
static void
-iris_load_register_reg32(struct iris_batch *batch, uint32_t src,
- uint32_t dst)
+iris_load_register_reg32(struct iris_batch *batch, uint32_t dst,
+ uint32_t src)
{
- _iris_emit_lrr(batch, src, dst);
+ _iris_emit_lrr(batch, dst, src);
}
static void
-iris_load_register_reg64(struct iris_batch *batch, uint32_t src,
- uint32_t dst)
+iris_load_register_reg64(struct iris_batch *batch, uint32_t dst,
+ uint32_t src)
{
- _iris_emit_lrr(batch, src, dst);
- _iris_emit_lrr(batch, src + 4, dst + 4);
+ _iris_emit_lrr(batch, dst, src);
+ _iris_emit_lrr(batch, dst + 4, src + 4);
}
static void