[Mesa-dev] [PATCH] mklib: clean up abi flags for x86 targets

2012-09-11 Thread Mike Frysinger
The current code is duplicated in two places and relies on `uname` to detect the flags. This is no good for cross-compiling, and the current logic uses -m64 for the x32 ABI which breaks things. Unify the code in one place, avoid `uname` completely, and add support for the new x32 ABI. Signed-off

Re: [Mesa-dev] [PATCH] glsl: Generate compile errors for explicit blend indices < 0 or > 1.

2012-09-11 Thread Ian Romanick
On 09/11/2012 03:06 AM, Paul Berry wrote: On 31 August 2012 16:04, Kenneth Graunke mailto:kenn...@whitecape.org>> wrote: According to the GLSL 4.30 specification, this is a compile time error. Earlier specifications don't specify a behavior, but since 0 and 1 are the only valid indic

Re: [Mesa-dev] [PATCH 1/2] _mesa_meta_GenerateMipmap: Support all texture targets by generating shaders at runtime

2012-09-11 Thread Ian Romanick
On 09/05/2012 05:42 AM, Anuj Phogat wrote: glsl path of _mesa_meta_GenerateMipmap() function would require different fragment shaders depending on the texture target. This patch adds the code to generate appropriate fragment shader programs at run time. Fixes https://bugs.freedesktop.org/show_bu

Re: [Mesa-dev] [PATCH 2/2] _mesa_meta_GenerateMipmap: Generate separate shaders for glsl 120 / 130

2012-09-11 Thread Ian Romanick
On 09/05/2012 05:43 AM, Anuj Phogat wrote: glsl version of _mesa_meta_GenerateMipmap() would require separate shaders for glsl 120 and 130. NOTE: This is a candidate for stable branches. Signed-off-by: Anuj Phogat --- src/mesa/drivers/common/meta.c | 149

[Mesa-dev] [PATCH] mesa/es: Define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT enum for all GLs

2012-09-11 Thread Tomeu Vizoso
instead of just for GL and ES1. --- src/mesa/main/get.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 24d2a18..e40569d 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -536,6 +536,11 @@ static const struc

[Mesa-dev] [Bug 54763] New: glCopyPixels dirties the context and all rendering is slower after that

2012-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54763 Bug #: 54763 Summary: glCopyPixels dirties the context and all rendering is slower after that Classification: Unclassified Product: Mesa Version: 8.0 Platform: x86-64

[Mesa-dev] [Bug 54763] glCopyPixels dirties the context and all rendering is slower after that

2012-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54763 Daniel van Vugt changed: What|Removed |Added See Also||https://launchpad.net/bugs/

[Mesa-dev] [PATCH 00/45] Remove many of the FEATURE_* defines.

2012-09-11 Thread Oliver McFadden
Hi, As requested here is the patch series which removes many of the FEATURE_* defines, typically used to enable or disable some GL feature or extension. I have ran this series through automatic git-bisect with a script to compile Mesa. The series is bisect-clean with the following configuration:

[Mesa-dev] [PATCH 01/45] mesa: remove FEATURE_dispatch define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/context.c |2 -- src/mesa/main/mfeatures.h |1 - 2 files changed, 0 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 6b28690..dbd79e9 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/m

[Mesa-dev] [PATCH 02/45] mesa: remove FEATURE_texgen define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/mfeatures.h |1 - src/mesa/main/texgen.c|6 -- src/mesa/main/texgen.h| 22 -- 3 files changed, 0 insertions(+), 29 deletions(-) diff --git a/src/mesa/main/mfeatures.h b/src/mesa/main/mfeatures.h index 3761

[Mesa-dev] [PATCH 03/45] mesa: remove FEATURE_userclip define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/enable.c|2 -- src/mesa/main/matrix.c|2 -- src/mesa/main/mfeatures.h |2 -- 3 files changed, 0 insertions(+), 6 deletions(-) diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index 14eea53..78ce471 100644 --- a/src/

[Mesa-dev] [PATCH 04/45] mesa: replace FEATURE_accum with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/accum.c |4 ++-- src/mesa/main/accum.h |6 +++--- src/mesa/main/mfeatures.h |1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/mesa/main/accum.c b/src/mesa/main/accum.c index 16c26168..1eb8ad9 100644 --- a/

[Mesa-dev] [PATCH 08/45] mesa: replace FEATURE_colortable with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/colortab.c |4 ++-- src/mesa/main/colortab.h |6 +++--- src/mesa/main/mfeatures.h |1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/mesa/main/colortab.c b/src/mesa/main/colortab.c index f20dee6..5f06815 100644 -

[Mesa-dev] [PATCH 09/45] mesa: replace FEATURE_convolve with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/convolve.c |4 ++-- src/mesa/main/convolve.h |6 +++--- src/mesa/main/mfeatures.h |1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/mesa/main/convolve.c b/src/mesa/main/convolve.c index 74f28da..df7d5de 100644 -

[Mesa-dev] [PATCH 06/45] mesa: replace FEATURE_attrib_stack with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/attrib.c|4 ++-- src/mesa/main/attrib.h|6 +++--- src/mesa/main/mfeatures.h |1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index 806cf09..de518da 100644 --- a

