Re: [Mesa-dev] [PATCH v3] mesa: Optionally build a dricore support library (v3)

2011-02-12 Thread Eric Anholt
On Thu, 3 Feb 2011 11:19:32 +1100, Christopher James Halse Rogers christopher.halse.rog...@canonical.com wrote: This an adds --enable-shared-dricore option to configure. When enabled, DRI modules will link against a shared copy of the common mesa routines rather than statically linking

Re: [Mesa-dev] [PATCH] glx: Put null check before use

2011-02-12 Thread Eric Anholt
On Thu, 19 Aug 2010 14:06:21 -0400, nobled nob...@dreamwidth.org wrote: 'dpy' was being checked for null *after* it was already used once. From 606d6522e90abe526755d80d28754a8229a99baf Mon Sep 17 00:00:00 2001 From: nobled nob...@dreamwidth.org Date: Fri, 30 Jul 2010 12:09:18 + Subject:

[Mesa-dev] Building Mesa 7.10 on Windows 7 / Visual Studio 2010

2011-02-12 Thread Yahya H. Mirza
Hi All, I've been trying to build Mesa 7.10 on Windows 7 / Visual Studio 2010 and I have been having some problems. When I opened \windows\VC8\mesa\mesa.sln, it was automatically converted to VS2010. When I tried to build the various projects there were a number of problems including

[Mesa-dev] [PATCH] docs: Fix typo in GL3.txt

2011-02-12 Thread Sedat Dilek
Signed-off-by: Sedat Dilek sedat.di...@gmail.com --- docs/GL3.txt |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/docs/GL3.txt b/docs/GL3.txt index b4ca99b..9ff25a9 100644 --- a/docs/GL3.txt +++ b/docs/GL3.txt @@ -33,7 +33,7 @@ Transform feedback

[Mesa-dev] [PATCH 1/6] vbo: notify a driver that we change buffer offsets, strides, etc.

2011-02-12 Thread Marek Olšák
--- src/mesa/vbo/vbo_exec_draw.c |1 + src/mesa/vbo/vbo_save_draw.c |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/mesa/vbo/vbo_exec_draw.c b/src/mesa/vbo/vbo_exec_draw.c index 87f6431..f8be83e 100644 --- a/src/mesa/vbo/vbo_exec_draw.c +++

[Mesa-dev] [PATCH 2/6] vbo: bind arrays only when necessary

2011-02-12 Thread Marek Olšák
We don't need to call bind_arrays in the vbo module if the states which the function depends on are not dirty. --- src/mesa/main/mtypes.h|1 + src/mesa/main/state.c |2 ++ src/mesa/vbo/vbo_exec_array.c |5 + 3 files changed, 8 insertions(+), 0 deletions(-) diff

[Mesa-dev] [PATCH 3/6] gallium: always save and restore vertex buffers using cso_cache

2011-02-12 Thread Marek Olšák
--- src/gallium/auxiliary/cso_cache/cso_context.c | 45 +++ src/gallium/auxiliary/cso_cache/cso_context.h |7 src/gallium/auxiliary/util/u_blit.c |8 +++- src/gallium/auxiliary/util/u_blitter.c |4 +-

[Mesa-dev] [PATCH 4/6] gallium: remove pipe_vertex_buffer::max_index

2011-02-12 Thread Marek Olšák
This is redundant to pipe_draw_info::max_index and doesn't really fit in the optimizations I plan. --- src/gallium/auxiliary/draw/draw_llvm.c | 17 - src/gallium/auxiliary/draw/draw_llvm.h |5 + src/gallium/auxiliary/draw/draw_pt.c |

[Mesa-dev] [PATCH 5/6] st/mesa: set vertex arrays state only when necessary

2011-02-12 Thread Marek Olšák
The vertex arrays state should be set only when (_NEW_ARRAY | _NEW_PROGRAM) is dirty. This assumes user buffer content is mutable, which will be sorted out in the next commit. The following usage case should be much faster now: for (i = 0; i 1000; i++) { glDrawElements(...); } Or even: for

[Mesa-dev] [PATCH 6/6] gallium: notify drivers about possible changes in user buffer contents

2011-02-12 Thread Marek Olšák
Also implement the redefine_user_buffer hook in the drivers. --- src/gallium/auxiliary/util/u_blitter.c |4 ++ src/gallium/auxiliary/util/u_transfer.c |7 src/gallium/auxiliary/util/u_transfer.h | 10 ++--- src/gallium/docs/source/context.rst

Re: [Mesa-dev] [PATCH] RE: Mesa garbage collection and threads

2011-02-12 Thread Tolga Dalman
On 02/11/11 16:31, Andy Skinner wrote: -void XMesaGarbageCollect( void ) +void XMesaGarbageCollect( XMesaDisplay* dpy ) { XMesaBuffer b, next; for (b=XMesaBufferList; b; b=next) { next = b-Next; - if (b-display b-frontxrb-drawable b-type == WINDOW) { + if