[Mesa-dev] [PATCH 0/6] Make gl_array_object use an array of gl_client_attribs V2

2011-11-27 Thread Mathias Fröhlich
Hi, following a patch series to make gl_array_object use a VERT_ATTRIB_* indexed array of gl_client_array structs. Since we have already 33 client arrays in an array object the VERT_BIT_* and for vertex shader inputs bitmaps are extended to 64 bits. Drivers and shader code is updated to use the

[Mesa-dev] [PATCH 1/6] mesa: Introduce more symbolic VERT_{ATTRIB, BIT}* defines.

2011-11-27 Thread Mathias Fröhlich
Introduce a set of defines for VERT_ATTRIB_* and VERT_BIT_* that will be used in the followup patches. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- src/mesa/main/mtypes.h | 63 ++- 1 files changed, 45 insertions(+), 18 deletions(-)

[Mesa-dev] [PATCH 2/6] mesa: Replace _NEW_ARRAY_* bits with VERT_BIT_*

2011-11-27 Thread Mathias Fröhlich
Consolidate the two distinct set of flags to use VERT_BIT_*. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de Reviewed-by: Brian Paul bri...@vmware.com --- src/mesa/main/arrayobj.c |2 +- src/mesa/main/enable.c | 20 ++-- src/mesa/main/mtypes.h | 37

[Mesa-dev] [PATCH 3/6] vbo: Use The VERT_{ATTRIB,BIT} defines.

2011-11-27 Thread Mathias Fröhlich
Signed-off-by: Mathias Froehlich mathias.froehl...@web.de Reviewed-by: Brian Paul bri...@vmware.com --- src/mesa/vbo/vbo_context.c| 26 +++--- src/mesa/vbo/vbo_exec.h |4 ++-- src/mesa/vbo/vbo_exec_api.c | 24

[Mesa-dev] [PATCH 4/6] mesa: Make gl_array_object::_Enabled 64 bits.

2011-11-27 Thread Mathias Fröhlich
Signed-off-by: Mathias Froehlich mathias.froehl...@web.de Reviewed-by: Brian Paul bri...@vmware.com --- src/mesa/main/enable.c |2 +- src/mesa/main/mtypes.h | 54 src/mesa/main/varray.c |2 +- 3 files changed, 29 insertions(+), 29

[Mesa-dev] [PATCH 5/6] mesa: Make gl_program::InputsRead 64 bits.

2011-11-27 Thread Mathias Fröhlich
Make gl_program::InputsRead a 64 bits bitfield. Adapt the intel and radeon driver to handle a 64 bits InputsRead value. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- src/mesa/drivers/dri/i915/i915_fragprog.c |4 +- src/mesa/drivers/dri/i965/brw_context.h|2 +-

[Mesa-dev] [PATCH] image/pack: fix missing GL_BGR(A)_INTEGER support.

2011-11-27 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com These codepaths were missing the cases for BGR_INTEGER/BGRA_INTEGER. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/image.c |2 ++ src/mesa/main/pack.c |2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git

[Mesa-dev] [PATCH] initial ARB_texture_rgb10_a2ui test (v2)

