[Mesa-dev] is there mesa benchmark tool at home

2012-07-05 Thread chris
I am a developer on Linux, I found my mesa 8.0 built in my ubuntu not work properly. My card is NVidia GT73 card. Many glapis are executed with no result or error result, such as GenFramebufferEXT, eglBindTexImage. Is there any benchmark tool released with mesa project that can check if mesa su

Re: [Mesa-dev] is there mesa benchmark tool at home

2012-07-05 Thread Michel Dänzer
On Don, 2012-07-05 at 16:18 +0800, chris wrote: > I am a developer on Linux, I found my mesa 8.0 built in my ubuntu not > work properly. My card is NVidia GT73 card. Many glapis are executed > with no result or error result, such as GenFramebufferEXT, > eglBindTexImage. > Is there any benchmark

[Mesa-dev] [PATCH 00/10] ARB_transform_feedback3 & ARB_transform_feedback_instanced

2012-07-05 Thread Marek Olšák
Hi everyone, the title says it all. These are the remaining transform feedback extensions from GL4. Nothing needs to be done for this in drivers, provided they fully implement the internal interfaces. This doesn't add support for multiple vertex streams. It seems like ARB_transform_feedback3 a

[Mesa-dev] [PATCH 01/10] glapi: add ARB_transform_feedback3

2012-07-05 Thread Marek Olšák
--- src/mapi/glapi/gen/gl_API.xml | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index af74c90..a1a28d0 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xm

[Mesa-dev] [PATCH 02/10] glapi: add ARB_transform_feedback_instanced

2012-07-05 Thread Marek Olšák
--- src/mapi/glapi/gen/gl_API.xml | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index a1a28d0..575414a 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -8024,7

[Mesa-dev] [PATCH 03/10] glsl: implement ARB_transform_feedback3 in the linker

2012-07-05 Thread Marek Olšák
--- src/glsl/linker.cpp| 119 ++-- src/mesa/main/extensions.c |1 + src/mesa/main/mtypes.h |1 + 3 files changed, 106 insertions(+), 15 deletions(-) diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index 3109447..f06298c 100644 --

[Mesa-dev] [PATCH 04/10] mesa: implement glGet queries and error handling for ARB_transform_feedback3

2012-07-05 Thread Marek Olšák
--- src/mesa/main/context.c |1 + src/mesa/main/get.c |9 + src/mesa/main/mtypes.h|1 + src/mesa/main/transformfeedback.c | 32 4 files changed, 43 insertions(+) diff --git a/src/mesa/main/context.c b/src/m

[Mesa-dev] [PATCH 05/10] mesa: implement indexed query functions from ARB_transform_feedback3

2012-07-05 Thread Marek Olšák
--- src/mesa/main/queryobj.c | 81 +- 1 file changed, 66 insertions(+), 15 deletions(-) diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c index f0a9a79..c6c85e0 100644 --- a/src/mesa/main/queryobj.c +++ b/src/mesa/main/queryobj.c @@ -26

[Mesa-dev] [PATCH 06/10] mesa: implement display list support for indexed query functions

2012-07-05 Thread Marek Olšák
--- src/mesa/main/dlist.c | 48 +++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c index a0d84cf..0b7caab 100644 --- a/src/mesa/main/dlist.c +++ b/src/mesa/main/dlist.c @@ -469,6 +469,10 @@

[Mesa-dev] [PATCH 07/10] mesa: implement display list support for new DrawTransformFeedback functions

2012-07-05 Thread Marek Olšák
--- src/mesa/main/dd.h|8 + src/mesa/main/dlist.c | 77 + 2 files changed, 85 insertions(+) diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index 687a38f..849108f 100644 --- a/src/mesa/main/dd.h +++ b/src/mesa/main/dd.h @@ -1046,6

[Mesa-dev] [PATCH 08/10] mesa: implement new DrawTransformFeedback functions

2012-07-05 Thread Marek Olšák
--- src/mesa/main/api_validate.c | 26 + src/mesa/main/api_validate.h |4 ++- src/mesa/main/vtxfmt.c|5 src/mesa/vbo/vbo_exec_array.c | 62 + src/mesa/vbo/vbo_save_api.c | 45 +- 5 fi

[Mesa-dev] [PATCH 10/10] st/mesa: expose new transform feedback extensions

2012-07-05 Thread Marek Olšák
--- src/mesa/state_tracker/st_extensions.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 6fea1fa..574ffa4 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extens

