> 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
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.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 ...