Re: [Mesa-dev] [PATCH 4/4] i965/blorp: allow all buffer formats provided src and dst match.

2012-06-06 Thread Kenneth Graunke
On 06/06/2012 12:20 PM, Paul Berry wrote: > Previously, blits using the "blorp" mechanism only worked for 8-bit > RGBA color buffers, 24-bit depth buffers, and 8 bit stencil buffers. > This was not enough, because the blorp mechanism must be used for > blitting whenever MSAA is in use. This patch

Re: [Mesa-dev] [PATCH 3/4] i965/blorp: Implement logic for additional buffer formats.

2012-06-06 Thread Kenneth Graunke
On 06/06/2012 12:20 PM, Paul Berry wrote: > Previously the blorp engine only supported RGBA8 color buffers and > 24-bit depth buffers. This patch adds support for any color buffer > format that is supported as a render target, and for 16-bit and 32-bit > depth buffers. > > This required threading

[Mesa-dev] [Bug 49088] MapsGL labels doen't render properly on nouveau, r600, i965

2012-06-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=49088 Kenneth Graunke changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Mesa-dev] [Bug 46376] display window will be black when run mesa demo gloss

2012-06-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46376 Gordon Jin changed: What|Removed |Added Version|8.0 |git Keywords|

Re: [Mesa-dev] Looking for advice on how MSAA should behave under sRGB

2012-06-06 Thread Paul Berry
On 6 June 2012 19:35, Roland Scheidegger wrote: > Am 07.06.2012 01:27, schrieb Paul Berry: > > In my current implementation of MSAA for i965, I'm facing a choice in > > how to perform MSAA resolves when sRGB is in use. Should I: > > > > (a) always combine samples using a linear average. For exa

Re: [Mesa-dev] Looking for advice on how MSAA should behave under sRGB

2012-06-06 Thread Roland Scheidegger
Am 07.06.2012 01:27, schrieb Paul Berry: > In my current implementation of MSAA for i965, I'm facing a choice in > how to perform MSAA resolves when sRGB is in use. Should I: > > (a) always combine samples using a linear average. For example, if > multisampling by a factor of 4, and the 4 sample

Re: [Mesa-dev] Looking for advice on how MSAA should behave under sRGB

2012-06-06 Thread James Cloos
Everything I've read over I don't know how many years, when comparing the choice between doing compositing in linear vs gamma-encoded rgb space has recommended that one alway using linear. And complained vociferously whenever compositing is done w/o first linearizing. Do b. And update those test

[Mesa-dev] [PATCH 2/2 v4] intel: wait render timeout implementation

2012-06-06 Thread Ben Widawsky
int drm_intel_gem_bo_wait(drm_intel_bo *bo, uint64_t timeout_ns) This should bump the libdrm version. We're waiting for context support so we can do both features in one bump. v2: don't return remaining timeout amount use get param and fallback for older kernels v3: only doing getparam at init p

[Mesa-dev] Looking for advice on how MSAA should behave under sRGB

2012-06-06 Thread Paul Berry
In my current implementation of MSAA for i965, I'm facing a choice in how to perform MSAA resolves when sRGB is in use. Should I: (a) always combine samples using a linear average. For example, if multisampling by a factor of 4, and the 4 samples corresponding to a pixel have color values of a,

Re: [Mesa-dev] [PATCH 3/3] intel: wait render timeout implementation

2012-06-06 Thread Ben Widawsky
On Wed, 6 Jun 2012 11:33:21 +0200 Daniel Vetter wrote: > On Tue, Jun 05, 2012 at 03:43:07PM -0700, Ben Widawsky wrote: > > int drm_intel_gem_bo_wait(drm_intel_bo *bo, uint64_t timeout_ns) > > > > This should bump the libdrm version. We're waiting for context support > > so we can do both feature

Re: [Mesa-dev] [PATCH 1/3] intel: sanitize i915_drm.h

2012-06-06 Thread Ben Widawsky
On Tue, 5 Jun 2012 11:58:11 -0700 Ben Widawsky wrote: > run make headers_isntall on d-i-n, copy to here > > Signed-off-by: Ben Widawsky This has been pushed with IRC Acked-by Kenneth Graunke > --- > include/drm/i915_drm.h |4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >

Re: [Mesa-dev] [PATCH 2/3] intel: wait render header updates

2012-06-06 Thread Ben Widawsky
On Tue, 5 Jun 2012 15:42:39 -0700 Ben Widawsky wrote: > make headers_install in kernel. Copy to here. > > v2: signed ns_timeout > > Cc: Chris Wilson > Signed-off-by: Ben Widawsky This has been pushed with IRC Acked-by Kenneth Graunke > --- > include/drm/i915_drm.h | 11 +++ > 1

[Mesa-dev] [Bug 50604] [compile error] ../../../../../src/mesa/libdricore/../main/api_arrayelt.c:45:27: fatal error: main/dispatch.h: No such file or directory

