On Sat, 15 Jan 2005 12:22:24 -0500 (EST), Vladimir Dergachev
<[EMAIL PROTECTED]> wrote:
> >>
> >> From radeon_reg.h:
> >>
> >> #define RADEON_HOST_PATH_CNTL               0x0130
> >> #       define RADEON_HDP_SOFT_RESET        (1 << 26)
> >>
> >> You also need to add the following to the header:
> >> /*set this to map second aperture
> >> after the first video aperture in MC space (useful for uploads)
> >>   do not touch other bits !*/
> >> #       define RADEON_HDP_SEQ_MAP           (1 << 23)
> >
> > So the radeon_host_path_cntl need to be setup with RADEON_HDP_SEQ_MAP ?
> 
> Just do:
> 
> tmp=INREG(RADEON_HOST_PATH_CNTL);
> OUTREG(RADEON_HOST_PATH_CNTL, tmp | RADEON_HDP_SEQ_MAP);
> 
> Try this in r300_demo.c first to see what gets screwed up.

It seems to change nothings (i do it before readregisters) and
i still get data in little endian if i read registers.
 
> >
> >> #define R300_SURFACE_CNTL       0xb00
> >> #       define R300_SURFACE_TRANSLATION_DISABLE (1<<8)  /* this is default 
> >> */
> >>
> >> #       define R300_SURFACE_AP0_LITTLE_ENDIAN   (0<<20)
> >> #       define R300_SURFACE_AP0_16_BIG_ENDIAN   (1<<20)
> >> #       define R300_SURFACE_AP0_32_BIG_ENDIAN   (2<<20)
> >>
> >> #       define R300_SURFACE_AP1_LITTLE_ENDIAN   (0<<22)
> >> #       define R300_SURFACE_AP1_16_BIG_ENDIAN   (1<<22)
> >> #       define R300_SURFACE_AP1_32_BIG_ENDIAN   (2<<22)
> >
> > Do not see sere to put this and when to use them.
> > During engine setup or in r300 state ?

Do it before init3d and it changes nothings (at least visualy).


Maybe this is just not more used and they choose another
way for dealing with endianness.

Anyway like i said the 0x2140 register have to be set to 2 on PPC.
there is maybe somewhere else a similar register for host blt or
they use another way like selecting appropriate texture format.
For example if we are on ppc a texture that has argb8888 format
on x86 is set to be bgra8888. See what i mean ? Thus we get the
texture data swapping simply by changing texture format.

Texture data swapping is the only matter i still got here. 
For example with lesson6 i see the texture but all the
component are switched.

best,
Jerome Glisse


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to