michal schrieb: > This branch simplifies pipe/p_format.h by making enum pipe_format what > it should have been -- an enum. > > ... > > I would like to hear from r300 and nouveau guys, as those drivers were > using some internal macros and I weren't 100% sure I got the conversion > right. > Hi ! In nv50_vbo.c/nv50_vbo_type_to_hw you imply that UTIL_FORMAT_LAYOUT_ARITH means normalized (UNORM, SNORM) and LAYOUT_ARRAY means SCALED, which seems to be not the case.
PIPE_FORMAT_R32G32B32A32_SNORM for instance also has layout ARRAY. I'm not sure what ARRAY/ARITH are supposed to mean ... Anyway, you could probably base the check on channel[0].normalized, since the formats used for vertex elements are not mixed. I still don't see how to distinguish SCALED and INT though, which at some point will have to indicate integer attributes ... Christoph|| > Thanks! > _______________________________________________ > Mesa3d-dev mailing list > Mesa3d-dev@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mesa3d-dev > ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev