[Mesa-dev] [PATCH 0/8] fix error handling for some gl functions

2011-09-19 Thread Yuanhan Liu
The following patchs fixed some error handling for some gl functions. Yuanhan Liu (8): mesa: fix error handling for glBegin mesa: fix error handling for glEvalMesh1/2D mesa: fix error handling for some glGet* functions mesa: fix error handling for glTexEnv mesa: fix error handling for

[Mesa-dev] [PATCH 1/8] mesa: fix error handling for glBegin

2011-09-19 Thread Yuanhan Liu
According to opengl spec, trigger GL_INVALID_ENUM error if mode is not one of those valid primitive mode while calling glBegin. Signed-off-by: Yuanhan Liu yuanhan@linux.intel.com --- src/mesa/vbo/vbo_exec_api.c | 24 1 files changed, 24 insertions(+), 0

[Mesa-dev] [PATCH 2/8] mesa: fix error handling for glEvalMesh1/2D

2011-09-19 Thread Yuanhan Liu
According man page, trigger error when calling glEvalMesh1/2D inside glBegin/glEnd. Signed-off-by: Yuanhan Liu yuanhan@linux.intel.com --- src/mesa/main/api_noop.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/mesa/main/api_noop.c b/src/mesa/main/api_noop.c

[Mesa-dev] [PATCH 3/8] mesa: fix error handling for some glGet* functions

2011-09-19 Thread Yuanhan Liu
According to the man page, it should trigger a GL_INVALID_OPERATION while calling some glGet* functions inside glBegin and glEnd. This patch dose handle the following functions: glGetBooleanv glGetFloatv glGetIntegerv glGetInteger64v glGetDoublev Signed-off-by: Yuanhan Liu

[Mesa-dev] [PATCH 4/8] mesa: fix error handling for glTexEnv

2011-09-19 Thread Yuanhan Liu
Fix error handling while calling glTexEnv with invalid texture environment parameters. Signed-off-by: Yuanhan Liu yuanhan@linux.intel.com --- src/mesa/main/texenv.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/mesa/main/texenv.c b/src/mesa/main/texenv.c

[Mesa-dev] [PATCH 5/8] mesa: fix error handling for glIsEnabled

2011-09-19 Thread Yuanhan Liu
According the man page, GL_INVALID_OPERATION should be generated if glIsEnabled is executed betwwen the execution of glBegin and the correspoding execution of glEnd. Signed-off-by: Yuanhan Liu yuanhan@linux.intel.com --- src/mesa/main/enable.c |2 ++ 1 files changed, 2 insertions(+), 0

[Mesa-dev] [PATCH 6/8] mesa: fix error handling for glMaterial*

2011-09-19 Thread Yuanhan Liu
Trigger GL_INVALID_ENUM error if the face paramter is not a valid value. Trigger GL_INVALID_VALUE error if the GL_SHININESS value is out side [0,128]. Signed-off-by: Yuanhan Liu yuanhan@linux.intel.com --- src/mesa/vbo/vbo_attrib_tmp.h | 10 +- 1 files changed, 9 insertions(+), 1

[Mesa-dev] [PATCH 7/8] mesa: fix error handling for glPixelZoom

2011-09-19 Thread Yuanhan Liu
According the man page, GL_INVALID_OPERATION should generated if glPixelZoom is executed between the execution of glBegin and the corresponding execution of glEnd. Signed-off-by: Yuanhan Liu yuanhan@linux.intel.com --- src/mesa/main/pixel.c |2 ++ 1 files changed, 2 insertions(+), 0

[Mesa-dev] [PATCH 8/8] mesa: fix error handling for glSelectBuffer

2011-09-19 Thread Yuanhan Liu
According the man page, trigger a GL_INVALID_VALUE if size 0. Signed-off-by: Yuanhan Liu yuanhan@linux.intel.com --- src/mesa/main/feedback.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/mesa/main/feedback.c b/src/mesa/main/feedback.c index

[Mesa-dev] d3d1x: attempt to fix refcounting of GalliumD3D11DeviceChild objects

