[Mesa-dev] [PATCH 1/2] mesa: support internalFormat=GL_BGRA in TexImage2D

Chad Versace chad at chad-versace.us
Fri Jan 28 10:19:11 PST 2011



On 01/25/2011 06:49 AM, José Fonseca wrote:
> On Sat, 2011-01-22 at 19:18 -0800, Chad Versace wrote:
>> On Sat, Jan 22, 2011 at 17:46, Ian Romanick <idr at freedesktop.org> wrote:
>>> What I want is a way with cmake to build files twice.  The first time
>>> will be in the existing way.  The second time will compile with
>>> - -DUSE_OPENGL_ES and will generate a .o file with a different name.
>> ...
>>> I don't know cmake well enough to do that, and I keep forgetting to ask
>>> Chad.
>>
>> I have done just that with cmake recently; that is, building an
>> executable twice, once using GL and again with GLES2. When Monday
>> arrives, I'll take a look at how to best coerce Piglit to do this.
> 
> It looks you already know a better way, but just in case, a
> straightforward way to do this is using out-of-source builds, one runs
> configures cmake with two seperate build directories (e.g., build/gl,
> build/gles) enabling GLES on the latter, and then its simply a matter of
> doing 
> 
>   make -C build/gl
>   make -C build/gles
> 
> Jose
> 

If only Pilgit supported out-of-tree builds... The CMakeLists  and
Python scripts are hardcoded to expect an in-tree build.

This deficiency of the CMakeLists is easily fixed (I've done so in a
private branch). But, the Python scripts pose a more thorny problem.

-- 
Chad Versace
chad at chad-versace.us


More information about the mesa-dev mailing list