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

2011-01-28 Thread Chad Versace
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 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

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

2011-01-25 Thread José Fonseca
On Sat, 2011-01-22 at 19:18 -0800, Chad Versace wrote: > On Sat, Jan 22, 2011 at 17:46, Ian Romanick 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 fil

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

2011-01-24 Thread Brian Paul
2011/1/24 Kristian Høgsberg : > 2011/1/24 Brian Paul : >> On 01/24/2011 04:18 PM, Kristian Høgsberg wrote: >>> >>> On Sat, Jan 22, 2011 at 11:42 AM, Benjamin Franzke >>>  wrote: 2011/1/18 Brian Paul: > > Before we commit this stuff can you develop a piglit test to test it? >

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

2011-01-24 Thread Kristian Høgsberg
2011/1/24 Brian Paul : > On 01/24/2011 04:18 PM, Kristian Høgsberg wrote: >> >> On Sat, Jan 22, 2011 at 11:42 AM, Benjamin Franzke >>  wrote: >>> >>> 2011/1/18 Brian Paul: Before we commit this stuff can you develop a piglit test to test it? >>> >>> The problem for me is that piglit

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

2011-01-24 Thread Brian Paul
On 01/24/2011 04:18 PM, Kristian Høgsberg wrote: On Sat, Jan 22, 2011 at 11:42 AM, Benjamin Franzke wrote: 2011/1/18 Brian Paul: Before we commit this stuff can you develop a piglit test to test it? The problem for me is that piglit is GL-only atm. so its not trival to write a simple gles

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

2011-01-24 Thread Kristian Høgsberg
On Sat, Jan 22, 2011 at 11:42 AM, Benjamin Franzke wrote: > 2011/1/18 Brian Paul : >> >> Before we commit this stuff can you develop a piglit test to test it? >> > > The problem for me is that piglit is GL-only atm. so its not trival to > write a simple gles2 test-program, as changes to piglit-uti

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

2011-01-23 Thread Darxus
This set of 4 patches makes wayland work for me, on nouveau / nvidia. On 01/22, Benjamin Franzke wrote: > I attach the 3 patches (that were already sent in a bit different > form) in correct order + 1 Patch that ensures internalFormat==format > in gles' glTexImage2D. __

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

2011-01-22 Thread Chad Versace
On Sat, Jan 22, 2011 at 17:46, Ian Romanick 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 t

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

2011-01-22 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [I'm cross-posting this to the piglit list as well.] On 01/22/2011 08:42 AM, Benjamin Franzke wrote: > 2011/1/18 Brian Paul : >> >> Before we commit this stuff can you develop a piglit test to test it? > > The problem for me is that piglit is GL-only

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

2011-01-22 Thread Benjamin Franzke
2011/1/18 Brian Paul : > > Before we commit this stuff can you develop a piglit test to test it? > The problem for me is that piglit is GL-only atm. so its not trival to write a simple gles2 test-program, as changes to piglit-util would be needed. It would be important for people wanting to contri

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

2011-01-17 Thread Brian Paul
On Mon, Jan 17, 2011 at 3:44 PM, Benjamin Franzke wrote: > internalFormat=GL_BGRA is only allowed with gles1/2 > and GL_EXT_texture_format_BGRA enabled. > --- >  src/mesa/main/texformat.c |    4 >  src/mesa/main/teximage.c  |    9 + >  src/mesa/main/texparam.c  |    7 +-- >  s

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

2011-01-17 Thread Benjamin Franzke
internalFormat=GL_BGRA is only allowed with gles1/2 and GL_EXT_texture_format_BGRA enabled. --- src/mesa/main/texformat.c |4 src/mesa/main/teximage.c |9 + src/mesa/main/texparam.c |7 +-- src/mesa/main/texstate.c |1 + 4 files changed, 19 insertions(+), 2