From: Dan Torop Date: Sun, 12 Aug 2007 11:41:13 +0000 (+0200) Subject: fix spantmp2 READ_RGBA inline asm (#11931) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=21b37b9687b078297935062e3ad9f379b6f36519;p=mesa.git fix spantmp2 READ_RGBA inline asm (#11931) --- diff --git a/src/mesa/drivers/dri/common/spantmp2.h b/src/mesa/drivers/dri/common/spantmp2.h index 50f3cf55816..53f5f846a0b 100644 --- a/src/mesa/drivers/dri/common/spantmp2.h +++ b/src/mesa/drivers/dri/common/spantmp2.h @@ -114,7 +114,7 @@ do { \ GLuint p = *(volatile GLuint *) GET_PTR(_x, _y); \ __asm__ __volatile__( "bswap %0; rorl $8, %0" \ - : "=r" (p) : "r" (p) ); \ + : "=r" (p) : "0" (p) ); \ ((GLuint *)rgba)[0] = p; \ } while (0) # elif defined( MESA_BIG_ENDIAN )