[Mesa-dev] [PATCH 13/45] mesa: replace FEATURE_evaluators with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/eval.c|4 ++-- src/mesa/main/eval.h|6 +++--- src/mesa/main/mfeatures.h |1 - src/mesa/vbo/vbo_exec_api.c |4 ++-- src/mesa/vbo/vbo_noop.c |4 ++-- 5 files changed, 9 insertions(+), 10 deletions(-) diff --

[Mesa-dev] [PATCH 07/45] mesa: replace FEATURE_beginend with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/api_loopback.c |4 ++-- src/mesa/main/api_loopback.h |6 +++--- src/mesa/main/mfeatures.h|4 +--- src/mesa/main/vtxfmt.c |4 ++-- src/mesa/main/vtxfmt.h |6 +++--- src/mesa/vbo/vbo_exec.h |6 +++--- src/

[Mesa-dev] [PATCH 05/45] mesa: replace FEATURE_arrayelt with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/api_arrayelt.c |4 ++-- src/mesa/main/api_arrayelt.h |6 +++--- src/mesa/main/mfeatures.h|3 +-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/mesa/main/api_arrayelt.c b/src/mesa/main/api_arrayelt.c index 152340

[Mesa-dev] [PATCH 11/45] mesa: replace FEATURE_draw_read_buffer with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/api_exec.c |6 +++--- src/mesa/main/mfeatures.h |1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/mesa/main/api_exec.c b/src/mesa/main/api_exec.c index c448189..695b045 100644 --- a/src/mesa/main/api_exec.c +++ b/src

[Mesa-dev] [PATCH 10/45] mesa: replace FEATURE_dlist with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/context.c |2 +- src/mesa/main/dlist.c|6 +++--- src/mesa/main/dlist.h|6 +++--- src/mesa/main/mfeatures.h|1 - src/mesa/vbo/vbo_context.h |2 +- src/mesa/vbo/vbo_save.c |

[Mesa-dev] [PATCH 14/45] mesa: replace FEATURE_feedback with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/drivers/common/meta.c|6 +++--- src/mesa/main/feedback.c |4 ++-- src/mesa/main/feedback.h |6 +++--- src/mesa/main/mfeatures.h |1 - src/mesa/state_tracker/st_cb_feedback.c

[Mesa-dev] [PATCH 12/45] mesa: replace FEATURE_drawpix with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/drawpix.c |4 ++-- src/mesa/main/drawpix.h |6 +++--- src/mesa/main/mfeatures.h |1 - src/mesa/state_tracker/st_cb_bitmap.c |4 ++-- src/mesa/state_tracker/st_cb_bitmap.h |

[Mesa-dev] [PATCH 23/45] mesa: replace FEATURE_OES_draw_texture with FEATURE_ES1 define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/drivers/common/meta.c |4 ++-- src/mesa/main/drawtex.c|4 ++-- src/mesa/main/drawtex.h|4 ++-- src/mesa/main/extensions.c |2 +- src/mesa/main/mfeatures.h |1 - src/mes

[Mesa-dev] [PATCH 17/45] mesa: replace FEATURE_rastpos with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/mfeatures.h |1 - src/mesa/main/rastpos.c |4 ++-- src/mesa/main/rastpos.h |6 +++--- src/mesa/state_tracker/st_cb_rasterpos.c |4 ++-- src/mesa/state_tracker/st_cb_rasterpos.h |

[Mesa-dev] [PATCH 15/45] mesa: replace FEATURE_pixel_transfer with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/mfeatures.h |1 - src/mesa/main/pixel.c |4 ++-- src/mesa/main/pixel.h |6 +++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/mesa/main/mfeatures.h b/src/mesa/main/mfeatures.h index d604c69..73f7074 100644

[Mesa-dev] [PATCH 21/45] mesa: replace FEATURE_point_size_array with FEATURE_ES define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/arrayobj.c |2 +- src/mesa/main/enable.c|4 ++-- src/mesa/main/ffvertex_prog.c |2 +- src/mesa/main/getstring.c |2 +- src/mesa/main/mfeatures.h |2 -- 5 files changed, 5 insertions(+), 7 deletions(-) diff

[Mesa-dev] [PATCH 18/45] mesa: replace FEATURE_texture_fxt1 with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/extensions.c |2 +- src/mesa/main/formats.c |2 +- src/mesa/main/mfeatures.h|1 - src/mesa/main/texcompress.c |2 +- src/mesa/main/texcompress_fxt1.c |4 ++-- src/mesa/main/texcompress_fxt1.h |6 +

[Mesa-dev] [PATCH 25/45] mesa: remove FEATURE_ARB_fragment_shader define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/extensions.c |4 src/mesa/main/mfeatures.h |3 +-- src/mesa/main/shaderapi.c |6 -- 3 files changed, 1 insertions(+), 12 deletions(-) diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index 795ccaf..07fabd