2012-06-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=50604 Robert Hooker (Sarvatt) changed: What|Removed |Added CC||sarv...@gmail.com -- Configur

[Mesa-dev] [Bug 50604] [compile error] ../../../../../src/mesa/libdricore/../main/api_arrayelt.c:45:27: fatal error: main/dispatch.h: No such file or directory

2012-06-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=50604 sacrediou changed: What|Removed |Added CC||sacred...@yahoo.fr -- Configure bugmail: ht

[Mesa-dev] [PATCH 4/4] i965/blorp: allow all buffer formats provided src and dst match.

2012-06-06 Thread Paul Berry
Previously, blits using the "blorp" mechanism only worked for 8-bit RGBA color buffers, 24-bit depth buffers, and 8 bit stencil buffers. This was not enough, because the blorp mechanism must be used for blitting whenever MSAA is in use. This patch allows all formats to be used, provided the source

[Mesa-dev] [PATCH 2/4] i965/blorp: De-virtualize brw_blorp_{mip, surface}_info::set() function.

2012-06-06 Thread Paul Berry
Even though brw_blorp_surface_info is derived from brw_blorp_mip_info, this function doesn't need to be virtual, because it is never accessed through a base class pointer. Making the function non-virtual will allow it to take additional parameters in the brw_blorp_surface_info case. --- src/mesa/

[Mesa-dev] [PATCH 3/4] i965/blorp: Implement logic for additional buffer formats.

2012-06-06 Thread Paul Berry
Previously the blorp engine only supported RGBA8 color buffers and 24-bit depth buffers. This patch adds support for any color buffer format that is supported as a render target, and for 16-bit and 32-bit depth buffers. This required threading the brw_context struct through into brw_blorp_surface

[Mesa-dev] [PATCH 1/4] i965/blorp: Refactor surface format determination.

2012-06-06 Thread Paul Berry
This patch moves the responsibility for deciding on the format of the source and destination surfaces from the gen{6,7}_blorp_emit_surface_state() functions to brw_blorp_surface_info::set(), which is shared between Gen6 and Gen7. This will make it possible to add support for more surface formats wi

Re: [Mesa-dev] [PATCH] st/vdpau: fix YCbCr down/up-loads for buffers larger than requested

2012-06-06 Thread Andy Furniss
Christian König wrote: When the video buffer turns out to be larger than requested by the application we shouldn't upload or download more data into / from it original requested. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=39309 Hi It doesn't fix decoding (for my 9600) - which that bu

Re: [Mesa-dev] [PATCH] glcpp: Pass through #line directives.

2012-06-06 Thread Carl Worth
Kenneth Graunke writes: > One bad thing about this patch is that it breaks 091-hash-line.c in glcpp's > unit test suite. I'm not sure what to do about that. I could update the > output, but the new output doesn't make much sense anymore...it gives you > lovely messages like: > > 0:4(1): prep

Re: [Mesa-dev] [PATCH] mesa: Return 8 bits for GL_TEXTURE_RED_SIZE on RGTC formats.

2012-06-06 Thread Brian Paul
On 06/06/2012 12:19 PM, Kenneth Graunke wrote: On 06/06/2012 06:43 AM, Brian Paul wrote: On 06/06/2012 07:35 AM, Brian Paul wrote: On 06/06/2012 12:57 AM, Kenneth Graunke wrote: From the issues section of the GL_ARB_texture_compression_rgtc extension: 15) What should glGetTexLevelParameter r

Re: [Mesa-dev] [PATCH] mesa: Return 8 bits for GL_TEXTURE_RED_SIZE on RGTC formats.

2012-06-06 Thread Kenneth Graunke
On 06/06/2012 06:43 AM, Brian Paul wrote: > On 06/06/2012 07:35 AM, Brian Paul wrote: >> On 06/06/2012 12:57 AM, Kenneth Graunke wrote: >>> From the issues section of the GL_ARB_texture_compression_rgtc >>> extension: >>> >>> 15) What should glGetTexLevelParameter return for >>> GL_TEXTURE_GREEN_SI

Re: [Mesa-dev] [PATCH] glsl: Fix pi/2 constant in acos built-in function

2012-06-06 Thread Paul Berry
On 6 June 2012 10:31, Kenneth Graunke wrote: > On 06/06/2012 05:16 AM, Olivier Galibert wrote: > > On Tue, Jun 05, 2012 at 04:51:54PM -0700, Paul Berry wrote: > >> The best idea I've got so far would be a shader_runner test with a > fragment > >> shader that computes dFdx(asin(x)), compares it to

Re: [Mesa-dev] [PATCH] glsl: Fix pi/2 constant in acos built-in function

2012-06-06 Thread Kenneth Graunke
On 06/06/2012 05:16 AM, Olivier Galibert wrote: > On Tue, Jun 05, 2012 at 04:51:54PM -0700, Paul Berry wrote: >> The best idea I've got so far would be a shader_runner test with a fragment >> shader that computes dFdx(asin(x)), compares it to the theoretical closed >> form derivative of asin(x) (wh

