On Fri, Jul 18, 2014 at 5:32 PM, Brian Paul <bri...@vmware.com> wrote: > On 07/17/2014 12:04 PM, Jason Ekstrand wrote: >> >> This is the first installment of some work I've been doing over the past >> couple of weeks to refactor mesa's texture conversion/storage code. There >> is more to be done and more that I have done but have not included in this >> series. This is the first mailing-list-ready fruits of my efforts. The >> important bits here include: >> >> 1) Using a human-readable CSV file to describe texture formats similar >> to >> the way it is currently don in gallium. This is much easier to >> read/edit than the structure in formats.c. The guts of formats.c is >> then autogenerated from this CSV file. > > > I'm kind of on the fence about this. Some of us have been hoping that we'd > eventually consolidate some of the Mesa and gallium code so we wouldn't have > duplicated/parallel code. The format code is a good example. In theory, > the MESA_FORMAT_ stuff could be replaced by the gallium PIPE_FORMAT_ code.
I agree and I think this rework brings us closer to sharing the code, which is a good thing. In the meantime, it nicely cleans up the code. BTW, this series will conflict with the big endian work that Richard Sandiford is doing. Marek _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev