mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-06 01:58:17 +02:00
nvfx: fix fragprog word swapping on big-endian machines
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
dbb679e51d
commit
57dcd800ca
1 changed files with 2 additions and 2 deletions
|
|
@ -1189,12 +1189,12 @@ out_err:
|
|||
static inline void
|
||||
nvfx_fp_memcpy(void* dst, const void* src, size_t len)
|
||||
{
|
||||
#ifndef WORDS_BIGENDIAN
|
||||
#ifndef PIPE_ARCH_BIG_ENDIAN
|
||||
memcpy(dst, src, len);
|
||||
#else
|
||||
size_t i;
|
||||
for(i = 0; i < len; i += 4) {
|
||||
uint32_t v = (uint32_t*)((char*)src + i);
|
||||
uint32_t v = *(uint32_t*)((char*)src + i);
|
||||
*(uint32_t*)((char*)dst + i) = (v >> 16) | (v << 16);
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue