From 93681736d3ed1f2063c50581a779b793bcaba715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= Date: Mon, 24 Feb 2014 14:50:25 -0500 Subject: [PATCH] evergreen: fix shader constant upload on ppc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The number of dword we have to swap is (16*4) ie 16 vectors of 4 floats each not 16 floats. Never hit this issue before because we never had more than 4 constant vector. Signed-off-by: Jérôme Glisse --- src/evergreen_accel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evergreen_accel.c b/src/evergreen_accel.c index e25010b..3a76a71 100644 --- a/src/evergreen_accel.c +++ b/src/evergreen_accel.c @@ -561,7 +561,7 @@ evergreen_set_alu_consts(ScrnInfoPtr pScrn, const_config_t *const_conf, uint32_t #if X_BYTE_ORDER == X_BIG_ENDIAN { - uint32_t count = size << 4, *p = const_conf->cpu_ptr; + uint32_t count = size << 6, *p = const_conf->cpu_ptr; while(count--) { *p = cpu_to_le32(*p); -- 1.8.4.2