2011-11-27 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This test tries to upload the texture in RGBA/BGRA and 10_10_10_2/2_10_10_10_REV type/format combinations. v2: improve test to be less cut-n-paste from older tests and make it a lot easier to read. v2 passes on nvidia binary (joi on #nouveau tested it for

Re: [Mesa-dev] [PATCH] initial ARB_texture_rgb10_a2ui test (v2)

2011-11-27 Thread Dave Airlie
This test tries to upload the texture in RGBA/BGRA and 10_10_10_2/2_10_10_10_REV type/format combinations. Oops wrong mail sending script, re-sent to piglit list. Sorry for the noise. Dave. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org

[Mesa-dev] [PATCH 1/3] mesa/formats: add mesa MESA_FORMAT_ARGB2101010_UINT description.

2011-11-27 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This format is used in the ARB_texture_rgb10_a2ui spec. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/formats.c | 17 + src/mesa/main/formats.h |2 ++ 2 files changed, 19 insertions(+), 0 deletions(-) diff --git

[Mesa-dev] GL_ARB_texture_rgb10_a2ui support

2011-11-27 Thread Dave Airlie
The first 2 add the core rgb10_a2ui format, and the 3rd is the gallium state tracker support. I've got a one liner fix for r600g and I'll push a docs update along with these. I've tested them with the test that I posted earlier on softpipe + r600g. They also require the image fix I sent for

[Mesa-dev] [PATCH 3/3] st/mesa: add ARB_texture_rgb10_a2ui support

2011-11-27 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Add support to the state tracker format and extension enablement code. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/state_tracker/st_extensions.c |6 ++ src/mesa/state_tracker/st_format.c | 11 +-- 2 files changed, 15

[Mesa-dev] [PATCH 2/3] mesa: add texformat/store code for GL_RGB10_A2UI.

2011-11-27 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This just adds the texstorage and format handling for ARB_texture_rgb10_a2ui Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/image.c |2 + src/mesa/main/texformat.c |9 +++ src/mesa/main/teximage.c |1 +

[Mesa-dev] [PATCH] format_unpack: add ARGB2101010 unpacking.

2011-11-27 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This adds the unpacking necessary for an fbo using readpixels. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/format_unpack.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git

Re: [Mesa-dev] GL_ARB_texture_rgb10_a2ui support

2011-11-27 Thread Dave Airlie
Just realised its on the required framebuffer format as well, so I'll have to write an FBO test for it and make sure it works. That was easier than I expected, test + patch for mesa sent. Dave. ___ mesa-dev mailing list

[Mesa-dev] [PATCH] format_unpack: add 8/16 rgba/rgb types.

2011-11-27 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com fixing these makes piglit fbo-integer pass on softpipe. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/format_unpack.c | 135 + 1 files changed, 135 insertions(+), 0 deletions(-) diff --git

Re: [Mesa-dev] [PATCH 5/6] mesa: Make gl_program::InputsRead 64 bits.

2011-11-27 Thread Eric Anholt
On Sun, 27 Nov 2011 18:18:57 +0100, Mathias Fröhlich mathias.froehl...@gmx.net wrote: Make gl_program::InputsRead a 64 bits bitfield. Adapt the intel and radeon driver to handle a 64 bits InputsRead value. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de @@ -373,10 +373,10 @@

Re: [Mesa-dev] [PATCH 6/6] mesa: Use VERT_ATTRIB_* indexed array in gl_array_object.

2011-11-27 Thread Eric Anholt
On Sun, 27 Nov 2011 18:19:00 +0100, Mathias Fröhlich mathias.froehl...@gmx.net wrote: Replace the distinct struct gl_client_array members in gl_array_object by an array of gl_client_arrays indexed by VERT_ATTRIB_*. Renumber the vertex attributes slightly to keep the old semantics of the

Re: [Mesa-dev] [PATCH 1/3] mesa: use _mesa_base_format_has_channel() in fbobject.c queries

2011-11-27 Thread Eric Anholt
Series is Reviewed-by: Eric Anholt e...@anholt.net pgpGWM98IAvNa.pgp Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] image/pack: fix missing GL_BGR(A)_INTEGER support.

2011-11-27 Thread Eric Anholt
On Sun, 27 Nov 2011 17:37:09 +, Dave Airlie airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com These codepaths were missing the cases for BGR_INTEGER/BGRA_INTEGER. Signed-off-by: Dave Airlie airl...@redhat.com Reviewed-by: Eric Anholt e...@anholt.net pgpI1qI97kMbt.pgp

[Mesa-dev] Mesa 7.11.2 release

2011-11-27 Thread Ian Romanick
Mesa 7.11.2 has been released. Mesa 7.11.2 is a bug fix release which fixes bugs found since the 7.11.1 release. This release was made primarily to fix build problems with 7.11.1 on Mandriva and to fix problems related to glCopyTexImage to luminance-alpha textures. That later was believed

Re: [Mesa-dev] [PATCH] format_unpack: add ARGB2101010 unpacking.

2011-11-27 Thread Eric Anholt
On Sun, 27 Nov 2011 20:36:26 +, Dave Airlie airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com This adds the unpacking necessary for an fbo using readpixels. Signed-off-by: Dave Airlie airl...@redhat.com Reviewed-by: Eric Anholt e...@anholt.net pgpWveDqQMwAC.pgp

Re: [Mesa-dev] [PATCH] format_unpack: add 8/16 rgba/rgb types.

2011-11-27 Thread Eric Anholt
On Sun, 27 Nov 2011 20:54:34 +, Dave Airlie airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com fixing these makes piglit fbo-integer pass on softpipe. I didn't do these because I wasn't sure how clamping and sign extension were supposed to work in the pack path. The specs have

Re: [Mesa-dev] [PATCH] mesa: Allow generic attributes for glGetActiveAttrib and GL_ACTIVE_ATTRIBUTES