[Mesa-dev] [PATCH 16/45] mesa: replace FEATURE_queryobj with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/dlist.c | 10 +- src/mesa/main/extensions.c |2 +- src/mesa/main/mfeatures.h |1 - src/mesa/main/queryobj.c|4 ++-- src/mesa/main/queryobj.h|6 ++

[Mesa-dev] [PATCH 29/45] mesa: remove FEATURE_OES_EGL_image define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/drivers/dri/intel/intel_extensions.c |2 -- src/mesa/drivers/dri/intel/intel_fbo.c|5 - src/mesa/drivers/dri/intel/intel_tex_image.c |5 - src/mesa/drivers/dri/r200/r200_context.c |3 --- src/mesa/drivers/dri/radeon

[Mesa-dev] [PATCH 28/45] mesa: remove FEATURE_EXT_pixel_buffer_object define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/extensions.c |4 src/mesa/main/mfeatures.h |3 +-- src/mesa/main/pixelstore.c |6 -- 3 files changed, 1 insertions(+), 12 deletions(-) diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index 92cba41..5fca50

[Mesa-dev] [PATCH 22/45] mesa: replace FEATURE_es2_glsl with FEATURE_ES2 define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/api_validate.c |2 +- src/mesa/main/mfeatures.h|2 -- src/mesa/program/program.c |2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c index d0d2ca4..107e

[Mesa-dev] [PATCH 19/45] mesa: replace FEATURE_texture_s3tc with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/extensions.c |2 +- src/mesa/main/formats.c|2 +- src/mesa/main/mfeatures.h |2 -- src/mesa/main/texcompress.c|2 +- src/mesa/main/texcompress_s3tc.c |4 ++-- src/mesa/main/texcompress_s3tc

[Mesa-dev] [PATCH 27/45] mesa: remove FEATURE_EXT_framebuffer_object define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/drivers/dri/nouveau/nouveau_fbo.c |2 -- src/mesa/drivers/dri/radeon/radeon_fbo.c |2 -- src/mesa/main/api_exec.c |6 -- src/mesa/main/context.c|2 -- src/mesa/main/dlist.c

[Mesa-dev] [PATCH 20/45] mesa: remove unused FEATURE_extra_context_init define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/mfeatures.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/mesa/main/mfeatures.h b/src/mesa/main/mfeatures.h index 1cbeed6..b9e1c55 100644 --- a/src/mesa/main/mfeatures.h +++ b/src/mesa/main/mfeatures.h @@ -84,7 +84,6

[Mesa-dev] [PATCH 31/45] mesa: remove unused FEATURE_OES_framebuffer_object define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/mfeatures.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/mfeatures.h b/src/mesa/main/mfeatures.h index ab0ba7b..4653581 100644 --- a/src/mesa/main/mfeatures.h +++ b/src/mesa/main/mfeatures.h @@ -103,6 +103

[Mesa-dev] [PATCH 35/45] mesa: replace FEATURE_ARB_framebuffer_object with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/api_exec.c |2 +- src/mesa/main/extensions.c |4 ++-- src/mesa/main/mfeatures.h |1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/mesa/main/api_exec.c b/src/mesa/main/api_exec.c index 560052b..091d980 100644 --

[Mesa-dev] [PATCH 38/45] mesa: replace FEATURE_ARB_sampler_objects with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/api_exec.c |4 ++-- src/mesa/main/mfeatures.h |1 - src/mesa/main/shared.c|8 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/mesa/main/api_exec.c b/src/mesa/main/api_exec.c index 1816d93..74be12f 100644

[Mesa-dev] [PATCH 33/45] mesa: replace FEATURE_NV_(fragment|vertex)_program with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/api_exec.c |6 ++-- src/mesa/main/dlist.c | 30 ++-- src/mesa/main/enable.c| 24 +++--- src/mesa/main/extensions.c|6 ++--

[Mesa-dev] [PATCH 26/45] mesa: remove FEATURE_ARB_shader_objects and related defines.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/api_exec.c |6 -- src/mesa/main/context.c|4 src/mesa/main/extensions.c | 10 +- src/mesa/main/fbobject.c |2 -- src/mesa/main/getstring.c |2 -- src/mesa/main/mfeatures.h |3 --- src/mesa/main/shade

[Mesa-dev] [PATCH 24/45] mesa: remove FEATURE_ARB_vertex_shader define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/context.c|2 -- src/mesa/main/extensions.c |4 src/mesa/main/mfeatures.h |3 +-- src/mesa/main/shaderapi.c |9 + 4 files changed, 2 insertions(+), 16 deletions(-) diff --git a/src/mesa/main/context.c b/src/mesa/m

[Mesa-dev] [PATCH 30/45] mesa: remove unused FEATURE_OES_mapbuffer define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/mfeatures.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/mesa/main/mfeatures.h b/src/mesa/main/mfeatures.h index 38903bc..ab0ba7b 100644 --- a/src/mesa/main/mfeatures.h +++ b/src/mesa/main/mfeatures.h @@ -104,6 +104,

[Mesa-dev] [PATCH 36/45] mesa: replace FEATURE_ARB_map_buffer_range with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/api_exec.c |2 +- src/mesa/main/dlist.c |2 +- src/mesa/main/mfeatures.h |1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/api_exec.c b/src/mesa/main/api_exec.c index 091d980..1816d93 100644 --- a/s

