1 Aug 2012 01:13
Re: [PATCH 1/2] mesa: Replace VersionMajor/VersionMinor with a Version field.
Kenneth Graunke <kenneth <at> whitecape.org>
2012-07-31 23:13:39 GMT
2012-07-31 23:13:39 GMT
On 07/31/2012 03:24 PM, Eric Anholt wrote: > As we get into supporting GL 3.x core, we come across more and more features > of the API that depend on the version number as opposed to just the extension > list. This will let us more sanely do version checks than "(VersionMajor == 3 > && VersionMinor >= 2) || VersionMajor >= 4". > --- > > I didn't like any of the macrofying changes I heard, particularly > because I expect the minor version to never hit 10 (We've had GL minor > versions up to a maximum of 3/10 so far), and it provides consistency > with piglit where we're also using major * 10 + minor. > > I did take Brian's suggestion of removing the old fields, though. > That was a bit more typing, but I think it was good. > > src/mesa/drivers/dri/intel/intel_screen.c | 4 +--- > src/mesa/drivers/dri/nouveau/nouveau_context.c | 4 +--- > src/mesa/drivers/dri/r200/r200_context.c | 4 +--- > src/mesa/drivers/dri/radeon/radeon_context.c | 4 +--- > src/mesa/main/enable.c | 4 ++-- > src/mesa/main/fbobject.c | 8 +++---- > src/mesa/main/get.c | 13 ++++++++--- > src/mesa/main/glformats.c | 8 +++---- > src/mesa/main/mtypes.h | 4 ++-- > src/mesa/main/texformat.c | 4 ++-- > src/mesa/main/teximage.c | 15 ++++++------ > src/mesa/main/texparam.c | 2 +- > src/mesa/main/varray.c | 5 ++-- > src/mesa/main/version.c | 29 ++++++++++++------------ > src/mesa/state_tracker/st_manager.c | 3 +--(Continue reading)
RSS Feed