2011-09-19 Thread Christoph Bumiller
Hi Luca, I've been toying with the d3d1x state tracker lately in order to make it work properly with the nv50/nvc0 gallium drivers. I've taken a bit of a shortcut and made it feed SM4 directly to the driver (I didn't have the nerve to extend TGSI), and got as far as having your spikysphere demo

[Mesa-dev] Implement NV_fog_distance for Gallium hardware

2011-09-19 Thread Nicholas Miell
The NV_fog_distance extension allows you to specify how the fog distance of a fragment is calculated. The usual method approximates the distance of the fragment from the eye as the absolute value of the distance of the fragment from the eye's Z plane. (Or, rather, the distance of each vertex and

[Mesa-dev] [PATCH 1/5] Update llvmpipe's gitignore

2011-09-19 Thread Nicholas Miell
--- src/gallium/drivers/llvmpipe/.gitignore |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/gallium/drivers/llvmpipe/.gitignore b/src/gallium/drivers/llvmpipe/.gitignore index 6ebd2b8..ce96392 100644 --- a/src/gallium/drivers/llvmpipe/.gitignore +++

[Mesa-dev] [PATCH 2/5] Add the basics for the NV_fog_distance extension

2011-09-19 Thread Nicholas Miell
No driver implements it yet. --- src/mesa/main/extensions.c |1 + src/mesa/main/fog.c| 14 ++ src/mesa/main/get.c|5 + src/mesa/main/mtypes.h |2 ++ 4 files changed, 22 insertions(+), 0 deletions(-) diff --git a/src/mesa/main/extensions.c

[Mesa-dev] [PATCH 3/5] Add NV_fog_distance to the fixed-function vertex program generator

2011-09-19 Thread Nicholas Miell
This is all that is needed to implement NV_fog_distance on programmable hardware. --- src/mesa/main/ffvertex_prog.c | 40 1 files changed, 36 insertions(+), 4 deletions(-) diff --git a/src/mesa/main/ffvertex_prog.c b/src/mesa/main/ffvertex_prog.c index

[Mesa-dev] [PATCH 4/5] Enable NV_fog_distance for Gallium drivers

2011-09-19 Thread Nicholas Miell
The fixed-function generated vertex program is all that's needed for Gallium drivers. --- src/mesa/state_tracker/st_extensions.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index

[Mesa-dev] [PATCH 5/5] UNTESTED: Enable NV_fog_distance on NV10 and NV20 hardware

2011-09-19 Thread Nicholas Miell
This has not been tested on real hardware. I have no idea if it works. Add support for NV_fog_distance to the NV10 and NV20 drivers. --- src/mesa/drivers/dri/nouveau/nv10_context.c |1 + src/mesa/drivers/dri/nouveau/nv10_state_tnl.c | 14 +++---

[Mesa-dev] [RFC] [PATCH 1/2] mesa: let GL3 buf obj queries not depend on opengl major version

2011-09-19 Thread Yuanhan Liu
If I understand correctly, the new GL3 buffer object queries parameters, like BUFFER_MAP_ACCESS_FLAGS, depends on ARB_map_buffer_range extension. Signed-off-by: Yuanhan Liu yuanhan@linux.intel.com --- src/mesa/main/bufferobj.c | 12 ++-- 1 files changed, 6 insertions(+), 6

[Mesa-dev] [PATCH 2/2] mesa: fix error handling for glMapBufferRange

2011-09-19 Thread Yuanhan Liu
Accroding the man page, GL_INVALID_VALUE would generated if access has any bits set other than those valid defined bits. Signed-off-by: Yuanhan Liu yuanhan@linux.intel.com --- src/mesa/main/bufferobj.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git

Re: [Mesa-dev] [PATCH 6/8] mesa: fix error handling for glMaterial*

2011-09-19 Thread Brian Paul
On 09/19/2011 01:03 AM, Yuanhan Liu wrote: Trigger GL_INVALID_ENUM error if the face paramter is not a valid value. Trigger GL_INVALID_VALUE error if the GL_SHININESS value is out side [0,128]. Signed-off-by: Yuanhan Liuyuanhan@linux.intel.com --- src/mesa/vbo/vbo_attrib_tmp.h | 10

Re: [Mesa-dev] [PATCH 1/8] mesa: fix error handling for glBegin

2011-09-19 Thread Brian Paul
On 09/19/2011 01:02 AM, Yuanhan Liu wrote: According to opengl spec, trigger GL_INVALID_ENUM error if mode is not one of those valid primitive mode while calling glBegin. Signed-off-by: Yuanhan Liuyuanhan@linux.intel.com --- src/mesa/vbo/vbo_exec_api.c | 24 1

Re: [Mesa-dev] [PATCH 0/8] fix error handling for some gl functions

2011-09-19 Thread Brian Paul
On 09/19/2011 01:02 AM, Yuanhan Liu wrote: The following patchs fixed some error handling for some gl functions. Yuanhan Liu (8): mesa: fix error handling for glBegin mesa: fix error handling for glEvalMesh1/2D mesa: fix error handling for some glGet* functions mesa: fix error

Re: [Mesa-dev] [RFC] [PATCH 1/2] mesa: let GL3 buf obj queries not depend on opengl major version

2011-09-19 Thread Brian Paul
On 09/19/2011 04:25 AM, Yuanhan Liu wrote: If I understand correctly, the new GL3 buffer object queries parameters, like BUFFER_MAP_ACCESS_FLAGS, depends on ARB_map_buffer_range extension. That would make sense, but in fact the extension spec

Re: [Mesa-dev] [PATCH 2/2] mesa: fix error handling for glMapBufferRange

2011-09-19 Thread Brian Paul
On 09/19/2011 04:25 AM, Yuanhan Liu wrote: Accroding the man page, GL_INVALID_VALUE would generated if access has any bits set other than those valid defined bits. Signed-off-by: Yuanhan Liuyuanhan@linux.intel.com --- src/mesa/main/bufferobj.c | 10 ++ 1 files changed, 10

Re: [Mesa-dev] gallium scaled types

2011-09-19 Thread Dave Airlie
Agree. So who is going to do that? Dave and Marek seems to already have volunteered for that. I would also like to help, but at least officially I don't have time todo so. I've started on separate int types in my http://cgit.freedesktop.org/~airlied/mesa/log/?h=gallium-int-work This plumbs

Re: [Mesa-dev] [PATCH] egl_glx.c: use unsigned instead of uint

2011-09-19 Thread Alan Coopersmith
On 09/18/11 10:26, Matt Turner wrote: We've had a hack to fix this in Gentoo on Solaris for a while. Signed-off-by: Matt Turnermatts...@gmail.com --- Not sure what the deal is with uint, or why it wouldn't work on Solaris. Not sure where uint is expected to be defined - Solaris provides the

Re: [Mesa-dev] [RFC] [PATCH 1/2] mesa: let GL3 buf obj queries not depend on opengl major version

2011-09-19 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/19/2011 07:20 AM, Brian Paul wrote: On 09/19/2011 04:25 AM, Yuanhan Liu wrote: If I understand correctly, the new GL3 buffer object queries parameters, like BUFFER_MAP_ACCESS_FLAGS, depends on ARB_map_buffer_range extension. That would

Re: [Mesa-dev] Implement NV_fog_distance for Gallium hardware

2011-09-19 Thread Corbin Simpson
On Mon, Sep 19, 2011 at 5:48 PM, Nicholas Miell nmi...@gmail.com wrote: The NV_fog_distance extension allows you to specify how the fog distance of a fragment is calculated. The usual method approximates the distance of the fragment from the eye as the absolute value of the distance of the

Re: [Mesa-dev] [PATCH 1/5] Update llvmpipe's gitignore

2011-09-19 Thread Brian Paul
On 09/19/2011 03:48 AM, Nicholas Miell wrote: --- src/gallium/drivers/llvmpipe/.gitignore |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/gallium/drivers/llvmpipe/.gitignore b/src/gallium/drivers/llvmpipe/.gitignore index 6ebd2b8..ce96392 100644 ---

Re: [Mesa-dev] [PATCH 3/5] Add NV_fog_distance to the fixed-function vertex program generator

2011-09-19 Thread Brian Paul
On 09/19/2011 03:48 AM, Nicholas Miell wrote: This is all that is needed to implement NV_fog_distance on programmable hardware. --- src/mesa/main/ffvertex_prog.c | 40 1 files changed, 36 insertions(+), 4 deletions(-) diff --git

[Mesa-dev] [PATCH] mesa: Don't expose compressed paletted formats via GL_{NUM_, }COMPRESSED_TEXTURE_FORMATS

2011-09-19 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com Fixes a bug introduced by commit faf5d65. These formats should only be exposed in OpenGL ES 1.x. Signed-off-by: Ian Romanick ian.d.roman...@intel.com Cc: Adam Jackson a...@redhat.com Cc: Xun Fang xunx.f...@intel.com Bugzilla:

Re: [Mesa-dev] [RFC] [PATCH 1/2] mesa: let GL3 buf obj queries not depend on opengl major version

2011-09-19 Thread Jose Fonseca
- Original Message - -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/19/2011 07:20 AM, Brian Paul wrote: On 09/19/2011 04:25 AM, Yuanhan Liu wrote: If I understand correctly, the new GL3 buffer object queries parameters, like BUFFER_MAP_ACCESS_FLAGS, depends on

Re: [Mesa-dev] [RFC] [PATCH 1/2] mesa: let GL3 buf obj queries not depend on opengl major version

2011-09-19 Thread Brian Paul
On 09/19/2011 10:17 AM, Ian Romanick wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/19/2011 07:20 AM, Brian Paul wrote: On 09/19/2011 04:25 AM, Yuanhan Liu wrote: If I understand correctly, the new GL3 buffer object queries parameters, like BUFFER_MAP_ACCESS_FLAGS, depends on

Re: [Mesa-dev] Implement NV_fog_distance for Gallium hardware

2011-09-19 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/19/2011 02:48 AM, Nicholas Miell wrote: The NV_fog_distance extension allows you to specify how the fog distance of a fragment is calculated. The usual method approximates the distance of the fragment from the eye as the absolute value of

[Mesa-dev] [PATCH 2/2] i965: Fix polygon stipple offset state flagging.

2011-09-19 Thread Eric Anholt
_NEW_WINDOW_POS wasn't a real Mesa state flag, but we were missing _NEW_BUFFERS to update the stipple offset when FBO binding or window size changed, and _NEW_POLYGON to update when stippling gets enabled. Fixes oglconform's tristrip test. --- src/mesa/drivers/dri/i965/brw_misc_state.c | 10

[Mesa-dev] [PATCH 1/2] i965: Add missing _NEW_POLYGON flag to polygon stipple upload.

2011-09-19 Thread Eric Anholt
Because we skip the pattern upload when stippling is disabled, we need to check again when it might have been turned on. --- src/mesa/drivers/dri/i965/brw_misc_state.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c

Re: [Mesa-dev] [RFC] [PATCH 1/2] mesa: let GL3 buf obj queries not depend on opengl major version

2011-09-19 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/19/2011 10:12 AM, Jose Fonseca wrote: - Original Message - -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/19/2011 07:20 AM, Brian Paul wrote: On 09/19/2011 04:25 AM, Yuanhan Liu wrote: If I understand correctly, the new GL3

Re: [Mesa-dev] Implement NV_fog_distance for Gallium hardware

2011-09-19 Thread Henri Verbeet
On 19 September 2011 19:23, Ian Romanick i...@freedesktop.org wrote: Direct3D 9 calls the eye radial fog distance mode range-based fog and Wine's D3D9 implementation will use NV_fog_distance to implement it. Several other open source game engines in Google Code Search use the eye radial fog

Re: [Mesa-dev] [PATCH 5/5] Increase MAX_CLIP_PLANES to 8

2011-09-19 Thread Kenneth Graunke
On 09/14/2011 12:49 PM, Paul Berry wrote: This will allow drivers to increase ctx-Const.MaxClipPlanes to 8, which is required for GLSL-1.30 compliance. No driver behavior should be affected. However, many data structures use MAX_CLIP_PLANES as an array size, so these arrays will get slightly

Re: [Mesa-dev] [PATCH 1/5] mesa: Update clipping code to use ctx-Const.MaxClipPlanes.

2011-09-19 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/14/2011 12:49 PM, Paul Berry wrote: To support GLSL 1.30, we will need to increase MAX_CLIP_PLANES to 8. To avoid breaking drivers that do not yet support 8 clip planes, this patch modifies the Mesa core code that pertains to clipping to use

Re: [Mesa-dev] [PATCH 1/2] glsl hierarchical visitor: Do not overwrite base_ir for parameter lists.

2011-09-19 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/15/2011 04:40 PM, Paul Berry wrote: This patch fixes a bug in ir_hirearchical_visitor: when traversing an exec_list representing the formal or actual parameters of a function, it modified base_ir to point to each parameter in turn, rather

Re: [Mesa-dev] [PATCH 1/2] glsl hierarchical visitor: Do not overwrite base_ir for parameter lists.

2011-09-19 Thread Aras Pranckevicius
This patch fixes a bug in ir_hirearchical_visitor: when traversing an exec_list representing the formal or actual parameters of a function, it modified base_ir to point to each parameter in turn, rather than leaving it as a pointer to the enclosing statement. This was a problem, since

Re: [Mesa-dev] [PATCH 2/2] glsl: Implement a lowering pass for gl_ClipDistance.

2011-09-19 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/15/2011 04:40 PM, Paul Berry wrote: In i965 GEN6+ (and I suspect most other hardware), gl_ClipDistance needs to be laid out as a pair of vec4's (the first containing clip distances 0-3, and the second containing clip distances 4-7).

Re: [Mesa-dev] [PATCH 6/8] mesa: fix error handling for glMaterial*

2011-09-19 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/19/2011 12:03 AM, Yuanhan Liu wrote: Trigger GL_INVALID_ENUM error if the face paramter is not a valid value. Trigger GL_INVALID_VALUE error if the GL_SHININESS value is out side [0,128]. Signed-off-by: Yuanhan Liu

Re: [Mesa-dev] [PATCH 1/2] glsl hierarchical visitor: Do not overwrite base_ir for parameter lists.

2011-09-19 Thread Kenneth Graunke
On 09/15/2011 04:40 PM, Paul Berry wrote: This patch fixes a bug in ir_hirearchical_visitor: when traversing an exec_list representing the formal or actual parameters of a function, it modified base_ir to point to each parameter in turn, rather than leaving it as a pointer to the enclosing

Re: [Mesa-dev] [PATCH] mesa: Don't expose compressed paletted formats via GL_{NUM_, }COMPRESSED_TEXTURE_FORMATS

2011-09-19 Thread Adam Jackson
On 9/19/11 1:08 PM, Ian Romanick wrote: From: Ian Romanickian.d.roman...@intel.com Fixes a bug introduced by commit faf5d65. These formats should only be exposed in OpenGL ES 1.x. Reviewed-by: Adam Jackson a...@redhat.com - ajax ___ mesa-dev

Re: [Mesa-dev] [PATCH 1/2] i965: Add missing _NEW_POLYGON flag to polygon stipple upload.

2011-09-19 Thread Kenneth Graunke
On 09/19/2011 09:31 AM, Eric Anholt wrote: Because we skip the pattern upload when stippling is disabled, we need to check again when it might have been turned on. --- src/mesa/drivers/dri/i965/brw_misc_state.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git

Re: [Mesa-dev] [PATCH 5/5] Increase MAX_CLIP_PLANES to 8

2011-09-19 Thread Paul Berry
On 19 September 2011 10:53, Kenneth Graunke kenn...@whitecape.org wrote: On 09/14/2011 12:49 PM, Paul Berry wrote: This will allow drivers to increase ctx-Const.MaxClipPlanes to 8, which is required for GLSL-1.30 compliance. No driver behavior should be affected. However, many data

[Mesa-dev] [Bug 39888] [regression] Artifacts in Cogs

2011-09-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=39888 Sven Arvidsson s...@whiz.se changed: What|Removed |Added Status|NEW |RESOLVED

Re: [Mesa-dev] [PATCH 2/2] mesa: fix error handling for glMapBufferRange

2011-09-19 Thread Eric Anholt
On Mon, 19 Sep 2011 18:25:55 +0800, Yuanhan Liu yuanhan@linux.intel.com wrote: Accroding the man page, GL_INVALID_VALUE would generated if access has any bits set other than those valid defined bits. Signed-off-by: Yuanhan Liu yuanhan@linux.intel.com It would be nice to see simple

[Mesa-dev] [PATCH 0/8] More of the extension clean-up business

2011-09-19 Thread Ian Romanick
Here are some more patches in the on going extension clean-up saga. This set removes enables for a bunch of extensions that have always been enabled in all drivers (even the ones recently removed). It also removes some redundant enables of default-on extensions and one nonsense extension.

[Mesa-dev] [PATCH 1/8] dri: Remove redundant GL_SGIS_texture_edge_clamp enables

2011-09-19 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com This extension is enabled by default in _mesa_init_extensions, so drivers don't need to enable it again. --- src/mesa/drivers/dri/intel/intel_extensions.c |1 - src/mesa/drivers/dri/r200/r200_context.c |1 -

[Mesa-dev] [PATCH 2/8] intel: Remove redundant GL_ARB_window_pos enable

2011-09-19 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com This extension is enabled by default in _mesa_init_extensions, so drivers don't need to enable it again. --- src/mesa/drivers/dri/intel/intel_extensions.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git

[Mesa-dev] [PATCH 3/8] mesa: Remove many extension enable flags

2011-09-19 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com The following extensions are always enabled, and drivers do not have to option to disable them: GL_ARB_multisample GL_ARB_texture_compression GL_ARB_vertex_buffer_object / GL_OES_mapbuffer GL_EXT_copy_texture

[Mesa-dev] [PATCH 4/8] mesa: Fix extension year for EXT_texture_env_combine

2011-09-19 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com The year 2006 apparently came from the Last Modified Date in the spec header. however, the revision history at the bottom say 2/22/00 mjk - added NVIDIA Implementation Details. From that we can safely infer that the spec is from at least 2000, and it

[Mesa-dev] [PATCH 5/8] mesa: Remove all mention of EXT_vertex_array_set

2011-09-19 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com Mesa has never any portion of this extension, and neither has any other vendor. --- src/mesa/main/extensions.c |1 - src/mesa/main/mtypes.h |1 - 2 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/extensions.c

[Mesa-dev] [PATCH 7/8] mesa: Remove EXT_bgra and EXT_texture_format_BGRA8888 extension enable flags

2011-09-19 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com All drivers remaining in Mesa support this extension. This extension is either required or optional features in desktop OpenGL, OpenGL ES 1.x, and OpenGL ES 2.x. EXT_texture_format_BGRA is mostly a subset of EXT_bgra. The only difference seems to

[Mesa-dev] [PATCH 8/8] mesa: Remove EXT_abgr extension enable flag

2011-09-19 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com All drivers remaining in Mesa support this extension. This extension is required in desktop OpenGL. The existing support is already partially broken in Mesa (e.g., using format=GL_ABGR for glTexImage2D in OpenGL ES 2.x). This patch does not change the

[Mesa-dev] [PATCH 6/8] mesa: Remove OES_read_format extension enable flag

2011-09-19 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com This extension is always enabled, and drivers do not have to option to disable it. I kept this one separate from the others because I was a little uncertain about the changes to get.c. Cc: Kristian Høgsberg k...@bitplanet.net ---

Re: [Mesa-dev] [PATCH 0/8] More of the extension clean-up business

2011-09-19 Thread Brian Paul
On 09/19/2011 01:18 PM, Ian Romanick wrote: Here are some more patches in the on going extension clean-up saga. This set removes enables for a bunch of extensions that have always been enabled in all drivers (even the ones recently removed). It also removes some redundant enables of default-on

Re: [Mesa-dev] [PATCH 3/3] i965/fs: Implement texelFetch() on Gen4.

2011-09-19 Thread Eric Anholt
On Fri, 09 Sep 2011 20:18:02 -0700, Kenneth Graunke kenn...@whitecape.org wrote: On 09/09/2011 10:07 AM, Eric Anholt wrote: On Thu, 8 Sep 2011 15:49:23 -0700, Kenneth Graunke kenn...@whitecape.org wrote: + /* Initialize the rest of u/v/r with 0.0, for safety */ + for (int i =

Re: [Mesa-dev] Fixup: Use C++ style constant member functions for is_one and is_zero.

2011-09-19 Thread Eric Anholt
On Sun, 11 Sep 2011 13:05:38 +0200, Tolga Dalman tolga.dal...@googlemail.com wrote: Hi Kenneth, On Fri, 9 Sep 2011 14:41:45 -0700 Kenneth Graunke kenn...@whitecape.org wrote: - if (reg-type == BRW_REGISTER_TYPE_F) { - return reg-imm.f == 0.0; + if (type ==

Re: [Mesa-dev] [PATCH 02/10] i965/vs: Remove dead fields of src_reg.

2011-09-19 Thread Eric Anholt
On Fri, 09 Sep 2011 15:28:06 -0700, Kenneth Graunke kenn...@whitecape.org wrote: On 09/08/2011 11:32 PM, Eric Anholt wrote: These were copy and pasted from the FS, and are never used. --- src/mesa/drivers/dri/i965/brw_vec4.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-)

Re: [Mesa-dev] [RFC] [PATCH 1/2] mesa: let GL3 buf obj queries not depend on opengl major version

2011-09-19 Thread Chris Bandy
On 09/19/2011 12:12 PM, Jose Fonseca wrote: - Original Message - -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/19/2011 07:20 AM, Brian Paul wrote: On 09/19/2011 04:25 AM, Yuanhan Liu wrote: If I understand correctly, the new GL3 buffer object queries parameters, like

Re: [Mesa-dev] [PATCH 2/2] glsl: Implement a lowering pass for gl_ClipDistance.

2011-09-19 Thread Paul Berry
On 19 September 2011 11:10, Ian Romanick i...@freedesktop.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/15/2011 04:40 PM, Paul Berry wrote: In i965 GEN6+ (and I suspect most other hardware), gl_ClipDistance needs to be laid out as a pair of vec4's (the first containing

Re: [Mesa-dev] [PATCH 1/2] glsl hierarchical visitor: Do not overwrite base_ir for parameter lists.

2011-09-19 Thread Paul Berry
On 19 September 2011 10:59, Ian Romanick i...@freedesktop.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/15/2011 04:40 PM, Paul Berry wrote: This patch fixes a bug in ir_hirearchical_visitor: when traversing an exec_list representing the formal or actual parameters of a

Re: [Mesa-dev] [PATCH 0/8] More of the extension clean-up business

2011-09-19 Thread Kenneth Graunke
On 09/19/2011 12:18 PM, Ian Romanick wrote: Here are some more patches in the on going extension clean-up saga. This set removes enables for a bunch of extensions that have always been enabled in all drivers (even the ones recently removed). It also removes some redundant enables of default-on

[Mesa-dev] [PATCH] glsl_to_tgsi: implement ir_binop_all_equal and ir_binop_any_nequal for native integers

2011-09-19 Thread Bryan Cain
--- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 119 1 files changed, 85 insertions(+), 34 deletions(-) diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 8921698..f68270d 100644 ---

Re: [Mesa-dev] [PATCH 02/10] i965/vs: Remove dead fields of src_reg.

2011-09-19 Thread Kenneth Graunke
On 09/19/2011 01:26 PM, Eric Anholt wrote: On Fri, 09 Sep 2011 15:28:06 -0700, Kenneth Graunkekenn...@whitecape.org wrote: On 09/08/2011 11:32 PM, Eric Anholt wrote: These were copy and pasted from the FS, and are never used. --- src/mesa/drivers/dri/i965/brw_vec4.h |2 -- 1 files

[Mesa-dev] [PATCH] mesa: fix PACK_COLOR_5551(), PACK_COLOR_1555() macros

2011-09-19 Thread Brian Paul
From: Brian Paul bri...@vmware.com The 1-bit alpha channel was incorrectly encoded. Previously, any non-zero alpha value for the ubyte alpha value would set A=1. Instead, use the most significant bit of the ubyte alpha to determine the A bit. This is consistent with the other channels and

Re: [Mesa-dev] [PATCH 6/8] mesa: Remove OES_read_format extension enable flag

2011-09-19 Thread Kristian Høgsberg
2011/9/19 Ian Romanick i...@freedesktop.org: From: Ian Romanick ian.d.roman...@intel.com This extension is always enabled, and drivers do not have to option to disable it. I kept this one separate from the others because I was a little uncertain about the changes to get.c. Yes, that looks

Re: [Mesa-dev] [RFC] [PATCH 1/2] mesa: let GL3 buf obj queries not depend on opengl major version

2011-09-19 Thread Yuanhan Liu
On Mon, Sep 19, 2011 at 09:17:42AM -0700, Ian Romanick wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/19/2011 07:20 AM, Brian Paul wrote: On 09/19/2011 04:25 AM, Yuanhan Liu wrote: If I understand correctly, the new GL3 buffer object queries parameters, like

Re: [Mesa-dev] [PATCH 2/2] mesa: fix error handling for glMapBufferRange

2011-09-19 Thread Yuanhan Liu
On Mon, Sep 19, 2011 at 11:54:44AM -0700, Eric Anholt wrote: On Mon, 19 Sep 2011 18:25:55 +0800, Yuanhan Liu yuanhan@linux.intel.com wrote: Accroding the man page, GL_INVALID_VALUE would generated if access has any bits set other than those valid defined bits. Signed-off-by: Yuanhan

Re: [Mesa-dev] [PATCH 6/8] mesa: fix error handling for glMaterial*

2011-09-19 Thread Yuanhan Liu
On Mon, Sep 19, 2011 at 08:08:18AM -0600, Brian Paul wrote: On 09/19/2011 01:03 AM, Yuanhan Liu wrote: Trigger GL_INVALID_ENUM error if the face paramter is not a valid value. Trigger GL_INVALID_VALUE error if the GL_SHININESS value is out side [0,128]. Signed-off-by: Yuanhan

Re: [Mesa-dev] [PATCH 1/8] mesa: fix error handling for glBegin

2011-09-19 Thread Yuanhan Liu
On Mon, Sep 19, 2011 at 08:09:09AM -0600, Brian Paul wrote: On 09/19/2011 01:02 AM, Yuanhan Liu wrote: According to opengl spec, trigger GL_INVALID_ENUM error if mode is not one of those valid primitive mode while calling glBegin. Signed-off-by: Yuanhan Liuyuanhan@linux.intel.com ---

[Mesa-dev] [Bug 41023] New: d3d1x: error when building - src/dxgi_native.cpp:1165:40: error: uninitialized const ‘black’

2011-09-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=41023 Summary: d3d1x: error when building - src/dxgi_native.cpp:1165:40: error: uninitialized const ‘black’ Product: Mesa Version: git Platform: Other

[Mesa-dev] [PATCH] mesa: fix error handling for glMaterial*

2011-09-19 Thread Yuanhan Liu
Trigger GL_INVALID_ENUM error if the face paramter is not a valid value. Trigger GL_INVALID_VALUE error if the GL_SHININESS value is out side [0, ctx-Constant.MaxShiniess]. v2: fix the max shininess value. Signed-off-by: Yuanhan Liu yuanhan@linux.intel.com --- src/mesa/vbo/vbo_attrib_tmp.h

[Mesa-dev] [Bug 38970] [bisected]piglit glx/glx-pixmap-multi failed

2011-09-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38970 --- Comment #13 from Gordon Jin gordon@intel.com 2011-09-19 20:22:18 PDT --- ajax/Ian, any idea? -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the

Re: [Mesa-dev] [PATCH 1/2] i965: Add missing _NEW_POLYGON flag to polygon stipple upload.

2011-09-19 Thread Yuanhan Liu
On Mon, Sep 19, 2011 at 09:31:36AM -0700, Eric Anholt wrote: Because we skip the pattern upload when stippling is disabled, we need to check again when it might have been turned on. Reviewed-by: Yuanhan Liu yuanhan@linux.intel.com --- src/mesa/drivers/dri/i965/brw_misc_state.c |4

Re: [Mesa-dev] [PATCH] mesa: fix error handling for glMaterial*

2011-09-19 Thread Brian Paul
On Mon, Sep 19, 2011 at 9:16 PM, Yuanhan Liu yuanhan@linux.intel.com wrote: Trigger GL_INVALID_ENUM error if the face paramter is not a valid value. Trigger GL_INVALID_VALUE error if the GL_SHININESS value is out side [0, ctx-Constant.MaxShiniess]. v2: fix the max shininess value.

[Mesa-dev] [PATCH] mesa: fix error handling for glMaterial*

2011-09-19 Thread Yuanhan Liu
Trigger GL_INVALID_ENUM error if the face paramter is not a valid value. Trigger GL_INVALID_VALUE error if the GL_SHININESS value is out side [0, ctx-Constant.MaxShiniess]. v2: fix the max shininess value. v3: suggested by Brian, move the face check into glMaterialfv function to reduce code

Re: [Mesa-dev] [PATCH] mesa: fix error handling for glMaterial*

2011-09-19 Thread Yuanhan Liu
On Mon, Sep 19, 2011 at 09:25:54PM -0600, Brian Paul wrote: On Mon, Sep 19, 2011 at 9:16 PM, Yuanhan Liu yuanhan@linux.intel.com wrote: Trigger GL_INVALID_ENUM error if the face paramter is not a valid value. Trigger GL_INVALID_VALUE error if the GL_SHININESS value is out side [0,

Re: [Mesa-dev] Implement NV_fog_distance for Gallium hardware

2011-09-19 Thread Nicholas Miell
On 09/19/2011 10:23 AM, Ian Romanick wrote: I guess the big question is... why? With vertex shaders, this functionality is not terribly useful. Over the past few weeks we've been *removing* code like this, so it seems kind of odd to add some of it. If I'm not mistaken, the only hardware