[Mesa-dev] [PATCH 34/45] mesa: remove FEATURE_ARB_(fragment|vertex)_program defines.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/api_exec.c |6 -- src/mesa/main/context.c|5 + src/mesa/main/dlist.c | 20 src/mesa/main/enable.c |8 src/mesa/main/extensions.c | 12 src/mesa/main/getstring.c |

[Mesa-dev] [PATCH 37/45] mesa: replace FEATURE_ARB_pixel_buffer_object with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/context.c |2 +- src/mesa/main/mfeatures.h |1 - 2 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 57bd1a7..61a9aa1 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/m

[Mesa-dev] [PATCH 43/45] mesa: replace FEATURE_APPLE_object_purgeable with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/drivers/dri/intel/intel_buffer_objects.c |4 ++-- src/mesa/main/api_exec.c |2 +- src/mesa/main/bufferobj.c |4 ++-- src/mesa/main/bufferobj.h |2 +- src/mesa/main/

[Mesa-dev] [PATCH 42/45] mesa: replace FEATURE_EXT_transform_feedback with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/drivers/common/meta.c |6 +++--- src/mesa/main/api_validate.c |2 +- src/mesa/main/api_validate.h |2 +- src/mesa/main/bufferobj.c |2 +- src/mesa/main/dlist.c |4 ++-- src/me

[Mesa-dev] [PATCH 45/45] mesa: remove obsolete comments from mfeatures.h

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/mfeatures.h | 27 --- 1 files changed, 0 insertions(+), 27 deletions(-) diff --git a/src/mesa/main/mfeatures.h b/src/mesa/main/mfeatures.h index 36724bd..3162a0b 100644 --- a/src/mesa/main/mfeatures.h +++ b/src/mesa/main/

[Mesa-dev] [PATCH 32/45] mesa: remove unused FEATURE_NV_fence define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/mfeatures.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/mesa/main/mfeatures.h b/src/mesa/main/mfeatures.h index 4653581..d46906d 100644 --- a/src/mesa/main/mfeatures.h +++ b/src/mesa/main/mfeatures.h @@ -99,7 +99,6

[Mesa-dev] [PATCH 40/45] mesa: replace FEATURE_EXT_framebuffer_blit with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/drivers/dri/nouveau/nouveau_driver.c |2 +- src/mesa/drivers/dri/radeon/radeon_fbo.c |2 +- src/mesa/main/api_exec.c |2 +- src/mesa/main/dlist.c |6 +++--- src/mesa/main/extensions.c

[Mesa-dev] [PATCH 39/45] mesa: replace FEATURE_ARB_sync with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/extensions.c |2 +- src/mesa/main/get.c|8 src/mesa/main/mfeatures.h |2 -- src/mesa/main/syncobj.c|4 ++-- src/mesa/main/syncobj.h|6 +++--- 5 files changed, 10 insertions(+), 12 deletions(-) diff --g

[Mesa-dev] [PATCH 44/45] mesa: replace FEATURE_ATI_fragment_shader with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/atifragshader.c |4 ++-- src/mesa/main/atifragshader.h |6 +++--- src/mesa/main/dlist.c |8 src/mesa/main/enable.c|6 +++--- src/mesa/main/extensions.c|2 +- src/mesa/main/mfeatures.h |2 --

[Mesa-dev] [PATCH 41/45] mesa: replace FEATURE_EXT_texture_sRGB with FEATURE_GL define.

2012-09-11 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/extensions.c |4 ++-- src/mesa/main/formats.c|4 ++-- src/mesa/main/glformats.c |4 ++-- src/mesa/main/mfeatures.h |1 - src/mesa/main/texcompress.c|2 +- src/mesa/main/texcompress_s

[Mesa-dev] [Bug 54763] glCopyPixels dirties the context and all rendering is slower after that

2012-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54763 --- Comment #1 from Daniel van Vugt 2012-09-11 10:10:48 UTC --- I am using Intel Sandy Bridge HD 2000 by the way. I believe that means i965. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving t

[Mesa-dev] [PATCH 1/1] main: validate the type correctly against the OpenGL ES spec.

2012-09-11 Thread Oliver McFadden
Previously Mesa would validate UNSIGNED_INT successfully in violation of the OpenGL(R) ES 1.0 and 2.0 Specification. http://www.khronos.org/registry/gles/specs/1.1/es_full_spec_1.1.12.pdf http://www.khronos.org/registry/gles/specs/2.0/es_full_spec_2.0.25.pdf http://www.khronos.org/registry/gles/sp

[Mesa-dev] [Bug 54763] glCopyPixels dirties the context and all rendering is slower after that

2012-09-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54763 --- Comment #2 from Michel Dänzer 2012-09-11 13:32:24 UTC --- (In reply to comment #2) > I call glCopyPixels a couple of times briefly on startup and then never again. > The problem is that doing this makes all subsequent rendering much slower.

Re: [Mesa-dev] [PATCH 1/1] main: validate the type correctly against the OpenGL ES spec.