[Mesa-dev] [PATCH 09/10] mesa: add ARB_transform_feedback_instanced extension enable flag

2012-07-05 Thread Marek Olšák
--- src/mesa/main/extensions.c |1 + src/mesa/main/mtypes.h |1 + 2 files changed, 2 insertions(+) diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index 4833f13..24365d3 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -141,6 +141,7 @@ s

[Mesa-dev] [Bug 51749] New: make[6]: ../../../../src/mesa/Makefile.old: No such file or directory

2012-07-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=51749 Bug #: 51749 Summary: make[6]: ../../../../src/mesa/Makefile.old: No such file or directory Classification: Unclassified Product: Mesa Version: git Platform: x86 (IA32

Re: [Mesa-dev] [PATCH 00/10] ARB_transform_feedback3 & ARB_transform_feedback_instanced

2012-07-05 Thread Brian Paul
On Thu, Jul 5, 2012 at 5:20 AM, Marek Olšák wrote: > Hi everyone, > > the title says it all. These are the remaining transform feedback extensions > from GL4. Nothing needs to be done for this in drivers, provided they fully > implement the internal interfaces. > > This doesn't add support for m

Re: [Mesa-dev] [PATCH 2/3] glsl_to_tgsi: follow SHADER_CAP_INTEGERS with per-stage granularity

2012-07-05 Thread Brian Paul
On Tue, Jul 3, 2012 at 6:35 PM, Marek Olšák wrote: > Some drivers support integers only in vertex shaders (e.g. those which use > Draw). > > Const.NativeIntegers is now useless for Gallium. > --- > src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 28 > ++-- > 1 files change

Re: [Mesa-dev] [PATCH 3/3] st/mesa: only expose ARB_shader_bit_encoding with GLSL 1.3

2012-07-05 Thread Brian Paul
On Tue, Jul 3, 2012 at 6:35 PM, Marek Olšák wrote: > I don't think it's possible or even useful to use the extension with GLSL 1.2. > --- > src/mesa/state_tracker/st_extensions.c |5 + > 1 files changed, 1 insertions(+), 4 deletions(-) > > diff --git a/src/mesa/state_tracker/st_extensions

Re: [Mesa-dev] [PATCH] Add emacs setup for the docs/devinfo.html comment wrapping recommendation.

