[Mesa-dev] [Bug 65514] Mesa can't render Google Maps WebGL preview in Firefox

2013-06-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=65514 Nicholas Miell changed: What|Removed |Added Assignee|dri-devel@lists.freedesktop |mesa-dev@lists.freedesktop.

Re: [Mesa-dev] R600/SI: Intrinsics for derivatives

2013-06-08 Thread Tom Stellard
On Fri, Jun 07, 2013 at 05:48:05PM -0700, Tom Stellard wrote: > On Fri, Jun 07, 2013 at 05:24:42PM +0200, Michel Dänzer wrote: > > > > The most important difference to the previous version of these is that > > whole quad mode is now enabled and M0 initialized appropriately for the > > LDS instruct

Re: [Mesa-dev] [PATCH 5/8] i965: Don't emit PIPELINE_SELECT from BLORP.

2013-06-08 Thread Kenneth Graunke
On 06/08/2013 01:30 PM, Chris Forbes wrote: Does that flush still need to happen, if you're no longer emitting CMD_PIPELINE_SELECT? Unfortunately, yes, for a rather stupid reason: if our current batch was getting full, BLORP might run out of space and doesn't have any mechanism for handling t

[Mesa-dev] [PATCH] glsl: Initialize member variable is_ubo_var in constructor.

2013-06-08 Thread Vinson Lee
Fixes "Uninitialized scalar field" defect reported by Coverity. Signed-off-by: Vinson Lee --- src/glsl/link_uniforms.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp index 010296b..d42b6cd 100644 --- a/src/glsl/link_u

Re: [Mesa-dev] [PATCH 5/8] i965: Don't emit PIPELINE_SELECT from BLORP.

2013-06-08 Thread Chris Forbes
Does that flush still need to happen, if you're no longer emitting CMD_PIPELINE_SELECT? On Sun, Jun 9, 2013 at 7:01 AM, Kenneth Graunke wrote: > Now that we emit invariant state at startup (and never select the media > pipeline), the 3D pipeline will always already be selected, even if BLORP > is

[Mesa-dev] [PATCH] Move all of the var decls to the front of the IR list in reverse order.

2013-06-08 Thread Ian Romanick
From: Ian Romanick This has the (intended!) side effect that vertex shader inputs and fragment shader outputs will appear in the IR in the same order that they appeared in the shader code. This results in the locations being assigned in the declared order. Many (arguably buggy) applications dep

[Mesa-dev] [PATCH 8/8] intel: Reserve less batchbuffer space.

2013-06-08 Thread Kenneth Graunke
Now that Gen6+ relies on hardware contexts, we don't need to record an occlusion query value at the end of each batch. That means we no longer need to reserve space for the absurd number of PIPE_CONTROLs required to do that on Sandybridge. See commit 4e087de51ad0e7ba4a7199d3664e1d096f8dc510, whic

[Mesa-dev] [PATCH 7/8] i965: Allocate push constant L3 space once at startup on Gen7+.

2013-06-08 Thread Kenneth Graunke
We always allocate the maximum amount of space and never change it, so it makes sense to do it once. Programming it on startup also lets us skip re-programming it from BLORP. This removes a tiny amount of overhead from our drawing loop. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i

[Mesa-dev] [PATCH 6/8] i965: Disable unused pipeline stages once at startup on Gen7+.

2013-06-08 Thread Kenneth Graunke
This removes a tiny bit of code from our drawing loop. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_state.h| 4 +++- src/mesa/drivers/dri/i965/brw_state_upload.c | 5 - src/mesa/drivers/dri/i965/gen7_disable.c | 13 ++--- 3 files changed, 9 insertion

[Mesa-dev] [PATCH 5/8] i965: Don't emit PIPELINE_SELECT from BLORP.

2013-06-08 Thread Kenneth Graunke
Now that we emit invariant state at startup (and never select the media pipeline), the 3D pipeline will always already be selected, even if BLORP is the first operation. So this is unnecessary. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/gen6_blorp.cpp | 18 --

[Mesa-dev] [PATCH 4/8] i965: Emit invariant state once at startup on Gen6+.

2013-06-08 Thread Kenneth Graunke
Now that we have hardware contexts, we can safely initialize our GPU state once at startup, rather than needing a state atom with the BRW_NEW_CONTEXT flag set. This removes a tiny bit of code from our drawing loop. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_misc_state.c

[Mesa-dev] [PATCH 2/8] i965: Change return type of check_state() to bool.