2012-09-11 Thread Brian Paul
On 09/11/2012 06:09 AM, Oliver McFadden wrote: Previously Mesa would validate UNSIGNED_INT successfully in violation of the OpenGL(R) ES 1.0 and 2.0 Specification. http://www.khronos.org/registry/gles/specs/1.1/es_full_spec_1.1.12.pdf http://www.khronos.org/registry/gles/specs/2.0/es_full_spec_2

Re: [Mesa-dev] [PATCH 00/45] Remove many of the FEATURE_* defines.

2012-09-11 Thread Brian Paul
On 09/11/2012 03:56 AM, Oliver McFadden wrote: Hi, As requested here is the patch series which removes many of the FEATURE_* defines, typically used to enable or disable some GL feature or extension. I have ran this series through automatic git-bisect with a script to compile Mesa. The series i

[Mesa-dev] [PATCH] radeonsi: Handle position input parameter for pixel shaders v2

2012-09-11 Thread Tom Stellard
From: Tom Stellard v2: - Don't increment ninterp or set any of the have_* flags for TGSI_SEMANTIC_POSITION --- src/gallium/drivers/radeon/SIInstructions.td | 20 src/gallium/drivers/radeon/SIIntrinsics.td |2 ++ src/gallium/drivers/radeonsi/radeonsi_shader.

Re: [Mesa-dev] [PATCH] radeonsi: Handle position input parameter for pixel shaders v2

2012-09-11 Thread Michel Dänzer
On Die, 2012-09-11 at 10:01 -0400, Tom Stellard wrote: > From: Tom Stellard > > v2: > - Don't increment ninterp or set any of the have_* flags for > TGSI_SEMANTIC_POSITION Reviewed-by: Michel Dänzer -- Earthling Michel Dänzer | http://www.amd.com Libre soft

Re: [Mesa-dev] [PATCH 1/2] _mesa_meta_GenerateMipmap: Support all texture targets by generating shaders at runtime

2012-09-11 Thread Brian Paul
On 09/11/2012 01:56 AM, Ian Romanick wrote: On 09/05/2012 05:42 AM, Anuj Phogat wrote: glsl path of _mesa_meta_GenerateMipmap() function would require different fragment shaders depending on the texture target. This patch adds the code to generate appropriate fragment shader programs at run time

Re: [Mesa-dev] [PATCH] mesa/es: Define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT enum for all GLs

2012-09-11 Thread Kenneth Graunke
On 09/11/2012 02:14 AM, Tomeu Vizoso wrote: > instead of just for GL and ES1. > --- > src/mesa/main/get.c | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c > index 24d2a18..e40569d 100644 > --- a/src/mesa/main/get.c > +++

Re: [Mesa-dev] [PATCH] glsl: Generate compile errors for explicit blend indices < 0 or > 1.

2012-09-11 Thread Paul Berry
On 11 September 2012 00:40, Ian Romanick wrote: > On 09/11/2012 03:06 AM, Paul Berry wrote: > >> On 31 August 2012 16:04, Kenneth Graunke > **> wrote: >> >> According to the GLSL 4.30 specification, this is a compile time >> error. >> Earlier specifications d

Re: [Mesa-dev] [PATCH v2 01/12] mesa: glGet: fix indentation of _mesa_init_get_hash

2012-09-11 Thread Brian Paul
On 09/10/2012 12:41 AM, Imre Deak wrote: No functional change. Signed-off-by: Imre Deak --- src/mesa/main/get.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 24d2a18..57457ef 100644 --- a/src/mesa/main/

Re: [Mesa-dev] [PATCH v2 02/12] mesa: glGet: fix indentation of find_value

2012-09-11 Thread Brian Paul
On 09/10/2012 12:41 AM, Imre Deak wrote: No functional change. Signed-off-by: Imre Deak --- src/mesa/main/get.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 57457ef..bb0b619 100644 --- a/src/mesa/main/get.c +++

Re: [Mesa-dev] [PATCH v2 03/12] mesa: glGet: fix indentation of print_table_stats

2012-09-11 Thread Brian Paul
On 09/10/2012 12:41 AM, Imre Deak wrote: No functional change. Signed-off-by: Imre Deak --- src/mesa/main/get.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index bb0b619..ce5af04 100644 --- a/src/mesa/main/

Re: [Mesa-dev] [PATCH v2 04/12] mesa: glGet: fix API check for EGL_image_external enums

2012-09-11 Thread Brian Paul
On 09/10/2012 12:41 AM, Imre Deak wrote: These enums are valid only in ES1 and ES2. So far they were marked valid incorrectly, depending on the previous API mask in the enum list. Signed-off-by: Imre Deak --- src/mesa/main/get.c | 15 +-- 1 file changed, 9 insertions(+), 6 delet

Re: [Mesa-dev] [PATCH] mesa/es: Define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT enum for all GLs

2012-09-11 Thread Tomeu Vizoso
On Tue, Sep 11, 2012 at 5:00 PM, Kenneth Graunke > > > Reviewed-by: Kenneth Graunke Could you please push it for me? I'm not a committer yet. Forgot to add my s-o-b to the commit: Signed-off-by: Tomeu Vizoso Thanks, Tomeu ___ mesa-dev mailing list