Re: [Mesa-dev] [PATCH] glsl: Clean up warnings about deleting classes without virtual destructors.

2012-06-06 Thread Kenneth Graunke
On 06/06/2012 10:13 AM, Eric Anholt wrote: > --- > src/glsl/ir.h | 10 ++ > 1 file changed, 10 insertions(+) > > diff --git a/src/glsl/ir.h b/src/glsl/ir.h > index 9c7961a..9f8698c 100644 > --- a/src/glsl/ir.h > +++ b/src/glsl/ir.h > @@ -89,6 +89,16 @@ class ir_instruction : public exec

[Mesa-dev] [PATCH] glsl: Clean up warnings about deleting classes without virtual destructors.

2012-06-06 Thread Eric Anholt
--- src/glsl/ir.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/src/glsl/ir.h b/src/glsl/ir.h index 9c7961a..9f8698c 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -89,6 +89,16 @@ class ir_instruction : public exec_node { public: enum ir_node_type ir_type; + /** +

[Mesa-dev] [PATCH] st/vdpau: fix YCbCr down/up-loads for buffers larger than requested

2012-06-06 Thread Christian König
When the video buffer turns out to be larger than requested by the application we shouldn't upload or download more data into / from it original requested. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=39309 Signed-off-by: Christian König --- src/gallium/state_trackers/vdpau/surface.c |

[Mesa-dev] [Bug 50782] the latest git mesa-17e0472 fails to build

2012-06-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=50782 Jos van Wolput changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Mesa-dev] [Bug 50782] the latest git mesa-17e0472 fails to build

2012-06-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=50782 --- Comment #1 from Brian Paul 2012-06-06 07:16:17 PDT --- What was your ./autogen.sh or ./configure command line? It builds here for me. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving thi

[Mesa-dev] [Bug 50754] Building 32 bit mesa on 64 bit OS fails since change for automake

2012-06-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=50754 Brian Paul changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|WORKSFORME

Re: [Mesa-dev] [PATCH] mesa: Return 8 bits for GL_TEXTURE_RED_SIZE on RGTC formats.

2012-06-06 Thread Brian Paul
On 06/06/2012 07:35 AM, Brian Paul wrote: On 06/06/2012 12:57 AM, Kenneth Graunke wrote: From the issues section of the GL_ARB_texture_compression_rgtc extension: 15) What should glGetTexLevelParameter return for GL_TEXTURE_GREEN_SIZE and GL_TEXTURE_BLUE_SIZE for the RGTC1 formats? What should

Re: [Mesa-dev] [PATCH] mesa: Return 8 bits for GL_TEXTURE_RED_SIZE on RGTC formats.

2012-06-06 Thread Brian Paul
On 06/06/2012 12:57 AM, Kenneth Graunke wrote: From the issues section of the GL_ARB_texture_compression_rgtc extension: 15) What should glGetTexLevelParameter return for GL_TEXTURE_GREEN_SIZE and GL_TEXTURE_BLUE_SIZE for the RGTC1 formats? What should glGetTexLevelParameter return f

Re: [Mesa-dev] [PATCH] glsl: Fix pi/2 constant in acos built-in function

2012-06-06 Thread Olivier Galibert
On Tue, Jun 05, 2012 at 04:51:54PM -0700, Paul Berry wrote: > The best idea I've got so far would be a shader_runner test with a fragment > shader that computes dFdx(asin(x)), compares it to the theoretical closed > form derivative of asin(x) (which is 1/sqrt(1-x^2)), and draws red pixels > if the

[Mesa-dev] [Bug 50782] New: the latest git mesa-17e0472 fails to build

2012-06-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=50782 Bug #: 50782 Summary: the latest git mesa-17e0472 fails to build Classification: Unclassified Product: Mesa Version: git Platform: x86-64 (AMD64) OS/Version: Linux (All)

Re: [Mesa-dev] [PATCH 3/3] intel: wait render timeout implementation

2012-06-06 Thread Daniel Vetter
On Tue, Jun 05, 2012 at 03:43:07PM -0700, Ben Widawsky wrote: > int drm_intel_gem_bo_wait(drm_intel_bo *bo, uint64_t timeout_ns) > > This should bump the libdrm version. We're waiting for context support > so we can do both features in one bump. > > v2: don't return remaining timeout amount > use

[Mesa-dev] [Bug 49480] CRV/MBY-Linux: Unable to install Skype on 64 but linux destros

2012-06-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=49480 Sunil Jose changed: What|Removed |Added Status|RESOLVED|CLOSED Resolution|NOTOURBUG

[Mesa-dev] [PATCH] glcpp: Pass through #line directives.

2012-06-06 Thread Kenneth Graunke
>From the GLSL 1.10 specification: #line must have, after macro substitution, one of the following forms: #line line #line line source-string-number" Previously, we handled #line directives completely within the glcpp lexer, which obviously precludes proper macro substitu