2011-11-27 Thread Eric Anholt
On Tue, 22 Nov 2011 13:47:27 -0800, Ian Romanick i...@freedesktop.org wrote: From: Ian Romanick ian.d.roman...@intel.com Page 77 (page 91 of the PDF) says about glGetActiveAttrib: The returned attribute name can be the name of a generic attribute or a conventional attribute (which

Re: [Mesa-dev] [PATCH 2/3] mesa: add texformat/store code for GL_RGB10_A2UI.

2011-11-27 Thread Eric Anholt
On Sun, 27 Nov 2011 19:27:16 +, Dave Airlie airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com This just adds the texstorage and format handling for ARB_texture_rgb10_a2ui Looking at places that GL_RGBA32UI is mentioned, it seems like we also need a case for this extension in

Re: [Mesa-dev] [PATCH 1/3] mesa/formats: add mesa MESA_FORMAT_ARGB2101010_UINT description.

2011-11-27 Thread Eric Anholt
On Sun, 27 Nov 2011 19:27:15 +, Dave Airlie airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com This format is used in the ARB_texture_rgb10_a2ui spec. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/formats.c | 17 +

Re: [Mesa-dev] [PATCH 5/7] mesa: Fix the datatype of GL_DEPTH32F_STENCIL8's depth channel.

2011-11-27 Thread Eric Anholt
On Wed, 23 Nov 2011 13:52:07 -0700, Brian Paul bri...@vmware.com wrote: On 11/23/2011 01:37 PM, Eric Anholt wrote: Asking for the datatype of MESA_FORMAT_Z32_FLOAT_X24S8 is a bit funny -- there's a float depth channel, and a stencil channel that doesn't have a particular GLenum associated

Re: [Mesa-dev] [PATCH 7/7] mesa: Make _mesa_is_stencil_format() consistent with _mesa_is_depth_format().

2011-11-27 Thread Eric Anholt
On Wed, 23 Nov 2011 13:53:33 -0700, Brian Paul bri...@vmware.com wrote: On 11/23/2011 01:37 PM, Eric Anholt wrote: There was only one consumer of this API, meta.c, which was intending to ask is this format just stencil index (and nothing else)?. Instead, if one tried to glDrawPixels of

Re: [Mesa-dev] [PATCH 2/2] mesa: add hard limits for the number of varyings and uniforms for the linker

2011-11-27 Thread Ian Romanick
On 11/25/2011 01:13 AM, Dave Airlie wrote: I'm honestly shocked to read this, Marek. We deliberately want [your] driver to be less capable and couldn't care about less about anything except [our] driver? This is sounding remarkably like a conspiracy theory, and I really didn't expect that from

Re: [Mesa-dev] reworking pipe_video_decoder / pipe_video_buffer

2011-11-27 Thread Christian König
On 26.11.2011 22:23, Maarten Lankhorst wrote: Hey Andy, On 11/26/2011 01:44 PM, Andy Furniss wrote: Maarten Lankhorst wrote: Testing interlaced videos that decode correctly with nvidia vdpau would help a lot to figure out what the proper way to handle interlacing would be, so if someone has

[Mesa-dev] [PATCH] gl-3.0/api/drawpixels-integer: New test for GL 3.0 integer glDrawPixels.

2011-11-27 Thread Eric Anholt
When the extension was folded in, glDrawPixels of integer formats was disallowed. Disable the GL_EXT_texture_integer if 3.0 is exposed, and replace it with a simple make sure it throws the error API test. I think actually the intent was that this is a correction to EXT_texture_integer, because I

[Mesa-dev] GL 3.0 glDrawPixels(integer format)

2011-11-27 Thread Eric Anholt
While looking into MapRenderbuffer for glDrawPixels, I ended up looking at integer again. It looks like GL 3.0 has added sanity to drawpixels for integer, which is to say that they've disallowed it. I don't think there was any way to usefully use drawpixels of integer. Assuming you want to

[Mesa-dev] [PATCH] mesa: Reject glDrawPixels(integer format) on GL 3.0 or greater.

2011-11-27 Thread Eric Anholt
When folding GL_EXT_texture_integer into the core, a new (and very sensible) restriction was added. --- src/mesa/main/drawpix.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/src/mesa/main/drawpix.c b/src/mesa/main/drawpix.c index 412cc15..5d1bd5a 100644 ---

[Mesa-dev] XCB-only GLX protocol?

2011-11-27 Thread Ian Romanick
All, I'm starting to work on GLX_ARB_create_context. This extension and the layered GLX_ARB_create_context_profile extension add some GLX protocol. Is there any reason to keep supporting non-XCB protocol? Are there any platforms that can't / don't use XCB for X protocol? I'm not planning

Re: [Mesa-dev] [Piglit] [PATCH] Add a simple testcase to test that GL_ELEMENT_ARRAY_BUFFER is per vao

2011-11-27 Thread Yuanhan Liu
On Thu, Nov 24, 2011 at 11:25:23AM -0800, Eric Anholt wrote: On Wed, 23 Nov 2011 12:24:37 -0700, Brian Paul bri...@vmware.com wrote: On 11/23/2011 12:12 PM, Eric Anholt wrote: On Wed, 23 Nov 2011 17:34:30 +0800, Yuanhan Liuyuanhan@linux.intel.com wrote: From

Re: [Mesa-dev] [PATCH 2/2] mesa: add hard limits for the number of varyings and uniforms for the linker

2011-11-27 Thread Marek Olšák
On Mon, Nov 28, 2011 at 12:08 AM, Ian Romanick i...@freedesktop.org wrote: In Mesa, we have four drivers that advertise 4096 uniform components on some combinations of hardware: i915, i915g, nouveau, and r300g.  By putting resource counting in the driver we have the potential for shaders to