Re: [Mesa-dev] [PATCH v2 06/12] mesa: glGet: fix parameter lookup for apps using multiple APIs

2012-09-11 Thread Brian Paul
On 09/10/2012 12:41 AM, Imre Deak wrote: The glGet hash was initialized only once for a single GL API, even if the application later created a context for a different API. This resulted in glGet failing for otherwise valid parameters in a context if that parameter was invalid in another context c

Re: [Mesa-dev] [PATCH v2 07/12] mesa: glGet: simplify the 'enum not found' condition

2012-09-11 Thread Brian Paul
On 09/10/2012 12:41 AM, Imre Deak wrote: When traversing the hash table looking up an enum that is invalid we eventually reach the first element in the descriptor array. By looking at the type of that element, which is always TYPE_API_MASK, we know that we can stop the search and return error. Si

Re: [Mesa-dev] [PATCH 00/45] Remove many of the FEATURE_* defines.

2012-09-11 Thread Oliver McFadden
On Tue, Sep 11, 2012 at 07:59:38AM -0600, Brian Paul wrote: > On 09/11/2012 03:56 AM, Oliver McFadden wrote: > > Hi, > > > > As requested here is the patch series which removes many of the FEATURE_* > > defines, typically used to enable or disable some GL feature or extension. > > I have ran this s

Re: [Mesa-dev] [PATCH 1/1] main: validate the type correctly against the OpenGL ES spec.

2012-09-11 Thread Oliver McFadden
On Tue, Sep 11, 2012 at 07:54:36AM -0600, Brian Paul wrote: > On 09/11/2012 06:09 AM, Oliver McFadden wrote: > > Previously Mesa would validate UNSIGNED_INT successfully in violation of > > the OpenGL(R) ES 1.0 and 2.0 Specification. > > > > http://www.khronos.org/registry/gles/specs/1.1/es_full_sp

Re: [Mesa-dev] [PATCH v2 07/12] mesa: glGet: simplify the 'enum not found' condition

2012-09-11 Thread Kristian Høgsberg
On Tue, Sep 11, 2012 at 11:47 AM, Brian Paul wrote: > On 09/10/2012 12:41 AM, Imre Deak wrote: >> >> When traversing the hash table looking up an enum that is invalid we >> eventually reach the first element in the descriptor array. By looking >> at the type of that element, which is always TYPE_A

Re: [Mesa-dev] [PATCH 00/19] r600g refactoring and cleanups

2012-09-11 Thread Jerome Glisse
On Mon, Sep 10, 2012 at 7:16 PM, Marek Olšák wrote: > Nothing too exciting. Besides cleanups, there are fine-grained sampler state > updates (it emits only the samplers which changed), support for geometry > shader resources (because it was easy; I am not working on GS right now), > atomization

Re: [Mesa-dev] [PATCH 19/19] r600g: convert the remnants of VGT state into immediate register writes

2012-09-11 Thread Jerome Glisse
On Mon, Sep 10, 2012 at 7:16 PM, Marek Olšák wrote: NAK this one introduce lockup. As i said in another email register group/order matter and with this patch i get 100% lockup rate in some test case for instance the test case i reference in my other email > --- > src/gallium/drivers/r600/evergr

Re: [Mesa-dev] [PATCH 19/19] r600g: convert the remnants of VGT state into immediate register writes

2012-09-11 Thread Marek Olšák
Please provide information about the GPU and the test which locks up. I'd like to reproduce it. Also please explain what's the cause of the lockup if you know it (which registers are not emitted in the correct order and how it can fixed). Marek On Tue, Sep 11, 2012 at 6:48 PM, Jerome Glisse wrot

Re: [Mesa-dev] [PATCH v2 07/12] mesa: glGet: simplify the 'enum not found' condition

2012-09-11 Thread Brian Paul
On 09/11/2012 10:36 AM, Kristian Høgsberg wrote: On Tue, Sep 11, 2012 at 11:47 AM, Brian Paul wrote: On 09/10/2012 12:41 AM, Imre Deak wrote: When traversing the hash table looking up an enum that is invalid we eventually reach the first element in the descriptor array. By looking at the type

Re: [Mesa-dev] [PATCH 1/1] main: validate the type correctly against the OpenGL ES spec.

2012-09-11 Thread Brian Paul
On 09/11/2012 10:21 AM, Oliver McFadden wrote: On Tue, Sep 11, 2012 at 07:54:36AM -0600, Brian Paul wrote: On 09/11/2012 06:09 AM, Oliver McFadden wrote: Previously Mesa would validate UNSIGNED_INT successfully in violation of the OpenGL(R) ES 1.0 and 2.0 Specification. http://www.khronos.org/

Re: [Mesa-dev] [PATCH 19/19] r600g: convert the remnants of VGT state into immediate register writes

2012-09-11 Thread Jerome Glisse
On Tue, Sep 11, 2012 at 1:10 PM, Marek Olšák wrote: > Please provide information about the GPU and the test which locks up. I'd > like to reproduce it. Also please explain what's the cause of the > lockup if you know it (which registers are not emitted in the correct > order and how it can fixed).