2013-06-08 Thread Kenneth Graunke
The existing code already returned a boolean; this just clarifies that. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_state_upload.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_state_upload.c b/src/mesa/drivers/dri/i96

[Mesa-dev] [PATCH 3/8] i965: Delete some dead state atom prototypes.

2013-06-08 Thread Kenneth Graunke
These atoms don't actually exist. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_state.h | 9 - 1 file changed, 9 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_state.h b/src/mesa/drivers/dri/i965/brw_state.h index 8d886be..9afc6bb 100644 --- a/src/mesa/drive

[Mesa-dev] [PATCH 1/8] i965: Remove unused second parameter of brw_print_dirty_count().

2013-06-08 Thread Kenneth Graunke
Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_state_upload.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) This series is also available on the 'state5' branch of ~kwg/mesa. diff --git a/src/mesa/drivers/dri/i965/brw_state_upload.c b/src/mesa/drivers/dri/i965

[Mesa-dev] [PATCH] util: new util_fill_box helper

2013-06-08 Thread sroland
From: Roland Scheidegger Use new util_fill_box helper for util_clear_render_target. (Also fix off-by-one map error.) --- src/gallium/auxiliary/util/u_surface.c | 39 +-- src/gallium/auxiliary/util/u_surface.h |7 + src/gallium/drivers/llvmpipe/lp_rast.c | 54 +

Re: [Mesa-dev] [PATCH] glsl: Allow the use of determinant() in GLSL 1.50.

2013-06-08 Thread Matt Turner
On Sat, Jun 8, 2013 at 12:11 AM, Kenneth Graunke wrote: > We already implemented this for ES3, so we just need to turn it on. > > Fixes 6 Piglit tests: > spec/glsl-1.50/compiler/built-in-functions/determinant-mat[234].{vert,frag} Reviewed-by: Matt Turner _

[Mesa-dev] [PATCH 3/3] Remove gl_config::haveDepthBuffer, haveAccumBuffer, haveStencilBuffer fields

2013-06-08 Thread Arnas Milasevicius
Changed code checking `if(visual->haveStencilBuffer)` to `if(visual->stencilBits > 0)` --- src/gallium/state_trackers/dri/common/dri_screen.c | 2 +- src/mesa/drivers/dri/nouveau/nouveau_context.c | 4 ++-- src/mesa/main/clear.c | 2 +- src/mesa/main/context.c

[Mesa-dev] [PATCH 2/3] Remove gl_config::haveDepthBuffer, haveAccumBuffer, haveStencilBuffer fields

2013-06-08 Thread Arnas Milasevicius
Changed code checking `if(visual->haveAccumBuffer)` to `if(visual->accumRedBits + visual->accumGreenBits + visual->accumBlueBits + visual->accumAlphaBits) > 0)` --- src/mesa/main/accum.c | 2 +- src/mesa/main/clear.c | 2 +- src/mesa/main/context.c | 2 +- 3 files changed, 3 insertions(+), 3

[Mesa-dev] [PATCH 1/3] Remove gl_config::haveDepthBuffer, haveAccumBuffer, haveStencilBuffer fields

2013-06-08 Thread Arnas Milasevicius
Changed code checking `if(visual->haveDepthBuffer)` to `if(visual->DepthBits > 0)` --- src/gallium/state_trackers/dri/common/dri_screen.c | 2 +- src/mesa/drivers/dri/nouveau/nouveau_context.c | 4 ++-- src/mesa/main/clear.c | 2 +- src/mesa/main/context.c

[Mesa-dev] [PATCH] gallium egl: mark KHR_create_context as supported

2013-06-08 Thread Gregory Hainaut
Don't know why it was not already activated! Code seem to be common between dri2 and gallium. Piglit tested on r600 gallium. --- src/gallium/state_trackers/egl/common/egl_g3d.c |1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/state_trackers/egl/common/egl_g3d.c b/src/gallium/st

[Mesa-dev] [PATCH] glsl: Allow the use of determinant() in GLSL 1.50.

2013-06-08 Thread Kenneth Graunke
We already implemented this for ES3, so we just need to turn it on. Fixes 6 Piglit tests: spec/glsl-1.50/compiler/built-in-functions/determinant-mat[234].{vert,frag} Signed-off-by: Kenneth Graunke --- src/glsl/builtins/profiles/150.glsl | 4 1 file changed, 4 insertions(+) diff --git a/sr