Re: [Mesa-dev] GLSL IR representation of EmitVertex

2011-08-19 Thread Marek Olšák
On Fri, Aug 19, 2011 at 8:42 AM, Kenneth Graunke wrote: > On 08/18/2011 12:02 PM, Vincent Lejeune wrote: >> Hi, >> >> I would like to have several opinions about the implementation (on the >> frontend side) of EmitVertex() function. >> >> Prototype of the function is : >> void EmitVertex(); >> >

Re: [Mesa-dev] [PATCHv2 13/21] android: build st/egl with android backend

2011-08-19 Thread Benjamin Franzke
2011/8/19 Chia-I Wu : > This builds the static library libmesa_st_egl from st/egl. > --- >  src/gallium/Android.mk                    |    1 + >  src/gallium/state_trackers/egl/Android.mk |   56 > + >  2 files changed, 57 insertions(+), 0 deletions(-) >  create mode 100

Re: [Mesa-dev] [PATCHv2 13/21] android: build st/egl with android backend

2011-08-19 Thread Chia-I Wu
On Fri, Aug 19, 2011 at 5:17 PM, Benjamin Franzke wrote: > 2011/8/19 Chia-I Wu : >> This builds the static library libmesa_st_egl from st/egl. >> --- >>  src/gallium/Android.mk                    |    1 + >>  src/gallium/state_trackers/egl/Android.mk |   56 >> + >>  2

Re: [Mesa-dev] [PATCHv2 10/21] targets/egl-static: do not rely on libudev on Android

2011-08-19 Thread Benjamin Franzke
2011/8/19 Chia-I Wu : > There is no libudev on Android.  Use DRM to get the PCI ID directly. > --- >  src/gallium/targets/egl-static/egl.c |   62 > ++ >  1 files changed, 62 insertions(+), 0 deletions(-) > > diff --git a/src/gallium/targets/egl-static/egl.c > b/src

Re: [Mesa-dev] [PATCHv2 10/21] targets/egl-static: do not rely on libudev on Android