Re: [Mesa-dev] [PATCH 19/19] r600g: convert the remnants of VGT state into immediate register writes

2012-09-11 Thread Marek Olšák
On Tue, Sep 11, 2012 at 7:41 PM, Jerome Glisse wrote: > On Tue, Sep 11, 2012 at 1:10 PM, Marek Olšák wrote: >> Please provide information about the GPU and the test which locks up. I'd >> like to reproduce it. Also please explain what's the cause of the >> lockup if you know it (which registers a

Re: [Mesa-dev] [PATCH] mesa: fix GL_LUMINANCE handling in glGetTexImage

2012-09-11 Thread Anuj Phogat
On Mon, Sep 10, 2012 at 6:35 PM, Brian Paul wrote: > On Mon, Sep 10, 2012 at 3:16 PM, Anuj Phogat wrote: >> On Thu, Mar 8, 2012 at 7:19 PM, Brian Paul wrote: >>> There are several cases in which we need to explicity "rebase" colors >>> (ex: set G=B=0) when getting GL_LUMINANCE textures: >>> 1. I

Re: [Mesa-dev] [PATCH 19/19] r600g: convert the remnants of VGT state into immediate register writes

2012-09-11 Thread Jerome Glisse
On Tue, Sep 11, 2012 at 2:29 PM, Marek Olšák wrote: > On Tue, Sep 11, 2012 at 7:41 PM, Jerome Glisse wrote: >> On Tue, Sep 11, 2012 at 1:10 PM, Marek Olšák wrote: >>> Please provide information about the GPU and the test which locks up. I'd >>> like to reproduce it. Also please explain what's th

[Mesa-dev] [PATCH] intel: Improve teximage perf for Google Chrome paint rects

2012-09-11 Thread Chad Versace
This patch adds a new fast path for glTexImage2D and glTexSubImage2D, intel_texsubimage_tiled_memcpy, which is optimized for Google Chrome's paint rectangles. The fast path is implemented only for 2D GL_BGRA textures on gen >= 6. Reduces the time spent in glTexImage and glTexSubImage by roughly 3x

Re: [Mesa-dev] [PATCH 1/2] _mesa_meta_GenerateMipmap: Support all texture targets by generating shaders at runtime

2012-09-11 Thread Anuj Phogat
On Tue, Sep 11, 2012 at 12:56 AM, Ian Romanick wrote: > On 09/05/2012 05:42 AM, Anuj Phogat wrote: >> >> glsl path of _mesa_meta_GenerateMipmap() function would require different >> fragment >> shaders depending on the texture target. This patch adds the code to >> generate >> appropriate fragment

Re: [Mesa-dev] [PATCH 19/19] r600g: convert the remnants of VGT state into immediate register writes

2012-09-11 Thread Jerome Glisse
On Tue, Sep 11, 2012 at 3:00 PM, Jerome Glisse wrote: > On Tue, Sep 11, 2012 at 2:29 PM, Marek Olšák wrote: >> On Tue, Sep 11, 2012 at 7:41 PM, Jerome Glisse wrote: >>> On Tue, Sep 11, 2012 at 1:10 PM, Marek Olšák wrote: Please provide information about the GPU and the test which locks up.

Re: [Mesa-dev] [PATCH] intel: Improve teximage perf for Google Chrome paint rects

2012-09-11 Thread Matt Turner
On Tue, Sep 11, 2012 at 12:04 PM, Chad Versace wrote: > + * This is a performance win over the conventional texture upload path > because > + * it avoids the performance penalty of writing throuh the write-combine "through" Very cool work. ___ mesa-de

Re: [Mesa-dev] [PATCH] intel: Improve teximage perf for Google Chrome paint rects

2012-09-11 Thread Daniel Vetter
Only quick read-through but I'd have expected a has_llc check in there - if vlv is anything like the previous platforms wc gtt will be much faster there. -Daniel On Tue, Sep 11, 2012 at 9:04 PM, Chad Versace wrote: > This patch adds a new fast path for glTexImage2D and glTexSubImage2D, > intel_te

Re: [Mesa-dev] [PATCH 19/19] r600g: convert the remnants of VGT state into immediate register writes

2012-09-11 Thread Jerome Glisse
On Tue, Sep 11, 2012 at 2:29 PM, Marek Olšák wrote: > On Tue, Sep 11, 2012 at 7:41 PM, Jerome Glisse wrote: >> On Tue, Sep 11, 2012 at 1:10 PM, Marek Olšák wrote: >>> Please provide information about the GPU and the test which locks up. I'd >>> like to reproduce it. Also please explain what's th

[Mesa-dev] [PATCH] radeon/llvm: reserve also corresponding 128bits reg

2012-09-11 Thread Vincent Lejeune
--- src/gallium/drivers/radeon/R600RegisterInfo.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/radeon/R600RegisterInfo.cpp b/src/gallium/drivers/radeon/R600RegisterInfo.cpp index ef6bf87..4096cb0 100644 --- a/src/gallium/drivers/radeon/R600RegisterInfo.cpp +++ b/src/g

[Mesa-dev] [PATCH] radeon/llvm: support for vectorised select

2012-09-11 Thread Vincent Lejeune
Conflicts: src/gallium/drivers/radeon/R600ISelLowering.cpp --- src/gallium/drivers/radeon/R600ISelLowering.cpp | 13 + src/gallium/drivers/radeon/R600ISelLowering.h | 2 ++ 2 files changed, 15 insertions(+) diff --git a/src/gallium/drivers/radeon/R600ISelLowering.cpp b/src

Re: [Mesa-dev] [PATCH] radeon/llvm: support for vectorised select

2012-09-11 Thread Matt Turner
On Tue, Sep 11, 2012 at 1:34 PM, Vincent Lejeune wrote: > Conflicts: > src/gallium/drivers/radeon/R600ISelLowering.cpp > --- There shouldn't be messages like this in the commit log for individual patches. ___ mesa-dev mailing list mesa-dev@lists

[Mesa-dev] [RFC] glsl-to-llvm

2012-09-11 Thread Vincent
Hi, I'm currently working on a glsl to llvm pass that generates LLVM IR from glsl tree for drivers that ships with a LLVM backend. The current code is located here : http://cgit.freedesktop.org/~vlj/mesa in branch glsl-to-llvm3. It is still a work in progress (I'm not fully satisfied by some facto

Re: [Mesa-dev] [PATCH] i965: Allow primitive restart on Haswell for additional primitive types.

2012-09-11 Thread Paul Berry
On 7 September 2012 13:04, Kenneth Graunke wrote: > These are supported in hardware; no need for software fallbacks. > > Not actually hit in any of our test cases, since they appear to count > primitives generated which currently causes software fallbacks anyway. > How much effort would it be to

Re: [Mesa-dev] [PATCH v2 01/12] mesa: glGet: fix indentation of _mesa_init_get_hash

2012-09-11 Thread Imre Deak
On Tue, 2012-09-11 at 09:30 -0600, Brian Paul wrote: > On 09/10/2012 12:41 AM, Imre Deak wrote: > > No functional change. > > > > Signed-off-by: Imre Deak > > --- > > src/mesa/main/get.c | 18 +- > > 1 file changed, 9 insertions(+), 9 deletions(-) > > > > diff --git a/src/mesa/

Re: [Mesa-dev] [PATCH v2 04/12] mesa: glGet: fix API check for EGL_image_external enums

2012-09-11 Thread Imre Deak
On Tue, 2012-09-11 at 09:32 -0600, Brian Paul wrote: > On 09/10/2012 12:41 AM, Imre Deak wrote: > > These enums are valid only in ES1 and ES2. So far they were marked valid > > incorrectly, depending on the previous API mask in the enum list. > > > > Signed-off-by: Imre Deak > > --- > > src/mesa/

Re: [Mesa-dev] [PATCH v2 06/12] mesa: glGet: fix parameter lookup for apps using multiple APIs

2012-09-11 Thread Imre Deak
On Tue, 2012-09-11 at 09:40 -0600, Brian Paul wrote: > On 09/10/2012 12:41 AM, Imre Deak wrote: > > The glGet hash was initialized only once for a single GL API, even if > > the application later created a context for a different API. This > > resulted in glGet failing for otherwise valid parameter

Re: [Mesa-dev] [PATCH v2 07/12] mesa: glGet: simplify the 'enum not found' condition

2012-09-11 Thread Imre Deak
On Tue, 2012-09-11 at 09:47 -0600, Brian Paul wrote: > On 09/10/2012 12:41 AM, Imre Deak wrote: > > When traversing the hash table looking up an enum that is invalid we > > eventually reach the first element in the descriptor array. By looking > > at the type of that element, which is always TYPE_A

Re: [Mesa-dev] [PATCH] i965: Allow primitive restart on Haswell for additional primitive types.

2012-09-11 Thread Kenneth Graunke
On 09/11/2012 02:53 PM, Paul Berry wrote: > On 7 September 2012 13:04, Kenneth Graunke > wrote: > > These are supported in hardware; no need for software fallbacks. > > Not actually hit in any of our test cases, since they appear to count > primitives ge

Re: [Mesa-dev] [PATCH v2 01/12] mesa: glGet: fix indentation of _mesa_init_get_hash

2012-09-11 Thread Brian Paul
On 09/11/2012 03:55 PM, Imre Deak wrote: On Tue, 2012-09-11 at 09:30 -0600, Brian Paul wrote: On 09/10/2012 12:41 AM, Imre Deak wrote: No functional change. Signed-off-by: Imre Deak --- src/mesa/main/get.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --

[Mesa-dev] [PATCH 1/2] mesa: Ignore SRGB when determining compatible resolve formats.

2012-09-11 Thread Kenneth Graunke
MSAA resolves and other blit-like operations ignore SRGB state anyway, so we should be able to safely allow resolves between compatible SRGB/linear formats like SRGBA8 and RGBA. Fixes completely black rendering when using multisampling in L4D2. NOTE: This is a candidate for the 9.0 branch. C

  1   2   >