On 03.03.2010 14:07, José Fonseca wrote: > On Wed, 2010-03-03 at 04:27 -0800, Luca Barbieri wrote: >>> PIPE_FORMAT_X8B8G8R8_UNORM is being used by mesa. >>> PIPE_FORMAT_R8G8B8X8_UNORM doesn't exist hence it appears to be >>> unnecessary. So it doesn't make sense to rename. >> How about D3DFMT_X8B8G8R8? That should map to >> PIPE_FORMAT_R8G8B8X8_UNORM. > > Yes, you're right. > >> BTW, we are also missing D3DFMT_X4R4G4B4, D3DFMT_X1R5G5B5, >> D3DFMT_A4L4, D3DFMT_A1, D3DFMT_L6V5U5, D3DFMT_D15S1, >> D3DFMT_D24X4S4, D3DFMT_CxV8U8 and perhaps others I did not notice. > > D3DFMT_L6V5U5 is there (PIPE_FORMAT_R5SG5SB6U_NORM). The others are > indeed missing. Neither of the mentioned formats is required for D3D9 > conformance, but we could add them to gallium. > > D3DFMT_A1 is special: it has less than 1 byte per pixel. Probably the > best way to support it would be to treat it as a 8x1 macro pixel, > 8bits, similarly to compressed formats. > > D3DFMT_CxV8U8 too as special semantics.
And not only are those formats optional, some would be completely pointless in gallium (D15S1, D24X4S4). There's simply no modern hardware which supports 1 bit stencil (I think pretty much the only chip supporting that was savage3d), nor 4 bit stencil (can't remember off-hand any chip supporting that, maybe some of the then professional chips did). The others sound a bit more plausible and hardware may support them, but I'm not sure they are really missed (A4L4, X4R4G4B4, X1R5G5B5). As José said, CxV8U8 isn't really a format only, and we'll need to add 1-bit format for DX10. Roland ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev