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 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 compile > and link on

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 wrote: > > On 11/23/2011 12:12 PM, Eric Anholt wrote: > > > On Wed, 23 Nov 2011 17:34:30 +0800, Yuanhan > > > Liu wrote: > > >> From 9a1da8748f0faa23f34398213ff7ee45fda6bf36 Mon Sep 17

[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

[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] 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 output

[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

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

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 f

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 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 GL_DEPTH_STEN

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 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 with its typ

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 wrote: > From: Dave Airlie > > This format is used in the ARB_texture_rgb10_a2ui spec. > > Signed-off-by: Dave Airlie > --- > src/mesa/main/formats.c | 17 + > src/mesa/main/formats.h |2 ++ > 2 files changed, 19 insertions

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 wrote: > From: Dave Airlie > > 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 fbobject.c:_mesa_base_fbo_format()

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" wrote: > From: Ian Romanick > > 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 begin with the prefix > "gl_", s

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 wrote: > From: Dave Airlie > > 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 text on it, but I couldn't make

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 wrote: > From: Dave Airlie > > This adds the unpacking necessary for an fbo using readpixels. > > Signed-off-by: Dave Airlie Reviewed-by: Eric Anholt pgpWveDqQMwAC.pgp Description: PGP signature ___

[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 to

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 wrote: > From: Dave Airlie > > These codepaths were missing the cases for BGR_INTEGER/BGRA_INTEGER. > > Signed-off-by: Dave Airlie Reviewed-by: Eric Anholt pgpI1qI97kMbt.pgp Description: PGP signature _

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 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 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 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 > distinct array members. Mak

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 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 > @@ -373,10 +373,10 @@ static void brw_prepare_vertices(struct brw_con

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

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

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@lists.freedeskto

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

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

Re: [Mesa-dev] [PATCH] image: fix legal types for packed integer formats.

2011-11-27 Thread Eric Anholt
On Sat, 26 Nov 2011 16:56:44 +, Dave Airlie wrote: > From: Dave Airlie > > After reading ARB_texture_rgb10_a2ui it appears the packed formats > for integer types are only specified via this extension, and not via > the original ones. So condition the checks on this. > > Hopefully some can t

Re: [Mesa-dev] GL_ARB_texture_rgb10_a2ui support

2011-11-27 Thread Dave Airlie
On Sun, Nov 27, 2011 at 7:27 PM, Dave Airlie wrote: > 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 softp

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

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

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

2011-11-27 Thread Dave Airlie
From: Dave Airlie Add support to the state tracker format and extension enablement code. Signed-off-by: Dave Airlie --- src/mesa/state_tracker/st_extensions.c |6 ++ src/mesa/state_tracker/st_format.c | 11 +-- 2 files changed, 15 insertions(+), 2 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 BGRA.

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

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

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.

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

2011-11-27 Thread Dave Airlie
From: 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. 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 me), and fails miser

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

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

[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 --- src/mesa/drivers/dri/i915/i915_fragprog.c |4 +- src/mesa/drivers/dri/i965/brw_context.h|2 +- src/mesa/drivers/dri/i9

[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 Reviewed-by: Brian Paul --- src/mesa/main/enable.c |2 +- src/mesa/main/mtypes.h | 54 src/mesa/main/varray.c |2 +- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/mesa/main/enable.

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

2011-11-27 Thread Mathias Fröhlich
Signed-off-by: Mathias Froehlich Reviewed-by: Brian Paul --- src/mesa/vbo/vbo_context.c| 26 +++--- src/mesa/vbo/vbo_exec.h |4 ++-- src/mesa/vbo/vbo_exec_api.c | 24 src/mesa/vbo/vbo_exec_array.c | 41 +-

[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 Reviewed-by: Brian Paul --- src/mesa/main/arrayobj.c |2 +- src/mesa/main/enable.c | 20 ++-- src/mesa/main/mtypes.h | 37 ++--- src/mesa/mai

[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 --- src/mesa/main/mtypes.h | 63 ++- 1 files changed, 45 insertions(+), 18 deletions(-) diff --git a/src/mesa/mai

[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 6