2012-07-05 Thread Brian Paul
On 07/04/2012 03:28 PM, Eric Anholt wrote: --- .dir-locals.el |1 + 1 file changed, 1 insertion(+) diff --git a/.dir-locals.el b/.dir-locals.el index 3bd8328..4f0ad7a 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -3,6 +3,7 @@ (tab-width . 8) (c-basic-offset . 3) (c-file-

[Mesa-dev] [PATCH 1/4] intel: Remove unused __DRIimage::data_type field

2012-07-05 Thread Kristian Høgsberg
Signed-off-by: Kristian Høgsberg --- src/mesa/drivers/dri/intel/intel_regions.h |1 - src/mesa/drivers/dri/intel/intel_screen.c | 12 2 files changed, 13 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_regions.h b/src/mesa/drivers/dri/intel/intel_regions.h index 2

[Mesa-dev] [PATCH 2/4] intel: Just look up image->internal_format using _mesa_get_format_base_format

2012-07-05 Thread Kristian Høgsberg
--- src/mesa/drivers/dri/intel/intel_screen.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index 1cbd249..5fc56f7 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c +++

[Mesa-dev] [PATCH 3/4] intel: Share common __DRIimage allocation code

2012-07-05 Thread Kristian Høgsberg
We have the same switch and allocation code in two places. Signed-off-by: Kristian Høgsberg --- src/mesa/drivers/dri/intel/intel_screen.c | 59 ++--- 1 file changed, 19 insertions(+), 40 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/dr

[Mesa-dev] [PATCH 4/4] egl_dri2: Reorganize the EGLImage constructors to share more code

2012-07-05 Thread Kristian Høgsberg
We factor out all the EGL book-keeping into dri2_create_image() and simplify the wayland case by using dupImage. Signed-off-by: Kristian Høgsberg --- src/egl/drivers/dri2/egl_dri2.c | 115 +-- 1 file changed, 37 insertions(+), 78 deletions(-) diff --git a/sr

Re: [Mesa-dev] Mesa (master): GLES2: upgrade gl2ext.h to version 16994.

2012-07-05 Thread Ian Romanick
On 07/03/2012 04:58 PM, Kristian Høgsberg wrote: On Wed, Jul 04, 2012 at 01:48:18AM +0200, Marek Olšák wrote: On Wed, Jul 4, 2012 at 12:40 AM, Brian Paul wrote: On 07/03/2012 02:23 PM, Kristian Høgsberg wrote: Module: Mesa Branch: master Commit: 8818b88748bde6de5a4a98ad237c85151b44c774 URL:

Re: [Mesa-dev] Mesa (master): GLES2: upgrade gl2ext.h to version 16994.

2012-07-05 Thread Kristian Høgsberg
On Thu, Jul 5, 2012 at 12:07 PM, Ian Romanick wrote: > On 07/03/2012 04:58 PM, Kristian Høgsberg wrote: >> >> On Wed, Jul 04, 2012 at 01:48:18AM +0200, Marek Olšák wrote: >>> >>> On Wed, Jul 4, 2012 at 12:40 AM, Brian Paul wrote: On 07/03/2012 02:23 PM, Kristian Høgsberg wrote: > >>

Re: [Mesa-dev] i965: backend optimizations, FS bugfixes

2012-07-05 Thread Kenneth Graunke
On 07/04/2012 02:31 PM, Eric Anholt wrote: > The first 3 patches are to reduce compile time and object size by avoiding c++ > inlining I forced due to my laziness when originally typing these files. > > The last 2 are bugfixes for the FS that I noticed while working on the texture > grf code. It

Re: [Mesa-dev] [PATCH 1/4] intel: Remove unused __DRIimage::data_type field

2012-07-05 Thread Kenneth Graunke
On 07/05/2012 08:54 AM, Kristian Høgsberg wrote: > Signed-off-by: Kristian Høgsberg > --- > src/mesa/drivers/dri/intel/intel_regions.h |1 - > src/mesa/drivers/dri/intel/intel_screen.c | 12 > 2 files changed, 13 deletions(-) Patches 1-3 are Reviewed-by: Kenneth Graunke I'm

Re: [Mesa-dev] [PATCH] Always build shared glapi

2012-07-05 Thread Ian Romanick
On 07/04/2012 10:28 PM, Homer Hsing wrote: On Sun, Jan 22, 2012 at 9:09 AM, Jon TURNEY wrote: On 11/01/2012 23:37, Matt Turner wrote: No one on IRC knows why an unshared glapi is useful. It looks like this change stops OSMesa from builing on cygwin (See [1]) I think this is because we ne

Re: [Mesa-dev] [PATCH 01/18] glsl: Take advantage of the layout qualifier flags union to clean up parsing.

2012-07-05 Thread Ian Romanick
On 07/02/2012 05:38 PM, Eric Anholt wrote: The got_one variable was set iff one of the bits in flags.i was set. --- src/glsl/glsl_parser.yy | 31 ++- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy i

Re: [Mesa-dev] [PATCH 1/4] intel: Remove unused __DRIimage::data_type field

2012-07-05 Thread Kristian Høgsberg
On Thu, Jul 5, 2012 at 1:17 PM, Kenneth Graunke wrote: > On 07/05/2012 08:54 AM, Kristian Høgsberg wrote: >> Signed-off-by: Kristian Høgsberg >> --- >> src/mesa/drivers/dri/intel/intel_regions.h |1 - >> src/mesa/drivers/dri/intel/intel_screen.c | 12 >> 2 files changed, 13 d

Re: [Mesa-dev] [PATCH 01/18] glsl: Take advantage of the layout qualifier flags union to clean up parsing.

2012-07-05 Thread Eric Anholt
Ian Romanick writes: > On 07/02/2012 05:38 PM, Eric Anholt wrote: >> The got_one variable was set iff one of the bits in flags.i was set. >> --- >> src/glsl/glsl_parser.yy | 31 ++- >> 1 file changed, 6 insertions(+), 25 deletions(-) >> >> diff --git a/src/glsl/gl

[Mesa-dev] [Bug 51629] [swrast] piglit fbo-1d regression

2012-07-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=51629 Marek Olšák changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

Re: [Mesa-dev] More UBOs: std140 layout test works.

2012-07-05 Thread Ian Romanick
On 07/02/2012 05:38 PM, Eric Anholt wrote: Here's a new pile of UBO stuff. It gets things through the linker and answers some more API queries. It doesn't include the driver backend yet. I have some WIP code that's getting a lot of rendering to work, so I'm pretty convinced that this chunk of

[Mesa-dev] [PATCH 1/8] __DRIimage: version 5, add new formats and createSubImage

2012-07-05 Thread Kristian Høgsberg
The additions in version 5 enables creating EGLImages for different planes of a YUV buffer. createImageFromName is still used to create the containing __DRIimage, and createSubImage can then be used no that __DRIimage to create __DRIimages that correspond to the y, u, and v planes (__DRI_IMAGE_FOR

[Mesa-dev] [PATCH 2/8] intel: Add support for new __DRIimage formats

2012-07-05 Thread Kristian Høgsberg
--- src/mesa/drivers/dri/intel/intel_screen.c | 16 1 file changed, 16 insertions(+) diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index 2b70aa4..6b6ddec 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c +++ b/src/mesa/

[Mesa-dev] [PATCH 3/8] intel: Add offset field to miptree

2012-07-05 Thread Kristian Høgsberg
This lets us specify an offset into the bo where the miptree starts, which will let us set up a texture for a single plane in a planar buffer. Signed-off-by: Kristian Høgsberg --- src/mesa/drivers/dri/i915/i915_texstate.c |2 +- src/mesa/drivers/dri/i965/brw_wm_surface_state.c |

[Mesa-dev] [PATCH 4/8] intel: Implement __DRIimage::createSubImage and bump supported version to 5

2012-07-05 Thread Kristian Høgsberg
We use the new miptree offset to pick out the sub-image when we bind the EGLImage to a texture. Signed-off-by: Kristian Høgsberg --- src/mesa/drivers/dri/intel/intel_regions.h |1 + src/mesa/drivers/dri/intel/intel_screen.c| 36 -- src/mesa/drivers/dri/intel/i

[Mesa-dev] [PATCH 5/8] wayland-drm: Pass struct wl_drm_buffer to the driver

2012-07-05 Thread Kristian Høgsberg
We're going to extend this to support multi-plane buffers, so pass this to the driver so it can access the details. --- src/egl/drivers/dri2/egl_dri2.c| 33 +--- src/egl/wayland/wayland-drm/wayland-drm.c | 19 +++ src/egl/wayland/wayland-drm

[Mesa-dev] [PATCH 6/8] wayland-drm: Add protocol to create planar buffers

2012-07-05 Thread Kristian Høgsberg
--- src/egl/drivers/dri2/egl_dri2.c|8 +- .../wayland/wayland-drm/protocol/wayland-drm.xml | 16 src/egl/wayland/wayland-drm/wayland-drm.c | 77 +++- src/egl/wayland/wayland-drm/wayland-drm.h |5 +- .../egl/common/native_wayl

[Mesa-dev] [PATCH 7/8] egl: Add EGL_WAYLAND_PLANE_WL attribute

2012-07-05 Thread Kristian Høgsberg
This lets us specify the plane to create the image for for multiplanar wl_buffers. Signed-off-by: Kristian Høgsberg --- docs/WL_bind_wayland_display.spec | 16 +-- include/EGL/eglmesaext.h |1 + src/egl/drivers/dri2/egl_dri2.c | 86 ++--- sr

[Mesa-dev] [PATCH 8/8] egl_dri2: Set content type for wl_buffer

2012-07-05 Thread Kristian Høgsberg
This lets the compositor know about the structure of the wl_buffer, namely which planes and components are available and in which order. --- src/egl/drivers/dri2/egl_dri2.c |4 1 file changed, 4 insertions(+) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c

[Mesa-dev] [PATCH] mesa: Require current libxcb.

2012-07-05 Thread Eric Anholt
Without that, people with buggy apps that looked at just the server string for GLX_ARB_create_context would call this function that just threw an error when you tried to make a context. Google shows plenty of complaints about this. --- configure.ac | 21 + src/g

[Mesa-dev] [PATCH 0/4] Update to GL_ARB_timer_query

2012-07-05 Thread Marek Olšák
Hi everyone, this series is a follow-up to the previous one sent on June 27. Here's only what's changed. All commits are here: http://cgit.freedesktop.org/~mareko/mesa/log/?h=timer-query Change log: - reimplemented glGet(GL_TIMESTAMP) as per Eric Anholt's comment - updated all gallium patches -

[Mesa-dev] [PATCH 1/4] mesa: implement glGet(GL_TIMESTAMP) v2

2012-07-05 Thread Marek Olšák
This is adds a new driver function to retrieve the timestamp. --- src/mesa/main/dd.h |6 ++ src/mesa/main/get.c | 17 - 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index 687a38f..c8a765f 100644 --- a/src/mesa/mai

[Mesa-dev] [PATCH 3/4] st/mesa: implement ARB_timer_query

2012-07-05 Thread Marek Olšák
--- src/mesa/state_tracker/st_cb_queryobj.c | 14 ++ src/mesa/state_tracker/st_extensions.c |5 + 2 files changed, 19 insertions(+) diff --git a/src/mesa/state_tracker/st_cb_queryobj.c b/src/mesa/state_tracker/st_cb_queryobj.c index b6a236e..e5e4a81 100644 --- a/src/mesa/s

[Mesa-dev] [PATCH 2/4] gallium: add QUERY_TIMESTAMP cap and get_timestamp screen function

2012-07-05 Thread Marek Olšák
--- src/gallium/drivers/i915/i915_screen.c |1 + src/gallium/drivers/llvmpipe/lp_screen.c |1 + src/gallium/drivers/nv30/nv30_screen.c |1 + src/gallium/drivers/nv50/nv50_screen.c |1 + src/gallium/drivers/nvc0/nvc0_screen.c |1 + src/gallium/drivers/r300/r300_screen.c

[Mesa-dev] [PATCH 4/4] softpipe: implement get_timestamp and expose ARB_timer_query

2012-07-05 Thread Marek Olšák
PIPE_QUERY_TIMESTAMP is already implemented and working. --- src/gallium/drivers/softpipe/sp_screen.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c index 5164930..684f035 100644

Re: [Mesa-dev] powerpc / gallium/drivers/llvmpipe segfaults running lp_test_* tests

2012-07-05 Thread Will Schmidt
On Wed, 2012-07-04 at 05:33 -0700, Jose Fonseca wrote: > - Original Message - > > On Tue, 2012-07-03 at 16:07 -0500, Will Schmidt wrote: > > > (gdb) info reg r3 > > > r3 0xfffb7f60010 17590977429520 > > > (gdb) info reg r10 > > > r100x7c0802a6f8010010 8937396376

Re: [Mesa-dev] [PATCH 1/4] mesa: implement glGet(GL_TIMESTAMP) v2

2012-07-05 Thread Eric Anholt
Marek Olšák writes: > This is adds a new driver function to retrieve the timestamp. > diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c > index a83d367..7a507ce 100644 > --- a/src/mesa/main/get.c > +++ b/src/mesa/main/get.c > @@ -1807,7 +1811,18 @@ find_custom_value(struct gl_context *ctx,

Re: [Mesa-dev] [PATCH 1/4] mesa: implement glGet(GL_TIMESTAMP) v2

2012-07-05 Thread Marek Olšák
On Fri, Jul 6, 2012 at 12:59 AM, Eric Anholt wrote: > Marek Olšák writes: > >> This is adds a new driver function to retrieve the timestamp. > >> diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c >> index a83d367..7a507ce 100644 >> --- a/src/mesa/main/get.c >> +++ b/src/mesa/main/get.c >> @@

[Mesa-dev] [PATCH 1/4] mesa: implement glGet(GL_TIMESTAMP) v2

2012-07-05 Thread Marek Olšák
This is adds a new driver function to retrieve the timestamp. --- src/mesa/main/dd.h |6 ++ src/mesa/main/get.c | 15 ++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index 687a38f..c8a765f 100644 --- a/src/mesa/main/

Re: [Mesa-dev] [PATCH] mesa: Require current libxcb.

2012-07-05 Thread Kenneth Graunke
On 07/05/2012 03:08 PM, Eric Anholt wrote: > Without that, people with buggy apps that looked at just the server > string for GLX_ARB_create_context would call this function that just > threw an error when you tried to make a context. Google shows plenty > of complaints about this. Having these #

Re: [Mesa-dev] powerpc / gallium/drivers/llvmpipe segfaults running lp_test_* tests

2012-07-05 Thread Dave Airlie
On Thu, Jul 5, 2012 at 11:11 PM, Will Schmidt wrote: > On Wed, 2012-07-04 at 05:33 -0700, Jose Fonseca wrote: >> - Original Message - >> > On Tue, 2012-07-03 at 16:07 -0500, Will Schmidt wrote: >> > > (gdb) info reg r3 >> > > r3 0xfffb7f60010 17590977429520 >> > > (gdb) in