[Mesa-dev] [PATCH] i965/vs: Allow compute-to-MRF on scalars, even if the component changes.

2012-04-18 Thread Kenneth Graunke
Consider the following code: dp4(8) g8<1>.xF g1<4,4,1>Fg5<4,4,1>F { align16 WE_normal 1Q }; mov(8) m3<1>.xF g8<4,4,1>.xF { align16 WE_normal 1Q }; Thanks to our existing compute-to-MRF code, this becomes: dp4(8) m3<1>.xF g1<4,4,1>Fg5<4,4,1>F { align16 WE_normal 1

[Mesa-dev] [PATCH] st/mesa: Fix uninitialized members in glsl_to_tgsi_visitor constructor.

2012-04-18 Thread Vinson Lee
Fix uninitialized scalar field defects reported by Coverity. NOTE: This is a candidate for the 8.0 branch. Signed-off-by: Vinson Lee --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp |4 1 file changed, 4 insertions(+) diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/s

Re: [Mesa-dev] [RFC][PATCH 00/11] gallium: Basic compute infrastructure.

2012-04-18 Thread Jose Fonseca
- Original Message - > Jose Fonseca writes: > > > - Original Message - > >> On Wed, Apr 18, 2012 at 07:34:15AM -0700, Jose Fonseca wrote: > >> > - Original Message - > >> > > On Tue, Apr 17, 2012 at 06:27:20PM +0200, Francisco Jerez > >> > > wrote: > >> > > > Jose Fonseca

Re: [Mesa-dev] [PATCH 4/4] glsl: Add implementation of inverse() for mat2/3/4.

2012-04-18 Thread Olivier Galibert
On Wed, Apr 18, 2012 at 06:40:32PM -0700, Eric Anholt wrote: > +mat3 inverse(mat3 m) > +{ > + mat3 adj; > + adj[0][0] = + (m[1][1] * m[2][2] - m[2][1] * m[1][2]); > + adj[1][0] = - (m[1][0] * m[2][2] - m[2][0] * m[1][2]); > + adj[2][0] = + (m[1][0] * m[2][1] - m[2][0] * m[1][1]); > + adj[

[Mesa-dev] [PATCH 2/2] r300g/automake: add $CFLAGS and $OPT_FLAGS

2012-04-18 Thread Marek Olšák
--- src/gallium/drivers/r300/Makefile.am |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/gallium/drivers/r300/Makefile.am b/src/gallium/drivers/r300/Makefile.am index af352aa..c4ee08c 100644 --- a/src/gallium/drivers/r300/Makefile.am +++ b/src/gallium/drivers/r300/Ma

[Mesa-dev] [PATCH 1/2] r600g/automake: add $CFLAGS and $OPT_FLAGS

2012-04-18 Thread Marek Olšák
I didn't check any other drivers besides r300g. I hope CFLAGS is not the only variable containing the -O2 flag... --- src/gallium/drivers/r600/Makefile.am |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/gallium/drivers/r600/Makefile.am b/src/gallium/drivers/r600/Make

Re: [Mesa-dev] [PATCH] glsl: Fix uninitialized member in ir_array_splitting_visitor.

2012-04-18 Thread Kenneth Graunke
On 04/17/2012 11:49 PM, Vinson Lee wrote: Fix uninitialized pointer field defect reported by Coverity. Signed-off-by: Vinson Lee --- src/glsl/opt_array_splitting.cpp |1 + 1 file changed, 1 insertion(+) diff --git a/src/glsl/opt_array_splitting.cpp b/src/glsl/opt_array_splitting.cpp inde

Re: [Mesa-dev] [PATCH 3/4] glsl: Add support for generating builtin code from GLSL instead of IR.

2012-04-18 Thread Kenneth Graunke
On 04/18/2012 06:40 PM, Eric Anholt wrote: This takes advantage of the builtin compiler to generate IR into a string, the same way we read GLSL for function prototypes for our profiles. --- src/glsl/builtins/tools/generate_builtins.py | 20 1 file changed, 16 insertions(

[Mesa-dev] [PATCH 3/4] glsl: Add support for generating builtin code from GLSL instead of IR.

2012-04-18 Thread Eric Anholt
This takes advantage of the builtin compiler to generate IR into a string, the same way we read GLSL for function prototypes for our profiles. --- src/glsl/builtins/tools/generate_builtins.py | 20 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/glsl/built

[Mesa-dev] [PATCH 2/4] glsl: Make ir_reader parse the "temporary" variable qualifier.

2012-04-18 Thread Eric Anholt
This lets ir_reader eat the output of builtin_compiler on actual function definitions. --- src/glsl/ir_reader.cpp |2 ++ 1 file changed, 2 insertions(+) diff --git a/src/glsl/ir_reader.cpp b/src/glsl/ir_reader.cpp index 7ce683e..03dbb67 100644 --- a/src/glsl/ir_reader.cpp +++ b/src/glsl/ir_re

[Mesa-dev] [PATCH 4/4] glsl: Add implementation of inverse() for mat2/3/4.

2012-04-18 Thread Eric Anholt
This is taken from the ogl-math project, with Inverse renamed to adj (since it's not actually the inverse), transposed, and our types plugged in. Fixes piglit inverse tests. --- src/glsl/Makefile |2 +- src/glsl/builtins/glsl/inverse.glsl | 105 +

[Mesa-dev] [PATCH 1/4] glsl: Add doxygen explaining what main.cpp is for.

2012-04-18 Thread Eric Anholt
I keep getting lost in the Makefile trying to figure out what to edit to work on builtin_compiler or glsl_compiler. --- src/glsl/main.cpp |9 + 1 file changed, 9 insertions(+) diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp index 3231b1b..64c2496 100644 --- a/src/glsl/main.cpp +++

Re: [Mesa-dev] Mesa-8.0.2 libGL.so: undefined reference to `XGetXCBConnection'

2012-04-18 Thread jupiter . hce
On 2012-04-18 09:48-0400, Adam Jackson wrote: On Tue, 2012-04-17 at 23:53 +1000, jupiter@gmail.com wrote: On 2012-04-17 09:34-0400, Adam Jackson wrote: >Note that neither one of the above libraries is mentioned in your ldd >output, which means libGL was linked incorrectly. What method did y

Re: [Mesa-dev] [RFC][PATCH 00/11] gallium: Basic compute infrastructure.

2012-04-18 Thread Francisco Jerez
Tom Stellard writes: > On Tue, Apr 17, 2012 at 06:27:20PM +0200, Francisco Jerez wrote: >> Jose Fonseca writes: >>[...] >> > and how would this scheme work, e.g., if a driver wanted to consume >> > GLSL IR in the future. >> >> Hm, I'm not convinced that letting a driver consume GLSL IR would be

[Mesa-dev] [Bug 48899] llvmpipe doesn't work with wine 1.5.2 and 3Dmark2001se

2012-04-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48899 --- Comment #2 from Andrew Randrianasulu 2012-04-18 17:19:42 UTC --- Mesa's compilation line was: make distclean && ./autogen.sh --prefix=/usr/X11R7 --disable-egl --enable-gallium-llvm --with-gallium-drivers="i915 nouveau r600 r300 swrast" --en

[Mesa-dev] [Bug 48899] llvmpipe doesn't work with wine 1.5.2 and 3Dmark2001se

2012-04-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48899 --- Comment #1 from Andrew Randrianasulu 2012-04-18 17:18:08 PDT --- Created attachment 60288 --> https://bugs.freedesktop.org/attachment.cgi?id=60288 glxinfo log -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ---

[Mesa-dev] [Bug 48899] New: llvmpipe doesn't work with wine 1.5.2 and 3Dmark2001se

2012-04-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48899 Bug #: 48899 Summary: llvmpipe doesn't work with wine 1.5.2 and 3Dmark2001se Classification: Unclassified Product: Mesa Version: git Platform: x86 (IA32) OS/Version: Linux (All)

Re: [Mesa-dev] [RFC][PATCH 00/11] gallium: Basic compute infrastructure.

2012-04-18 Thread Francisco Jerez
Jose Fonseca writes: > - Original Message - >> On Wed, Apr 18, 2012 at 07:34:15AM -0700, Jose Fonseca wrote: >> > - Original Message - >> > > On Tue, Apr 17, 2012 at 06:27:20PM +0200, Francisco Jerez wrote: >> > > > Jose Fonseca writes: >> > > > >[...] >> > > > > I think that an

Re: [Mesa-dev] WebGL WG interested in 1.0.1 conformance test results on real drivers

2012-04-18 Thread Jeff Gilbert
Ok, great. Do you have any idea if RENDERBUFFER_SAMPLES will return the lie or 0/1? -Jeff - Original Message - From: "Eric Anholt" To: "Jeff Gilbert" , "Benoit Jacob" Cc: mesa-dev@lists.freedesktop.org Sent: Wednesday, April 18, 2012 3:07:17 PM Subject: Re: [Mesa-dev] WebGL WG interest

Re: [Mesa-dev] llvmPipe on ARM (CortexA-9)

2012-04-18 Thread Stuart Abercrombie
I was just looking at this.  The release notes say the "ARM backend has basic support for integer code", but even that appears to be broken, at least for vector types.  For the first case of lp_test_conv, with this IR: define void @test(<8 x i16>*, <4 x i32>*) { entry:   %2 = getelementptr <8 x i1

Re: [Mesa-dev] WebGL WG interested in 1.0.1 conformance test results on real drivers

2012-04-18 Thread Jeff Gilbert
It depends how much of the spec its in violation of. Hopefully, querying GL_RENDERBUFFER_SAMPLES on the RB should show it with 0 or 1 sample(s). Per spec, this is not okay, since RENDERBUFFER_SAMPLES is guaranteed to be >= the 'samples' value used at allocation, but at least 0 or 1 would reflec

[Mesa-dev] llvmpipe enabled mesa on ARM

2012-04-18 Thread Vijay
Hello, Is it possible to use llvmpipe enabled mesa for ARM cortex-9. ?? If yes,then please give me info. If no,then when it will be possible. Thanks ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo

Re: [Mesa-dev] WebGL WG interested in 1.0.1 conformance test results on real drivers

2012-04-18 Thread Eric Anholt
On Wed, 18 Apr 2012 15:43:07 -0700 (PDT), Jeff Gilbert wrote: > Ok, great. Do you have any idea if RENDERBUFFER_SAMPLES will return the lie > or 0/1? It returns the lie. pgpCRp8B2gGnI.pgp Description: PGP signature ___ mesa-dev mailing list mesa-dev

Re: [Mesa-dev] WebGL WG interested in 1.0.1 conformance test results on real drivers

2012-04-18 Thread Eric Anholt
On Wed, 18 Apr 2012 03:32:46 -0700 (PDT), Jeff Gilbert wrote: > It depends how much of the spec its in violation of. > > Hopefully, querying GL_RENDERBUFFER_SAMPLES on the RB should show it > with 0 or 1 sample(s). Per spec, this is not okay, since > RENDERBUFFER_SAMPLES is guaranteed to be >= t

Re: [Mesa-dev] [PATCH] mesa: use array object constructor

2012-04-18 Thread Brian Paul
On 04/18/2012 11:28 AM, Mathias Fröhlich wrote: Hi, The attached change uses the array object factory for gl_array_objects. This prevents crashes when deriving from gl_array_object. The change should be orthogonal to Mareks posted changes. Please Review. From 2f8f27281f44142edd258a62eff6be

Re: [Mesa-dev] [PATCH] mesa: move gl_array_attrib::NewState to gl_array_object::NewArrays

2012-04-18 Thread Mathias Fröhlich
Hi, On Wednesday, April 18, 2012 10:49:41 Brian Paul wrote: > From: Brian Paul > > The field wasn't actually used before and it's not used now either. > But this is a more logical place for it and will hopefully allow > doing smarter draw/array validation (per array object) in the future. Revi

Re: [Mesa-dev] [RFC][PATCH 00/11] gallium: Basic compute infrastructure.

2012-04-18 Thread Jose Fonseca
- Original Message - > On Wed, Apr 18, 2012 at 10:05:58AM -0700, Jose Fonseca wrote: > > This idea of passing GLSL IR assumes that GLSL IR would grow to be > > generic enough to represent any shader, and not just GLSL derived > > ones. > > What would be missing from a IR covering GLSL 4.2?

[Mesa-dev] [PATCH] mesa: use array object constructor

2012-04-18 Thread Mathias Fröhlich
Hi, The attached change uses the array object factory for gl_array_objects. This prevents crashes when deriving from gl_array_object. The change should be orthogonal to Mareks posted changes. Please Review. Thanks Mathias>From 2f8f27281f44142edd258a62eff6be1fe7f413d8 Mon Sep 17 00:00:00 2001

Re: [Mesa-dev] [PATCH 01/10] st/mesa: use bitshifting to define state flags

2012-04-18 Thread Mathias Fröhlich
Hi, On Wednesday, April 18, 2012 10:41:56 Brian Paul wrote: > Yes. I actually started some work on that a while back but never got > back to it. I don't think there'd be any harm in moving the field so > I'll go dig up that patch. > > My goal was to explore having an st_array_object subclass o

Re: [Mesa-dev] [RFC][PATCH 00/11] gallium: Basic compute infrastructure.

2012-04-18 Thread Olivier Galibert
On Wed, Apr 18, 2012 at 10:05:58AM -0700, Jose Fonseca wrote: > This idea of passing GLSL IR assumes that GLSL IR would grow to be > generic enough to represent any shader, and not just GLSL derived > ones. What would be missing from a IR covering GLSL 4.2? Some types maybe? OG. __

Re: [Mesa-dev] [RFC][PATCH 00/11] gallium: Basic compute infrastructure.

2012-04-18 Thread Jose Fonseca
- Original Message - > On Wed, Apr 18, 2012 at 07:34:15AM -0700, Jose Fonseca wrote: > > > > > > - Original Message - > > > On Tue, Apr 17, 2012 at 06:27:20PM +0200, Francisco Jerez wrote: > > > > Jose Fonseca writes: > > > > > > > > > Francisco, > > > > > > > > > > Sorry for

Re: [Mesa-dev] [RFC][PATCH 00/11] gallium: Basic compute infrastructure.

2012-04-18 Thread Jose Fonseca
- Original Message - > Jose Fonseca writes: > > > Francisco, > > > > Sorry for the delay reviewing this, but I haven't been able to > > dedicate some time until now. > > > > Overall, it's a great piece of work! Just a few relatively minor > > comments/requests. > > > > Hi Jose, thanks

Re: [Mesa-dev] [PATCH 09/10] gallium/u_blit: don't release vertex buffer at end of frame / in glFlush

2012-04-18 Thread Jose Fonseca
- Original Message - > On Wed, Apr 18, 2012 at 5:06 PM, Jose Fonseca > wrote: > > Marek, > > > > Sorry for not noticing earlier ( I haven't been able to keep up > > with mesa traffic lately), but I'm afraid this and the 10/10 are > > not ok, as on several operating systems, namely, Windows

[Mesa-dev] [PATCH] mesa: move gl_array_attrib::NewState to gl_array_object::NewArrays

2012-04-18 Thread Brian Paul
From: Brian Paul The field wasn't actually used before and it's not used now either. But this is a more logical place for it and will hopefully allow doing smarter draw/array validation (per array object) in the future. --- src/mesa/main/arrayobj.c |1 - src/mesa/main/attrib.c |3 ++-

Re: [Mesa-dev] [PATCH 01/10] st/mesa: use bitshifting to define state flags

2012-04-18 Thread Brian Paul
On 04/18/2012 10:28 AM, Mathias Fröhlich wrote: Hi, On Wednesday, April 18, 2012 18:22:48 Marek Olšák wrote: BTW, the gl_array_attrib::NewState field is assigned to but never used anywhere. Want to remove it too? Hi Brian, I didn't remove it because I thought it would be useful in the futu

Re: [Mesa-dev] [PATCH 09/10] gallium/u_blit: don't release vertex buffer at end of frame / in glFlush

2012-04-18 Thread Marek Olšák
On Wed, Apr 18, 2012 at 5:06 PM, Jose Fonseca wrote: > Marek, > > Sorry for not noticing earlier ( I haven't been able to keep up with mesa > traffic lately), but I'm afraid this and the 10/10 are not ok, as on several > operating systems, namely, Windows WDDM, it is illegal to flush a command

Re: [Mesa-dev] [PATCH 01/10] st/mesa: use bitshifting to define state flags

2012-04-18 Thread Mathias Fröhlich
Hi, On Wednesday, April 18, 2012 18:22:48 Marek Olšák wrote: > > BTW, the gl_array_attrib::NewState field is assigned to but never used > > anywhere. Want to remove it too? > > Hi Brian, > > I didn't remove it because I thought it would be useful in the future. > I wouldn't oppose somebody els

Re: [Mesa-dev] [PATCH 01/10] st/mesa: use bitshifting to define state flags

2012-04-18 Thread Mathias Fröhlich
Hi, That's actually a nice cleanup. There's a plenty potential for speeding up this area, but I did not find time to complete what I had/have in mind! For the series: Reviewed-by: Mathias Fröhlich Thanks! Mathias ___ mesa-dev mailing list mesa-dev@

Re: [Mesa-dev] [PATCH 01/10] st/mesa: use bitshifting to define state flags

2012-04-18 Thread Marek Olšák
On Wed, Apr 18, 2012 at 5:02 PM, Brian Paul wrote: > On 04/18/2012 08:16 AM, Marek Olšák wrote: >> >> --- >>  src/mesa/state_tracker/st_context.h |   12 ++-- >>  1 files changed, 6 insertions(+), 6 deletions(-) >> >> diff --git a/src/mesa/state_tracker/st_context.h >> b/src/mesa/state_trac

Re: [Mesa-dev] llvmPipe on ARM (CortexA-9)

2012-04-18 Thread Roland Scheidegger
Am 18.04.2012 14:02, schrieb Vijay: > Hello, > Can we use llvmpipe for arm architecture.(Specifically ARM cortexA-9) ?? > > I tried & found below error. > > Unhandled instruction encoding format! > UNREACHABLE executed at ARMCodeEmitter.cpp:534! > Aborted > > Version used : llvmpipe3.0,Mesa-8.0

Re: [Mesa-dev] [RFC][PATCH 00/11] gallium: Basic compute infrastructure.

2012-04-18 Thread Tom Stellard
On Wed, Apr 18, 2012 at 07:34:15AM -0700, Jose Fonseca wrote: > > > - Original Message - > > On Tue, Apr 17, 2012 at 06:27:20PM +0200, Francisco Jerez wrote: > > > Jose Fonseca writes: > > > > > > > Francisco, > > > > > > > > Sorry for the delay reviewing this, but I haven't been able

Re: [Mesa-dev] [PATCH 09/10] gallium/u_blit: don't release vertex buffer at end of frame / in glFlush

2012-04-18 Thread Jose Fonseca
Marek, Sorry for not noticing earlier ( I haven't been able to keep up with mesa traffic lately), but I'm afraid this and the 10/10 are not ok, as on several operating systems, namely, Windows WDDM, it is illegal to flush a command buffer with a buffer mapped. Jose - Original Message ---

Re: [Mesa-dev] [PATCH 05/21] u_vbuf: override set_index_buffer

2012-04-18 Thread Marek Olšák
On Thu, Apr 12, 2012 at 4:13 AM, Brian Paul wrote: > On Wed, Apr 11, 2012 at 9:38 AM, Marek Olšák wrote: >> This makes u_vbuf_mgr call the driver instead of the other way around. >> --- >>  src/gallium/auxiliary/util/u_vbuf.c          |   35 >> ++--- >>  src/gallium/auxiliary

Re: [Mesa-dev] [PATCH 01/10] st/mesa: use bitshifting to define state flags

2012-04-18 Thread Brian Paul
On 04/18/2012 08:16 AM, Marek Olšák wrote: --- src/mesa/state_tracker/st_context.h | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mesa/state_tracker/st_context.h b/src/mesa/state_tracker/st_context.h index da03719..3d41ab5 100644 --- a/src/mesa/state_t

Re: [Mesa-dev] [RFC][PATCH 00/11] gallium: Basic compute infrastructure.

2012-04-18 Thread Jose Fonseca
- Original Message - > On Tue, Apr 17, 2012 at 06:27:20PM +0200, Francisco Jerez wrote: > > Jose Fonseca writes: > > > > > Francisco, > > > > > > Sorry for the delay reviewing this, but I haven't been able to > > > dedicate some time until now. > > > > > > Overall, it's a great piece o

Re: [Mesa-dev] [RFC][PATCH 00/11] gallium: Basic compute infrastructure.

2012-04-18 Thread Tom Stellard
On Tue, Apr 17, 2012 at 06:27:20PM +0200, Francisco Jerez wrote: > Jose Fonseca writes: > > > Francisco, > > > > Sorry for the delay reviewing this, but I haven't been able to dedicate > > some time until now. > > > > Overall, it's a great piece of work! Just a few relatively minor > > comment

[Mesa-dev] [PATCH 10/10] vbo: remove vbo_context::mat_currval

2012-04-18 Thread Marek Olšák
--- src/mesa/vbo/vbo_context.c|7 ++- src/mesa/vbo/vbo_context.h|4 src/mesa/vbo/vbo_exec_array.c |3 ++- src/mesa/vbo/vbo_exec_draw.c |3 ++- src/mesa/vbo/vbo_save_draw.c |3 ++- 5 files changed, 8 insertions(+), 12 deletions(-) diff --git a/src/mesa/vbo/vb

[Mesa-dev] [PATCH 09/10] vbo: remove vbo_context::generic_currval

2012-04-18 Thread Marek Olšák
--- src/mesa/vbo/vbo_context.c|3 +-- src/mesa/vbo/vbo_context.h|1 - src/mesa/vbo/vbo_exec_api.c |6 -- src/mesa/vbo/vbo_exec_array.c |6 +++--- src/mesa/vbo/vbo_exec_draw.c |3 ++- src/mesa/vbo/vbo_save.c |6 -- src/mesa/vbo/vbo_save_draw.c |

[Mesa-dev] [PATCH 08/10] vbo: remove vbo_context::legacy_currval

2012-04-18 Thread Marek Olšák
It's not nice when you have several variables pointing to the same array and you wanna ask your editor "where is this used" and you only get an answer for one of the four currval, legacy_currval, generic_currval, mat_currval, which is quite useless, because you never see the whole picture. Let's g

[Mesa-dev] [PATCH 07/10] vbo: remove unused variables in vbo_context

2012-04-18 Thread Marek Olšák
--- src/mesa/vbo/vbo_context.h |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/src/mesa/vbo/vbo_context.h b/src/mesa/vbo/vbo_context.h index 1a1cc92..cae2407 100644 --- a/src/mesa/vbo/vbo_context.h +++ b/src/mesa/vbo/vbo_context.h @@ -71,10 +71,6 @@ struct vbo_context {

[Mesa-dev] [PATCH 06/10] vbo: don't check twice whether it's valid to render

2012-04-18 Thread Marek Olšák
It's already done in _mesa_validate_Draw* and it's not needed to do it again unless I am missing something. --- src/mesa/vbo/vbo_exec_array.c | 20 1 files changed, 0 insertions(+), 20 deletions(-) diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c i

[Mesa-dev] [PATCH 05/10] mesa: set _NEW_VARYING_VP_INPUTS flag only if fixed-func VP is enabled & valid

2012-04-18 Thread Marek Olšák
--- src/mesa/main/state.c | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index 627bf83..6efc45a 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -627,7 +627,16 @@ _mesa_set_varying_vp_inputs( struct

[Mesa-dev] [PATCH 04/10] mesa: add _NEW_VARYING_VP_INPUTS for gl_context::varying_vp_inputs

2012-04-18 Thread Marek Olšák
This is a frequently-updated state and _NEW_ARRAY already causes revalidation of the vbo module. It's kinda counter-productive to recompute arrays in the vbo module if _NEW_ARRAY is set and then set _NEW_ARRAY again. --- src/mesa/main/ff_fragment_shader.cpp |2 +- src/mesa/main/mtypes.h

[Mesa-dev] [PATCH 03/10] mesa, vbo: properly detect when vertex arrays need to be recalculated

2012-04-18 Thread Marek Olšák
This moves the RebindArrays flag into the vbo module, consolidates the code, and adds missing vbo_draw_method calls. Also with this change, the vertex arrays are not needlessly recalculated twice. The issue with the old code was: - If recalculate_input_bindings updates vp_varying_inputs, _NEW_ARRA

[Mesa-dev] [PATCH 02/10] mesa: only update _MaxElement when we actually need it

2012-04-18 Thread Marek Olšák
--- src/mesa/main/state.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index b019266..2e9f021 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -561,8 +561,10 @@ _mesa_update_state_locked( struct gl_contex

[Mesa-dev] [PATCH 01/10] st/mesa: use bitshifting to define state flags

2012-04-18 Thread Marek Olšák
--- src/mesa/state_tracker/st_context.h | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mesa/state_tracker/st_context.h b/src/mesa/state_tracker/st_context.h index da03719..3d41ab5 100644 --- a/src/mesa/state_tracker/st_context.h +++ b/src/mesa/state_tracke

Re: [Mesa-dev] Mesa-8.0.2 libGL.so: undefined reference to `XGetXCBConnection'

2012-04-18 Thread Adam Jackson
On Tue, 2012-04-17 at 23:53 +1000, jupiter@gmail.com wrote: > On 2012-04-17 09:34-0400, Adam Jackson wrote: > >Note that neither one of the above libraries is mentioned in your ldd > >output, which means libGL was linked incorrectly. What method did you > >use to build Mesa? > > The default o

[Mesa-dev] How to memory map the framebuffer

2012-04-18 Thread Daniele Tessaro
Hi everybody, first of all I apologize if this is not the right place for this question but I couldn't find any answer in other places and I think this is a good question about DRI. I also apologize for the length of the question! For a security application I'm developing I need direct access to t

Re: [Mesa-dev] llvmPipe on ARM (CortexA-9)

2012-04-18 Thread Jose Fonseca
- Original Message - > Hello, > Can we use llvmpipe for arm architecture.(Specifically ARM cortexA-9) > ?? It has never been tried before, so have no idea how close it is of working. > I tried & found below error. > > Unhandled instruction encoding format! > UNREACHABLE executed at ARM

[Mesa-dev] llvmPipe on ARM (CortexA-9)

2012-04-18 Thread Vijay
Hello, Can we use llvmpipe for arm architecture.(Specifically ARM cortexA-9) ?? I tried & found below error. Unhandled instruction encoding format! UNREACHABLE executed at ARMCodeEmitter.cpp:534! Aborted Version used : llvmpipe3.0,Mesa-8.0 Any hint or info will be helpfull. Thanks.. ___

[Mesa-dev] [Bug 48788] Mesa after 7.11.2 won't use hardware for OpenGL acceleration

2012-04-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48788 Michel Dänzer changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|