On Thu, 2007-01-25 at 14:06 -0800, Patrice Mandin wrote: > shared-core/nouveau_fifo.c | 48 > +++++++++++++++++++-------------------------- > 1 files changed, 21 insertions(+), 27 deletions(-) > > New commits: > diff-tree 6d9ef1a960a76410e816425d8a53fb96cf2b871d (from > 582637641abbadc75795ac7e0671e1a5e3b41880) > Author: Patrice Mandin <[EMAIL PROTECTED]> > Date: Thu Jan 25 23:06:48 2007 +0100 > > nouveau: simplify and fix BIG_ENDIAN flags > > diff --git a/shared-core/nouveau_fifo.c b/shared-core/nouveau_fifo.c > index e80ba76..b035ed0 100644 > --- a/shared-core/nouveau_fifo.c > +++ b/shared-core/nouveau_fifo.c > @@ -182,16 +182,15 @@ int nouveau_fifo_init(drm_device_t *dev) > NV_WRITE(NV_PFIFO_CACH1_DMAC, 0x00000000); > NV_WRITE(NV_PFIFO_CACH1_DMAS, 0x00000000); > NV_WRITE(NV_PFIFO_CACH1_ENG, 0x00000000); > -#ifdef __BIG_ENDIAN > + > NV_WRITE(NV_PFIFO_CACH1_DMAF, NV_PFIFO_CACH1_DMAF_TRIG_112_BYTES | > NV_PFIFO_CACH1_DMAF_SIZE_128_BYTES | > NV_PFIFO_CACH1_DMAF_MAX_REQS_4 | > - NV_PFIFO_CACH1_BIG_ENDIAN); > -#else > - NV_WRITE(NV_PFIFO_CACH1_DMAF, NV_PFIFO_CACH1_DMAF_TRIG_112_BYTES | > - NV_PFIFO_CACH1_DMAF_SIZE_128_BYTES | > - NV_PFIFO_CACH1_DMAF_MAX_REQS_4); > -#endif > +#ifdef __BIG_ENDIAN
Note that __BIG/LITTLE_ENDIAN on their own don't indicate the native byte order; e.g. on ppc they're both defined. You should probably use MESA_BIG_ENDIAN or _mesa_little_endian(). -- Earthling Michel Dänzer | http://tungstengraphics.com Libre software enthusiast | Debian, X and DRI developer ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel