[Mesa-dev] [PATCH] Channels alive in fast clear

2014-03-24 Thread Kevin Rogovin
When deciding if a clear color is suitable for fast clear, take into account if a color channel is active in the buffer format. --- src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp b/

[Mesa-dev] [Bug 76579] [swrast] piglit glean fbo regression

2014-03-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=76579 --- Comment #2 from Chris Forbes --- Patch as promised: http://lists.freedesktop.org/archives/piglit/2014-March/010089.html -- You are receiving this mail because: You are the assignee for the bug. _

Re: [Mesa-dev] [PATCH] gallivm: fix no-op n:n lp_build_resize()

2014-03-24 Thread Zack Rusin
Looks good to me. z - Original Message - > From: Roland Scheidegger > > This can get called in some circumstances if both src type and dst type > have same width (seen with float32->unorm32). While this particular case > was bogus anyway let's just fix that as it can work trivially (due

[Mesa-dev] [Bug 76579] [swrast] piglit glean fbo regression

2014-03-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=76579 --- Comment #1 from Chris Forbes --- I believe the glean test is wrong. The completeness conditions are listed in this order in EXT_framebuffer_object, ARB_framebuffer_object, and the core spec. I'm not sure there's much point to keeping glean'

[Mesa-dev] [Bug 76579] New: [swrast] piglit glean fbo regression

2014-03-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=76579 Priority: medium Bug ID: 76579 Keywords: regression CC: bri...@vmware.com, chr...@ijw.co.nz Assignee: mesa-dev@lists.freedesktop.org Summary: [swrast] piglit glean fbo regression

[Mesa-dev] [PATCH] gallivm: fix no-op n:n lp_build_resize()

2014-03-24 Thread sroland
From: Roland Scheidegger This can get called in some circumstances if both src type and dst type have same width (seen with float32->unorm32). While this particular case was bogus anyway let's just fix that as it can work trivially (due to the way it was called it actually worked anyway apart fro

[Mesa-dev] [Bug 76577] egl_dri2.c:507:27: error: 'EGL_OPENGL_ES3_BIT_KHR' undeclared (first use in this function)

2014-03-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=76577 Dâniel Fraga changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 76577] egl_dri2.c:507:27: error: 'EGL_OPENGL_ES3_BIT_KHR' undeclared (first use in this function)

2014-03-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=76577 Dâniel Fraga changed: What|Removed |Added Assignee|dri-devel@lists.freedesktop |mesa-dev@lists.freedesktop.

[Mesa-dev] [Bug 76489] Mesa git (011569b5b7) compilation issue: render2.c:49:4: error: implicit declaration of function '__glMap1d_size' [-Werror=implicit-function-declaration]

2014-03-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=76489 Dâniel Fraga changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [Mesa-dev] [PATCH] haiku: Fix build through scons corrections and viewport fixes

2014-03-24 Thread Alexander von Gluck IV
On 03/24/2014 04:59 PM, Ian Romanick wrote: > On 03/22/2014 03:58 PM, Alexander von Gluck IV wrote: >> * Add HAVE_PTHREAD, we do have pthread support wrappers now for >> non-native Haiku threaded applications. >> * Viewport changed behavior recently breaking the build. >> We fix this by looking

Re: [Mesa-dev] [Mesa-stable] [PATCH] glsl: Allow overlapping locations for vertex input attributes

2014-03-24 Thread Anuj Phogat
Sent out a V2 of this patch which fixes a bug I noticed recently. On Thu, Mar 13, 2014 at 3:39 PM, Anuj Phogat wrote: > > > > On Tue, Mar 11, 2014 at 10:37 AM, Ian Romanick wrote: >> >> On 03/10/2014 04:15 PM, Anuj Phogat wrote: >> > >> > >> > >> > On Mon, Mar 10, 2014 at 3:27 PM, Ian Romanick >

[Mesa-dev] [PATCH V2] glsl: Allow overlapping locations for vertex input attributes

2014-03-24 Thread Anuj Phogat
Currently overlapping locations of input variables are not allowed for all the shader types in OpenGL and OpenGL ES. >From OpenGL ES 3.0 spec, page 56: "Binding more than one attribute name to the same location is referred to as aliasing, and is not permitted in OpenGL ES Shading Language

[Mesa-dev] [PATCH 3/3] svga: add work-around for Sauerbraten Z fighting issue

2014-03-24 Thread Brian Paul
--- src/gallium/drivers/svga/svga_context.c | 33 ++ src/gallium/drivers/svga/svga_context.h |5 src/gallium/drivers/svga/svga_state_need_swtnl.c | 13 +++-- 3 files changed, 49 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/s

