fix spantmp2 READ_RGBA inline asm (#11931)
authorDan Torop <dtorop934@gmail.com>
Sun, 12 Aug 2007 11:41:13 +0000 (13:41 +0200)
committerRoland Scheidegger <sroland@tungstengraphics.com>
Sun, 12 Aug 2007 11:41:13 +0000 (13:41 +0200)
src/mesa/drivers/dri/common/spantmp2.h

index 50f3cf558169b081662dddab80b3e6435259b8fd..53f5f846a0bffffd840f38a264362b405e0bc4fa 100644 (file)
     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 )