r300 on a powerbook (ppc)

2005-02-11 Thread Paul Mackerras
I have been trying the r300 driver on my aluminium powerbook (1.5GHz G4 with radeon M10 ("NP")). When I run a GL program such as glxgears, it draws a window complete with frame but then renders the image into a region vertically below the window. Somehow the base address being used to compute fra

Re: r300 on a powerbook (ppc)

2005-02-12 Thread Jerome Glisse
We know this issue, i will submit a patch latter. This is very simple, in radeon_macro.h of Mesa cvs there is no swapping for big endian. While the dri included with Xorg use the xorg macro to access reg and thus have swapping. If you wish just change the radeon_macro.h so it does the 32LENDIAN to

Re: r300 on a powerbook (ppc)

2005-02-12 Thread Vladimir Dergachev
Hi Jerome, As a hack, couldn't we redefine this macro within R300 driver ? Just put in somewhere in r300_context.h for example. If it makes things working for PPC folks it would be great :) best Vladimir Dergachev On Sat, 12 Feb 2005, Jerome G

Re: r300 on a powerbook (ppc)

2005-02-12 Thread Jerome Glisse
Yes as a hack we could redefine this. I will check if there is no direct include of radeon_macro somewhere else. I was still wondering does texture mapping work on x86 (haven't got one near me to test) ? (with lastest cvs (say 5 min or so :)) I haven't checked deeply this as i am working on correct

Re: r300 on a powerbook (ppc)

2005-02-12 Thread Vladimir Dergachev
On Sat, 12 Feb 2005, Jerome Glisse wrote: Yes as a hack we could redefine this. I will check if there is no direct include of radeon_macro somewhere else. I was still wondering does texture mapping work on x86 (haven't got one near me to test) ? (with lastest cvs (say 5 min or so :)) I haven't che

Re: r300 on a powerbook (ppc)

2005-02-12 Thread Michel Dänzer
On Sat, 2005-02-12 at 21:00 +0100, Jerome Glisse wrote: > Yes as a hack we could redefine this. Please, let's get a proper fix into Mesa instead. Have you tried my cleaned up patch? -- Earthling Michel DÃnzer | Debian (powerpc), X and DRI developer Libre software enthusiast| http

Re: r300 on a powerbook (ppc)

2005-02-12 Thread Jerome Glisse
On Sat, 12 Feb 2005 15:04:29 -0500, Michel Dänzer <[EMAIL PROTECTED]> wrote: > On Sat, 2005-02-12 at 21:00 +0100, Jerome Glisse wrote: > > Yes as a hack we could redefine this. > > Please, let's get a proper fix into Mesa instead. Have you tried my > cleaned up patch? Not right now, gmail seems b

Re: r300 on a powerbook (ppc)

2005-02-12 Thread Michel Dänzer
On Sat, 2005-02-12 at 21:26 +0100, Jerome Glisse wrote: > > You made a little cut & paste error : > + read_MMIO_LE32(base, offset) > > insted of : > + read_MMIO_LE32(RADEONMMIO, addr) Good catch, thanks. > The corrected patch work. I attach it. If you could push > it to mesa cvs :) Don

Re: r300 on a powerbook (ppc)

2005-02-12 Thread Jerome Glisse
> Still for the same reason... With previous cvs texture were working. Thus a change somewhere broke it on ppc. I will find the devil responsible for that and blame him ;) Btw by setting RADEON_DEBUG to 1 and DEBUG_TEXTURE to 1 i should see debug msg (i set environement variable) or must i set th