[Mesa-dev] [PATCH 2/3] svga: null out query's hwbuf pointer after destroying

2014-03-24 Thread Brian Paul
Just to be extra safe. --- src/gallium/drivers/svga/svga_pipe_query.c |1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/svga/svga_pipe_query.c b/src/gallium/drivers/svga/svga_pipe_query.c index cdf463c..0283aa9 100644 --- a/src/gallium/drivers/svga/svga_pipe_query.c +++ b

[Mesa-dev] [PATCH 1/3] svga: add some debug_printf() calls in the query object code

2014-03-24 Thread Brian Paul
To help debug failures. --- src/gallium/drivers/svga/svga_pipe_query.c |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/svga/svga_pipe_query.c b/src/gallium/drivers/svga/svga_pipe_query.c index 61085c4..cdf463c 100644 --- a/src/gallium/drivers/svg

[Mesa-dev] [PATCH] st/mesa: add null pointer checking in query object functions

2014-03-24 Thread Brian Paul
Don't pass null query object pointers into gallium functions. This avoids segfaulting in the VMware driver (and others?) if the pipe_context::create_query() call fails and returns NULL. Cc: "10.0" "10.1" --- src/mesa/state_tracker/st_cb_queryobj.c | 18 -- 1 file changed, 16 in

Re: [Mesa-dev] EXTERNAL: Re: OpenCL/clover buffers vs images

2014-03-24 Thread Dorrington, Albert
The kernel I'm working with is rather simple: const sampler_t s_nearest = CLK_FILTER_NEAREST | CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_NONE; __kernel void image_test (__read_only image2d_t im, __global float4 *out) { out[ 0] = read_imagef (im, s_nearest, (int2) (0, 0)); } Using the Catalys

Re: [Mesa-dev] [PATCH] haiku: Fix build through scons corrections and viewport fixes

