diff options
author | Jérôme Glisse <jglisse@redhat.com> | 2014-02-24 14:50:25 -0500 |
---|---|---|
committer | Jerome Glisse <jglisse@redhat.com> | 2014-02-24 18:09:28 -0500 |
commit | 8da17f30c70f4494ce22ad781a1cee17041812f3 (patch) | |
tree | a21f30892cde7f1f34e0624e7a8605efa229155d /src/evergreen_accel.c | |
parent | cadb6b493942a84bfeb298751dce0dee39257a06 (diff) |
evergreen: fix shader constant upload on ppc
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 <jglisse@redhat.com>
Diffstat (limited to 'src/evergreen_accel.c')
-rw-r--r-- | src/evergreen_accel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evergreen_accel.c b/src/evergreen_accel.c index e25010b8..3a76a71e 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); |