2011-08-19 Thread Chia-I Wu
On Fri, Aug 19, 2011 at 5:59 PM, Benjamin Franzke wrote: > 2011/8/19 Chia-I Wu : >> There is no libudev on Android.  Use DRM to get the PCI ID directly. >> --- >>  src/gallium/targets/egl-static/egl.c |   62 >> ++ >>  1 files changed, 62 insertions(+), 0 deletions(

Re: [Mesa-dev] [PATCHv2 10/21] targets/egl-static: do not rely on libudev on Android

2011-08-19 Thread Benjamin Franzke
2011/8/19 Chia-I Wu : > On Fri, Aug 19, 2011 at 5:59 PM, Benjamin Franzke > wrote: >> 2011/8/19 Chia-I Wu : >>> There is no libudev on Android.  Use DRM to get the PCI ID directly. >>> --- >>>  src/gallium/targets/egl-static/egl.c |   62 >>> ++ >>>  1 files changed

Re: [Mesa-dev] [PATCHv2 10/21] targets/egl-static: do not rely on libudev on Android

2011-08-19 Thread Chia-I Wu
On Fri, Aug 19, 2011 at 6:19 PM, Benjamin Franzke wrote: > 2011/8/19 Chia-I Wu : >> On Fri, Aug 19, 2011 at 5:59 PM, Benjamin Franzke >> wrote: >>> 2011/8/19 Chia-I Wu : There is no libudev on Android.  Use DRM to get the PCI ID directly. ---  src/gallium/targets/egl-static/egl.c |

Re: [Mesa-dev] [PATCHv2 00/21] initial Android support, try 2

2011-08-19 Thread Chia-I Wu
On Fri, Aug 19, 2011 at 10:37 AM, Chia-I Wu wrote: > Changes from v1 are > >  - build libGLES_mesa in top-level Android.mk >  - split changes to st/egl into 3 patches >  - use logf for log2f >  - misc changes and added comments > > Tests are done using VirtualBox. If there is no issues that requir

[Mesa-dev] [PATCH] r600g: fix depth-stencil on evergreen

2011-08-19 Thread Marek Olšák
Such that it actually works in apps which use both. A separate buffer is allocated for stencil. The only exception is the window-system-provided depth-stencil buffer, where depth and stencil share the same buffer. This fixes: - fbo-depthstencil-GL_DEPTH24_STENCIL8-clear - fbo-depthstencil-GL_DEPT

Re: [Mesa-dev] [PATCH 0/12] Post-processing infrastructure / gsoc work, v3

2011-08-19 Thread Brian Paul
I've put your patch series on a new branch (kasanen-post-process) and pushed it. It would be good to have a few people give it a spin then we can merge it to master. -Brian ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freede

Re: [Mesa-dev] [PATCH 0/12] Post-processing infrastructure / gsoc work, v3

2011-08-19 Thread Lauri Kasanen
On Fri, 19 Aug 2011 08:46:22 -0600 Brian Paul wrote: > I've put your patch series on a new branch (kasanen-post-process) and > pushed it. It would be good to have a few people give it a spin then > we can merge it to master. Doesn't build, looks like patch 02 wasn't fully applied? - Lauri _

Re: [Mesa-dev] [PATCH 0/12] Post-processing infrastructure / gsoc work, v3

2011-08-19 Thread Brian Paul
On 08/19/2011 09:04 AM, Lauri Kasanen wrote: On Fri, 19 Aug 2011 08:46:22 -0600 Brian Paul wrote: I've put your patch series on a new branch (kasanen-post-process) and pushed it. It would be good to have a few people give it a spin then we can merge it to master. Doesn't build, looks like p

[Mesa-dev] [PATCH 02/12] st/dri: Bind the post-processing queue to dri, rebased

2011-08-19 Thread Lauri Kasanen
Updated patch 02 to work with current master: >From a6aa67da94d87a2271feecf0e84440430f6d6ae6 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Tue, 16 Aug 2011 16:07:59 +0300 Subject: [PATCH 02/12] st/dri: Bind the post-processing queue to dri, rebased Signed-off-by: Lauri Kasanen --- .../s

Re: [Mesa-dev] [PATCH 0/12] Post-processing infrastructure / gsoc work, v3

2011-08-19 Thread Lauri Kasanen
On Fri, 19 Aug 2011 09:08:39 -0600 Brian Paul wrote: > >> I've put your patch series on a new branch (kasanen-post-process) and > >> pushed it. It would be good to have a few people give it a spin then > >> we can merge it to master. > > > > Doesn't build, looks like patch 02 wasn't fully applie

Re: [Mesa-dev] [PATCHv2 05/21] mesa: android has no log2f nor ffs

2011-08-19 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Reviewed-by: Chad Versace On 08/18/2011 07:37 PM, Chia-I Wu wrote: > Define log2f(v) to be logf(v) / M_LN2 and ffs to __builtin_ffs. > --- > src/mesa/main/imports.h |8 +++- > 1 files changed, 7 insertions(+), 1 deletions(-) > > diff --git

Re: [Mesa-dev] [PATCHv2 21/21] android: make libGLES_mesa real

2011-08-19 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Reviewed-by: Chad Versace On 08/18/2011 07:37 PM, Chia-I Wu wrote: > libGLES_mesa with swrast should link in these libraries > > libmesa_egl > libmesa_egl_gallium > libmesa_st_egl > libmesa_st_mesa > libmesa_glsl > libmesa_glsl_utils >

Re: [Mesa-dev] [PATCH] intel: Emit assertion failure ASAP when DRI2 separate stencil handshake fails

2011-08-19 Thread Eric Anholt
On Thu, 18 Aug 2011 14:02:46 -0700, Chad Versace wrote: > When intel_verify_dri2_has_hiz() discovers that DRI2 (that is, the DDX > driver) cannot provide a separate stencil buffer, but > intel_context::hw_must_use_separate_stencil is set, then emit an > informative assertion failure as soon as pos

Re: [Mesa-dev] [PATCHv2 00/21] initial Android support, try 2

2011-08-19 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/19/2011 03:46 AM, Chia-I Wu wrote: > On Fri, Aug 19, 2011 at 10:37 AM, Chia-I Wu wrote: >> Changes from v1 are >> >> - build libGLES_mesa in top-level Android.mk >> - split changes to st/egl into 3 patches >> - use logf for log2f >> - misc c

Re: [Mesa-dev] [PATCH] i965/gen7: Use align1 mode to set URB_WRITE_HWORD channel enables.

2011-08-19 Thread Eric Anholt
On Thu, 18 Aug 2011 02:15:56 -0700, Kenneth Graunke wrote: > Makes the new vertex shader backend work on Ivybridge. > > Signed-off-by: Kenneth Graunke > --- > src/mesa/drivers/dri/i965/brw_eu_emit.c |3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/src/mesa/drive

Re: [Mesa-dev] [PATCH] intel: Emit assertion failure ASAP when DRI2 separate stencil handshake fails

2011-08-19 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/19/2011 10:35 AM, Eric Anholt wrote: > On Thu, 18 Aug 2011 14:02:46 -0700, Chad Versace wrote: >> When intel_verify_dri2_has_hiz() discovers that DRI2 (that is, the DDX >> driver) cannot provide a separate stencil buffer, but >> intel_context::h

Re: [Mesa-dev] [PATCH] intel: Emit assertion failure ASAP when DRI2 separate stencil handshake fails

2011-08-19 Thread Chad Versace
On 08/19/2011 10:35 AM, Eric Anholt wrote: > On Thu, 18 Aug 2011 14:02:46 -0700, Chad Versace wrote: >> When intel_verify_dri2_has_hiz() discovers that DRI2 (that is, the DDX >> driver) cannot provide a separate stencil buffer, but >> intel_context::hw_must_use_separate_stencil is set, then emit a

Re: [Mesa-dev] [PATCH 1/4] mesa: restructure error checking in _mesa_FramebufferTexture1D/2DEXT()

2011-08-19 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 For the series: Reviewed-by: Ian Romanick On 08/18/2011 03:05 PM, Brian Paul wrote: > In anticipation of adding more texture targets. > --- > src/mesa/main/fbobject.c | 56 > +- > 1 files changed, 45 i

Re: [Mesa-dev] [PATCH] intel: Emit assertion failure ASAP when DRI2 separate stencil handshake fails

2011-08-19 Thread Dan McCabe
On 08/19/2011 10:44 AM, Chad Versace wrote: On 08/19/2011 10:35 AM, Eric Anholt wrote: On Thu, 18 Aug 2011 14:02:46 -0700, Chad Versace wrote: When intel_verify_dri2_has_hiz() discovers that DRI2 (that is, the DDX driver) cannot provide a separate stencil buffer, but intel_context::hw_must_use

Re: [Mesa-dev] [PATCH 3/4] i965/vs: Add simple dead code elimination.

2011-08-19 Thread Dan McCabe
On 08/18/2011 01:23 PM, Kenneth Graunke wrote: On 08/18/2011 12:02 PM, Matt Turner wrote: On Thu, Aug 18, 2011 at 2:38 PM, Eric Anholt wrote: + bool progress = true; + while (progress) { + progress = false; + progress = dead_code_eliminate() || progress; || progress is always f

Re: [Mesa-dev] [PATCH] i965/gen6+: Use non-normalized coordinates for GL_TEXTURE_RECTANGLE.

2011-08-19 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/17/2011 05:55 PM, Eric Anholt wrote: > Improves performance of a GL_TEXTURE_RECTANGLE microbenchmark by 1.84% > +/- .15% (n=3) > --- > src/mesa/drivers/dri/i965/brw_fs_visitor.cpp |3 ++- > src/mesa/drivers/dri/i965/brw_wm_fp.c

Re: [Mesa-dev] [PATCH 3/4] i965/vs: Add simple dead code elimination.

2011-08-19 Thread Kenneth Graunke
On 08/19/2011 10:58 AM, Dan McCabe wrote: > On 08/18/2011 01:23 PM, Kenneth Graunke wrote: >> On 08/18/2011 12:02 PM, Matt Turner wrote: >>> On Thu, Aug 18, 2011 at 2:38 PM, Eric Anholt wrote: + bool progress = true; + while (progress) { + progress = false; + prog

Re: [Mesa-dev] [PATCH] i965/gen6+: Use non-normalized coordinates for GL_TEXTURE_RECTANGLE.

2011-08-19 Thread Eric Anholt
On Fri, 19 Aug 2011 11:38:17 -0700, Ian Romanick wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 08/17/2011 05:55 PM, Eric Anholt wrote: > > Improves performance of a GL_TEXTURE_RECTANGLE microbenchmark by 1.84% > > +/- .15% (n=3) > > --- > > src/mesa/drivers/dri/i965/brw_fs_visi

Re: [Mesa-dev] [PATCH] intel: Emit assertion failure ASAP when DRI2 separate stencil handshake fails

2011-08-19 Thread Kenneth Graunke
On 08/19/2011 10:44 AM, Chad Versace wrote: > On 08/19/2011 10:35 AM, Eric Anholt wrote: >> On Thu, 18 Aug 2011 14:02:46 -0700, Chad Versace >> wrote: >>> When intel_verify_dri2_has_hiz() discovers that DRI2 (that is, the DDX >>> driver) cannot provide a separate stencil buffer, but >>> intel_con

Re: [Mesa-dev] [PATCH 0/12] Post-processing infrastructure / gsoc work, v3

2011-08-19 Thread Brian Paul
On 08/19/2011 09:26 AM, Lauri Kasanen wrote: On Fri, 19 Aug 2011 09:08:39 -0600 Brian Paul wrote: I've put your patch series on a new branch (kasanen-post-process) and pushed it. It would be good to have a few people give it a spin then we can merge it to master. Doesn't build, looks like p

Re: [Mesa-dev] [PATCH] intel: Emit assertion failure ASAP when DRI2 separate stencil handshake fails

2011-08-19 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/19/2011 03:18 PM, Kenneth Graunke wrote: > On 08/19/2011 10:44 AM, Chad Versace wrote: >> On 08/19/2011 10:35 AM, Eric Anholt wrote: >>> On Thu, 18 Aug 2011 14:02:46 -0700, Chad Versace >>> wrote: When intel_verify_dri2_has_hiz() discovers

[Mesa-dev] [Bug 39219] libgl conflict with xbmc causes lock up on xbmc exit

2011-08-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=39219 --- Comment #9 from daytoo...@gmail.com 2011-08-19 16:57:41 PDT --- This problem still exists for me: Eedora 15 x86-64 mesa-libGL-7.11-0.16.20110709.0.fc15.x86_64 xbmc 10.1 (Note: mesa-lebGL is from the Fedora repositories.) ken -- Configure

[Mesa-dev] [PATCH 1/5] i965/vs: Move the flag for whether to use the new backend to the context.

2011-08-19 Thread Eric Anholt
--- src/mesa/drivers/dri/i965/brw_context.c |2 ++ src/mesa/drivers/dri/i965/brw_context.h |1 + src/mesa/drivers/dri/i965/brw_vs.c |6 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_co

[Mesa-dev] [PATCH 2/5] i965: Use native integer uniforms when the new VS backend is in use.

2011-08-19 Thread Eric Anholt
--- src/mesa/drivers/dri/i965/brw_context.c|6 + src/mesa/drivers/dri/i965/brw_context.h|2 - src/mesa/drivers/dri/i965/brw_curbe.c |3 +- src/mesa/drivers/dri/i965/brw_vec4_emit.cpp|1 - src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 29 ---

[Mesa-dev] native integers bugfixing

2011-08-19 Thread Eric Anholt
I wanted to take advantage of Ken's native integer patches in the VS work, but once I turned on native integers, an ES2 conformance test failed trying to get float values for a boolean uniform. Piglit test is on the way to that list. (Yeah, 2/5 should come last in the series). __

[Mesa-dev] [PATCH 3/5] mesa: Make the gl_constant_value's bool occupy the same space as float/int.

2011-08-19 Thread Eric Anholt
At least for Intel, all our uniform components are of uint32_t size, either float or signed or unsigned int. For uploading uniform data in the driver, it's much easier to upload a full dword per uniform element instead of trying to pick out the bool byte and then fill in the top 3 bytes of pad wit

[Mesa-dev] [PATCH 4/5] mesa: Fix glGetUniformfv of native integer uniforms.

2011-08-19 Thread Eric Anholt
We have to actually convert the values on the way out. Fixes piglit ARB_shader_objects/getuniform. --- src/mesa/main/uniforms.c | 32 1 files changed, 28 insertions(+), 4 deletions(-) diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c index cda840

[Mesa-dev] [PATCH 5/5] mesa: Slightly clean up the other GetUniform paths using the local values[].

2011-08-19 Thread Eric Anholt
--- src/mesa/main/uniforms.c | 12 +++- 1 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c index fbaa810..e2a9e93 100644 --- a/src/mesa/main/uniforms.c +++ b/src/mesa/main/uniforms.c @@ -463,10 +463,8 @@ get_uniform(struct g

Re: [Mesa-dev] [PATCH 0/12] Post-processing infrastructure / gsoc work, v3

2011-08-19 Thread Lauri Kasanen
On Fri, 19 Aug 2011 16:53:53 -0600 Brian Paul wrote: > OK, check out the new kasanen-post-process-v2 branch. It redoes the > series with updated patch 02. Everything works with the -v2 branch, thanks. - Lauri ___ mesa-dev mailing list mesa-dev@lists

Re: [Mesa-dev] [PATCH] intel: Emit assertion failure ASAP when DRI2 separate stencil handshake fails

2011-08-19 Thread Kenneth Graunke
On 08/19/2011 04:00 PM, Chad Versace wrote: > On 08/19/2011 03:18 PM, Kenneth Graunke wrote: >> On 08/19/2011 10:44 AM, Chad Versace wrote: >>> On 08/19/2011 10:35 AM, Eric Anholt wrote: On Thu, 18 Aug 2011 14:02:46 -0700, Chad Versace wrote: > When intel_verify_dri2_has_hiz() disco

Re: [Mesa-dev] [PATCH 2/5] i965: Use native integer uniforms when the new VS backend is in use.

2011-08-19 Thread Kenneth Graunke
On 08/19/2011 05:56 PM, Eric Anholt wrote: > --- > src/mesa/drivers/dri/i965/brw_context.c|6 + > src/mesa/drivers/dri/i965/brw_context.h|2 - > src/mesa/drivers/dri/i965/brw_curbe.c |3 +- > src/mesa/drivers/dri/i965/brw_vec4_emit.cpp|1 - > src/me

Re: [Mesa-dev] [PATCH 2/5] i965: Use native integer uniforms when the new VS backend is in use.

2011-08-19 Thread Kenneth Graunke
On 08/19/2011 11:43 PM, Kenneth Graunke wrote: > On 08/19/2011 05:56 PM, Eric Anholt wrote: >> --- >> src/mesa/drivers/dri/i965/brw_context.c|6 + >> src/mesa/drivers/dri/i965/brw_context.h|2 - >> src/mesa/drivers/dri/i965/brw_curbe.c |3 +- >> src/mesa/dr