2014-03-24 Thread Ian Romanick
On 03/22/2014 03:58 PM, Alexander von Gluck IV wrote: > * Add HAVE_PTHREAD, we do have pthread support wrappers now for > non-native Haiku threaded applications. > * Viewport changed behavior recently breaking the build. > We fix this by looking at the gl_context ViewportArray > (Thanks Brian

Re: [Mesa-dev] [PATCH 2/3] mesa: Skip clearing color buffers when color writes are disabled.

2014-03-24 Thread Kenneth Graunke
On 03/24/2014 08:07 AM, Brian Paul wrote: > On 03/24/2014 02:52 AM, Kenneth Graunke wrote: >> WebGL Aquarium in Chrome 24 actually hits this. >> >> v2: Move to core Mesa (wisely suggested by Ian); only consider >> components which actually exist. >> >> v3: Use _mesa_format_has_color_component

Re: [Mesa-dev] [PATCH] mesa: In core profile, refuse to draw unless a VAO is bound.

2014-03-24 Thread Ian Romanick
On 03/20/2014 11:53 AM, Kenneth Graunke wrote: > Core profile requires a non-default VAO to be bound. Currently, calls > to glVertexAttribPointer raise INVALID_OPERATION unless a VAO is bound, > and we never actually get any vertex data set. Trying to draw without > any vertex data can only cause

Re: [Mesa-dev] [PATCH 1/3] mesa: Introduce a _mesa_format_has_color_component() helper.

2014-03-24 Thread Eric Anholt
Kenneth Graunke writes: > When considering color write masks, we often want to know whether an > RGBA component actually contains any meaningful data. This function > provides an easy way to answer that question, and handles luminance, > intensity, and alpha formats correctly. > > Signed-off-by:

Re: [Mesa-dev] OpenCL/clover buffers vs images

2014-03-24 Thread Tom Stellard
On Mon, Mar 24, 2014 at 02:35:04PM +, Dorrington, Albert wrote: > I have been experimenting with adding image support to the clover > implementation, and have been trying to understand the differences between > the existing buffer support and what would be required to support images. > > Fro

[Mesa-dev] [Bug 76489] Mesa git (011569b5b7) compilation issue: render2.c:49:4: error: implicit declaration of function '__glMap1d_size' [-Werror=implicit-function-declaration]

2014-03-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=76489 --- Comment #7 from Dâniel Fraga --- Created attachment 96313 --> https://bugs.freedesktop.org/attachment.cgi?id=96313&action=edit Preprocessed source (indirect_init.c) -- You are receiving this mail because: You are the assignee for the bug.

[Mesa-dev] [Bug 76489] Mesa git (011569b5b7) compilation issue: render2.c:49:4: error: implicit declaration of function '__glMap1d_size' [-Werror=implicit-function-declaration]

2014-03-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=76489 --- Comment #6 from Dâniel Fraga --- (In reply to comment #5) > gcc -E will help you out. Note that I'm not passionate at looking through > and comparing the mile long preprocessed sources so I'd leave that pleasure > to you :) No problem! ;) I

Re: [Mesa-dev] [PATCH 2/2] llvmpipe: Simplify vertex and geometry shaders.

2014-03-24 Thread Zack Rusin
The series looks great to me. - Original Message - > From: José Fonseca > > Eliminate lp_vertex_shader, as it added nothing over draw_vertex_shader. > > Simplify lp_geometry_shader, as most of the incoming state is unneeded. > (We could also just use draw_geometry_shader if we were will

Re: [Mesa-dev] [PATCH 2/2] llvmpipe: Simplify vertex and geometry shaders.

2014-03-24 Thread Roland Scheidegger
Am 24.03.2014 16:31, schrieb jfons...@vmware.com: > From: José Fonseca > > Eliminate lp_vertex_shader, as it added nothing over draw_vertex_shader. > > Simplify lp_geometry_shader, as most of the incoming state is unneeded. > (We could also just use draw_geometry_shader if we were willing to pee

Re: [Mesa-dev] [PATCH 11/12] i965/vec4: Eliminate writes that are never read.

2014-03-24 Thread Matt Turner
On Thu, Mar 20, 2014 at 12:28 PM, Eric Anholt wrote: > Matt Turner writes: > >> With an awful O(n^2) algorithm that searches previous instructions for >> dead writes. >> >> total instructions in shared programs: 805582 -> 788074 (-2.17%) >> instructions in affected programs: 144561 -> 127053

Re: [Mesa-dev] RFC: Fixing XBMC crash with NV_vdpau_interop

2014-03-24 Thread Roland Scheidegger
Am 23.03.2014 12:36, schrieb Christian König: > Am 22.03.2014 23:33, schrieb Brian Paul: >> On Sat, Mar 22, 2014 at 2:49 PM, Christian König >> mailto:deathsim...@vodafone.de>> wrote: >> >> Hi guys, >> >> recently some XBMC users complained about crashes with the >> relatively new NV_vd

Re: [Mesa-dev] [PATCH 2/2] i965: Change the winsys MSAA blits from blorp to meta.

2014-03-24 Thread Eric Anholt
Kenneth Graunke writes: > On 03/21/2014 06:27 PM, Eric Anholt wrote: >> This gets us equivalent code paths on BDW and pre-BDW, except for stencil >> (where we don't have MSAA stencil resolve code yet) >> >> v2: Move the new meta code to brw_meta_updownsample.c, name it >> brw_meta_updownsamp

[Mesa-dev] OpenCL/clover buffers vs images

2014-03-24 Thread Dorrington, Albert
I have been experimenting with adding image support to the clover implementation, and have been trying to understand the differences between the existing buffer support and what would be required to support images. >From what I'm gathering, buffers are laid out in VRAM in a linear format, >whil

Re: [Mesa-dev] [PATCH 09/10] mesa: Add support to unpack depth-stencil texture in to FLOAT_32_UNSIGNED_INT_24_8_REV

2014-03-24 Thread Roland Scheidegger
Am 22.03.2014 18:15, schrieb Brian Paul: > On 03/21/2014 04:01 PM, Anuj Phogat wrote: >> Cc: >> Signed-off-by: Anuj Phogat >> --- >> src/mesa/main/format_unpack.c | 79 >> ++- >> src/mesa/main/format_unpack.h | 5 +++ >> 2 files changed, 83 insertions(

Re: [Mesa-dev] [PATCH 1/3] st/mesa: recreate sampler view on context change v2

2014-03-24 Thread Christian König
Am 24.03.2014 17:13, schrieb Brian Paul: On 03/24/2014 10:04 AM, Christian König wrote: Am 24.03.2014 16:36, schrieb Brian Paul: On 03/24/2014 08:06 AM, Christian König wrote: From: Christian König With shared glx contexts it is possible that a texture is create and used in one context and t

[Mesa-dev] [PATCH 1/3] st/mesa: recreate sampler view on context change v2

2014-03-24 Thread Christian König
From: Christian König With shared glx contexts it is possible that a texture is create and used in one context and then used in another one resulting in incorrect sampler view usage. v2: avoid template copy Signed-off-by: Christian König Cc: "10.0 10.1" --- src/mesa/state_tracker/st_atom_tex

[Mesa-dev] [PATCH 3/3] st/mesa: Revert use pipe_sampler_view_release() v2

2014-03-24 Thread Christian König
From: Christian König The original problem is fixed by now. This reverts commit 670be71bd801fea876f7512865ed5f54340da9be. v2: update patch text and remove stable CC Signed-off-by: Christian König --- src/mesa/state_tracker/st_atom_texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

[Mesa-dev] [PATCH 2/3] st/mesa: fix sampler view handling with shared textures v3

2014-03-24 Thread Christian König
From: Christian König Release the references to the sampler views before destroying the pipe context. v2: remove TODO and unrelated change v3: move to st_texture.[ch], rename callback, add comment Signed-off-by: Christian König Cc: "10.0 10.1" --- src/mesa/state_tracker/st_context.c | 16 +++

Re: [Mesa-dev] [PATCH 3/3] st/mesa: Revert use pipe_sampler_view_release()

2014-03-24 Thread Christian König
Am 24.03.2014 16:36, schrieb Brian Paul: On 03/24/2014 08:06 AM, Christian König wrote: From: Christian König The original problem is fixed by now and unconditionally destroying the sampler view, which is possible still referenced elsewhere, is a really bad idea also. This reverts commit 670b

Re: [Mesa-dev] [PATCH 1/3] st/mesa: recreate sampler view on context change v2

2014-03-24 Thread Brian Paul
On 03/24/2014 10:04 AM, Christian König wrote: Am 24.03.2014 16:36, schrieb Brian Paul: On 03/24/2014 08:06 AM, Christian König wrote: From: Christian König With shared glx contexts it is possible that a texture is create and used in one context and then used in another one resulting in incor

Re: [Mesa-dev] [PATCH 1/3] st/mesa: recreate sampler view on context change v2

2014-03-24 Thread Christian König
Am 24.03.2014 16:36, schrieb Brian Paul: On 03/24/2014 08:06 AM, Christian König wrote: From: Christian König With shared glx contexts it is possible that a texture is create and used in one context and then used in another one resulting in incorrect sampler view usage. v2: avoid template c

Re: [Mesa-dev] [PATCH 1/3] st/mesa: recreate sampler view on context change v2

2014-03-24 Thread Brian Paul
On 03/24/2014 08:06 AM, Christian König wrote: From: Christian König With shared glx contexts it is possible that a texture is create and used in one context and then used in another one resulting in incorrect sampler view usage. v2: avoid template copy Signed-off-by: Christian König Cc: "10

Re: [Mesa-dev] [PATCH 2/3] st/mesa: fix sampler view handling with shared textures v2

2014-03-24 Thread Brian Paul
On 03/24/2014 08:06 AM, Christian König wrote: From: Christian König Release the references to the sampler views before destroying the pipe context. v2: remove TODO and unrelated change Signed-off-by: Christian König Cc: "10.0 10.1" --- src/mesa/state_tracker/st_atom.h | 2 ++ s

Re: [Mesa-dev] [PATCH 1/2] draw: Duplicate TGSI tokens in draw_pipe_pstipple module.

2014-03-24 Thread Brian Paul
On 03/24/2014 09:31 AM, jfons...@vmware.com wrote: From: José Fonseca As done in draw_pipe_aaline and draw_pipe_aapoint modules. --- src/gallium/auxiliary/draw/draw_pipe_pstipple.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/draw/draw_pipe_psti

Re: [Mesa-dev] [PATCH 3/3] st/mesa: Revert use pipe_sampler_view_release()

2014-03-24 Thread Brian Paul
On 03/24/2014 08:06 AM, Christian König wrote: From: Christian König The original problem is fixed by now and unconditionally destroying the sampler view, which is possible still referenced elsewhere, is a really bad idea also. This reverts commit 670be71bd801fea876f7512865ed5f54340da9be. Sig

Re: [Mesa-dev] [PATCH 1/2] draw: Duplicate TGSI tokens in draw_pipe_pstipple module.

2014-03-24 Thread Jose Fonseca
- Original Message - > On 03/24/2014 09:31 AM, jfons...@vmware.com wrote: > > From: José Fonseca > > > > As done in draw_pipe_aaline and draw_pipe_aapoint modules. > > --- > > src/gallium/auxiliary/draw/draw_pipe_pstipple.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) >

Re: [Mesa-dev] [PATCH 2/2] llvmpipe: Simplify vertex and geometry shaders.

2014-03-24 Thread Brian Paul
On 03/24/2014 09:31 AM, jfons...@vmware.com wrote: From: José Fonseca Eliminate lp_vertex_shader, as it added nothing over draw_vertex_shader. Simplify lp_geometry_shader, as most of the incoming state is unneeded. (We could also just use draw_geometry_shader if we were willing to peek inside

[Mesa-dev] [Bug 69874] Automake throws a lot of "[...] option 'subdir-objects' is disabled"

2014-03-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=69874 Fabio Pedretti changed: What|Removed |Added CC||fabio@libero.it -- You are receivi

[Mesa-dev] [PATCH 1/2] draw: Duplicate TGSI tokens in draw_pipe_pstipple module.

2014-03-24 Thread jfonseca
From: José Fonseca As done in draw_pipe_aaline and draw_pipe_aapoint modules. --- src/gallium/auxiliary/draw/draw_pipe_pstipple.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/draw/draw_pipe_pstipple.c b/src/gallium/auxiliary/draw/draw_pipe_pstipple

[Mesa-dev] [PATCH 2/2] llvmpipe: Simplify vertex and geometry shaders.

2014-03-24 Thread jfonseca
From: José Fonseca Eliminate lp_vertex_shader, as it added nothing over draw_vertex_shader. Simplify lp_geometry_shader, as most of the incoming state is unneeded. (We could also just use draw_geometry_shader if we were willing to peek inside the structure.) --- src/gallium/drivers/llvmpipe/lp_

Re: [Mesa-dev] [PATCH 2/3] mesa: Skip clearing color buffers when color writes are disabled.

2014-03-24 Thread Brian Paul
On 03/24/2014 02:52 AM, Kenneth Graunke wrote: WebGL Aquarium in Chrome 24 actually hits this. v2: Move to core Mesa (wisely suggested by Ian); only consider components which actually exist. v3: Use _mesa_format_has_color_component to determine whether components actually exist, fixin

Re: [Mesa-dev] [PATCH 1/3] mesa: Introduce a _mesa_format_has_color_component() helper.

2014-03-24 Thread Brian Paul
On 03/24/2014 02:52 AM, Kenneth Graunke wrote: When considering color write masks, we often want to know whether an RGBA component actually contains any meaningful data. This function provides an easy way to answer that question, and handles luminance, intensity, and alpha formats correctly. Si

[Mesa-dev] [Bug 76530] account request

2014-03-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=76530 Brian Paul changed: What|Removed |Added Assignee|mesa-dev@lists.freedesktop. |sitewranglers@lists.freedes

Re: [Mesa-dev] [PATCH] mesa: Generate FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT earlier

2014-03-24 Thread Brian Paul
On 03/23/2014 03:41 AM, Chris Forbes wrote: The ARB_framebuffer_object spec lists this case before the FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER and FRAMEBUFFER_INCOMPLETE_READ_BUFFER cases. Fixes two broken cases in piglit's fbo-incomplete test, if ARB_ES2_compatibility is not advertised. (If it is, t

Re: [Mesa-dev] [PATCH] mesa: Fix format matching checks for GL_INTENSITY* internalformats.

2014-03-24 Thread Brian Paul
On 03/23/2014 03:07 AM, Chris Forbes wrote: GL_INTENSITY has never been valid as a pixel format -- to get the memcpy pack/unpack paths, the app needs to specify GL_RED as the pixel format (or GL_RED_INTEGER for the integer formats). Signed-off-by: Chris Forbes --- src/mesa/main/formats.c | 20

Re: [Mesa-dev] [PATCH] haiku: Fix build through scons corrections and viewport fixes

2014-03-24 Thread Brian Paul
On 03/22/2014 04:58 PM, Alexander von Gluck IV wrote: * Add HAVE_PTHREAD, we do have pthread support wrappers now for non-native Haiku threaded applications. * Viewport changed behavior recently breaking the build. We fix this by looking at the gl_context ViewportArray (Thanks Brian for

Re: [Mesa-dev] [RFC PATCH 1/5] i965: Add writes_accumulator flag

2014-03-24 Thread Juha-Pekka Heikkilä
I think I would need some hints here, I don't know how to test my changes now properly. On Sat, Mar 22, 2014 at 8:26 AM, Matt Turner wrote: > On Fri, Mar 21, 2014 at 11:17 PM, Matt Turner wrote: >> On Fri, Mar 21, 2014 at 7:33 AM, Juha-Pekka Heikkila >> wrote: >>> Our hardware has an "accumulat

Re: [Mesa-dev] [PIGLIT,radeonsi] crash in spec/glsl-1.50/execution/geometry/max-input-components – who's bug is it?

2014-03-24 Thread Brian Paul
On 03/22/2014 01:53 PM, Kai Wasserbäch wrote: Dear Mesa devs, I'm not sure whether this is a bug in Mesa, LLVM or in eglibc. The crash happens in _int_malloc, but since that is certainly one of the more often used functions, I'm not yet convinced, the fault lies indeed with eglibc. Therefore I'm

[Mesa-dev] [PATCH 2/3] st/mesa: fix sampler view handling with shared textures v2

2014-03-24 Thread Christian König
From: Christian König Release the references to the sampler views before destroying the pipe context. v2: remove TODO and unrelated change Signed-off-by: Christian König Cc: "10.0 10.1" --- src/mesa/state_tracker/st_atom.h | 2 ++ src/mesa/state_tracker/st_atom_texture.c | 8 ++

[Mesa-dev] [PATCH 1/3] st/mesa: recreate sampler view on context change v2

2014-03-24 Thread Christian König
From: Christian König With shared glx contexts it is possible that a texture is create and used in one context and then used in another one resulting in incorrect sampler view usage. v2: avoid template copy Signed-off-by: Christian König Cc: "10.0 10.1" --- src/mesa/state_tracker/st_atom_tex

[Mesa-dev] [PATCH 3/3] st/mesa: Revert use pipe_sampler_view_release()

2014-03-24 Thread Christian König
From: Christian König The original problem is fixed by now and unconditionally destroying the sampler view, which is possible still referenced elsewhere, is a really bad idea also. This reverts commit 670be71bd801fea876f7512865ed5f54340da9be. Signed-off-by: Christian König Cc: "10.0 10.1" ---

Re: [Mesa-dev] [PATCH 0/8] Native GBM backends and map/unmap support

2014-03-24 Thread Ander Conselvan de Oliveira
On 03/17/2014 11:05 AM, Jammy Zhou wrote: Hi Ander, Some comments inline. And I have some further thinking about current GBM support, which is tied to specific implementation closely, although the GBM APIs are quite independent from mesa. I have some idea below to make GBM a generic solution. I

Re: [Mesa-dev] [PATCH 1/4] i965: Add an env var for forcing window system MSAA.

2014-03-24 Thread Kenneth Graunke
On 03/21/2014 05:45 PM, Eric Anholt wrote: > Sometimes it would be nice to benchmark some app with MSAA versus not, but > it doesn't offer the controls you want. Just provide a handy knob to > force the issue. > --- > src/mesa/drivers/dri/i965/intel_screen.c | 15 +++ > src/mesa/drive

Re: [Mesa-dev] [PATCH 2/2] i965: Change the winsys MSAA blits from blorp to meta.

2014-03-24 Thread Kenneth Graunke
On 03/21/2014 06:27 PM, Eric Anholt wrote: > This gets us equivalent code paths on BDW and pre-BDW, except for stencil > (where we don't have MSAA stencil resolve code yet) > > v2: Move the new meta code to brw_meta_updownsample.c, name it > brw_meta_updownsample(), add a comment about > i

[Mesa-dev] [PATCH 1/3] mesa: Introduce a _mesa_format_has_color_component() helper.

2014-03-24 Thread Kenneth Graunke
When considering color write masks, we often want to know whether an RGBA component actually contains any meaningful data. This function provides an easy way to answer that question, and handles luminance, intensity, and alpha formats correctly. Signed-off-by: Kenneth Graunke --- src/mesa/main/

[Mesa-dev] [PATCH 2/3] mesa: Skip clearing color buffers when color writes are disabled.

2014-03-24 Thread Kenneth Graunke
WebGL Aquarium in Chrome 24 actually hits this. v2: Move to core Mesa (wisely suggested by Ian); only consider components which actually exist. v3: Use _mesa_format_has_color_component to determine whether components actually exist, fixing alpha format handling. Signed-off-by: Kenneth Gr

[Mesa-dev] [PATCH 3/3] i965: For color clears, only disable writes to components that exist.

2014-03-24 Thread Kenneth Graunke
The SIMD16 replicated FB write message only works if we don't need the color calculator to mask our framebuffer writes. Previously, we bailed on it if color_mask wasn't . However, this was needlessly strict for formats with fewer than four components - only the components that actually exist matt