summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-10-31 16:11:54 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-10-31 16:20:25 +0000
commit1040d92e31eea4556c2605c809d18ec4c864424a (patch)
tree6593f2e2b95c7d6b2a9ed828d797eb5205c0c06c
parent30fded8dfa77c74de165ad53f82412a2e7fa88ae (diff)
sna/gen6+: Fix projective sample coordinates
Reported-by: "Ding, Chi" <chix.ding@intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/brw/brw_wm.c4
-rw-r--r--src/sna/gen8_eu.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/sna/brw/brw_wm.c b/src/sna/brw/brw_wm.c
index 1d1dda64..859e826c 100644
--- a/src/sna/brw/brw_wm.c
+++ b/src/sna/brw/brw_wm.c
@@ -539,8 +539,8 @@ static void brw_wm_projective_st(struct brw_compile *p, int dw,
brw_vec8_grf(2, 0));
brw_PLN(p,
brw_vec8_grf(28, 0),
- brw_vec1_grf(uv, 0),
- brw_vec8_grf(4, 0));
+ brw_vec1_grf(uv, 4),
+ brw_vec8_grf(2, 0));
brw_MUL(p,
brw_message_reg(msg),
diff --git a/src/sna/gen8_eu.c b/src/sna/gen8_eu.c
index 2fd990a1..71338c06 100644
--- a/src/sna/gen8_eu.c
+++ b/src/sna/gen8_eu.c
@@ -1247,8 +1247,8 @@ static void wm_projective_st(struct brw_compile *p, int dw,
brw_vec8_grf(2, 0));
gen8_PLN(p,
brw_vec8_grf(28, 0),
- brw_vec1_grf(uv, 0),
- brw_vec8_grf(4, 0));
+ brw_vec1_grf(uv, 4),
+ brw_vec8_grf(2, 0));
gen8_MUL(p,
brw_message_reg(msg),