[Mesa-dev] [PATCH 1/2] glx: Simplify __glxGetMscRate, it only needs the screen, not a drawable

2013-12-15 Thread Lauri Kasanen
Useful in its own right, but also needed for adaptive vsync. Last mail was accidentally wrapped. Signed-off-by: Lauri Kasanen --- src/glx/dri_common.c | 2 +- src/glx/glxclient.h | 2 +- src/glx/glxcmds.c| 6 ++ 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/glx/dri

[Mesa-dev] [PATCH 2/2] glx/dri2: Add support for adaptive vsync

2013-12-15 Thread Lauri Kasanen
There is a GLX extension for this behavior, glx_swap_control_tear, which mesa doesn't support ATM. But as usual, even after it becomes supported, there will be thousands of applications that won't add support for it, necessitating the need for a user override. v2: - Removed mistaken EGL X11 line

[Mesa-dev] [PATCH] mesa: update khrplatform.h for Win64 support

2013-12-15 Thread Jonathan Liu
Signed-off-by: Jonathan Liu --- include/KHR/khrplatform.h | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/include/KHR/khrplatform.h b/include/KHR/khrplatform.h index 4479539..46730cd 100644 --- a/include/KHR/khrplatform.h +++ b/include/KHR/khrplatform.h @@ -26,

[Mesa-dev] [PATCH 1/1] i915: Add support for gl_FragData[0] reads.

2013-12-15 Thread Henri Verbeet
Similar to 556a47a2621073185be83a0a721a8ba93392bedb, without this reading from gl_FragData[0] would cause a software fallback. Bugzilla: https://bugs.winehq.org/show_bug.cgi?id=33964 Signed-off-by: Henri Verbeet Cc: 10.0 9.2 9.1 --- src/mesa/drivers/dri/i915/i915_fragprog.c |1 + 1 file cha

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

2013-12-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=50754 --- Comment #27 from Alexandre Demers --- The proposed patch here is a trivial change. It fixes the reported bug by moving LT_INIT where it should be according to the documentation (it needs to know the full content of (AM_)C(XX)FLAGS variables)

[Mesa-dev] [PATCH 0/3] Buffer creation and consistency

2013-12-15 Thread Jan Vesely
Hi, this series fixes clCreatBUffer and buffer-flags piglit tests. The first two patches add just error checking, the last patch fixes memory initialization when using CL_MEM_USE_HOST_PTR flag. regards, Jan Jan Vesely (3): clover: Check invalid flag combinations in clCreateBuffer. clover: Ch

[Mesa-dev] [PATCH 3/3] clover: Append buffers that use CL_MEM_USE_HOST_PTR

2013-12-15 Thread Jan Vesely
Specs say it's legal for implementations to use internal copies, and the write synchronization seems to work. Fixes clCreateBuffer (together with previous patches) and buffer-flags piglits. Signed-off-by: Jan Vesely --- src/gallium/state_trackers/clover/core/memory.cpp | 2 +- 1 file changed, 1

[Mesa-dev] [PATCH 2/3] clover: Check allocation size against context maximum

2013-12-15 Thread Jan Vesely
From: Jan Vesely Check maximum size across all devices in the context Signed-off-by: Jan Vesely --- src/gallium/state_trackers/clover/api/memory.cpp | 2 +- src/gallium/state_trackers/clover/core/context.cpp | 11 +++ src/gallium/state_trackers/clover/core/context.hpp | 2 ++ 3 fil

[Mesa-dev] [PATCH 1/3] clover: Check invalid flag combinations in clCreateBuffer.

2013-12-15 Thread Jan Vesely
Signed-off-by: Jan Vesely --- src/gallium/state_trackers/clover/api/memory.cpp | 15 +++ 1 file changed, 15 insertions(+) diff --git a/src/gallium/state_trackers/clover/api/memory.cpp b/src/gallium/state_trackers/clover/api/memory.cpp index 785a509..15f5b7f 100644 --- a/src/gallium/

[Mesa-dev] [Bug 72708] Master fails to build with older gcc due to -msse4.1

2013-12-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=72708 --- Comment #1 from Matt Turner --- -msse4.1 has existed in gcc since 4.3. 4.3 was released five and a half years ago. Why are you using something older than that? Sounds like you've got a good idea how to solve it. Send a patch and I'll review

[Mesa-dev] glBlitFramebuffer and sRGB vs piglit

2013-12-15 Thread Marek Olšák
Hi everybody, There is an inconsistence in the piglit glBlitFramebuffer tests. If both src and dst are sRGB, piglit expects this from glBlitFramebuffer: if (dst.num_samples == 1 && src.num_samples > 1) { enable the sRGB->linear conversion for src reads and the linear->sRGB conversion for ds

[Mesa-dev] [PATCH] llvmpipe: use pipe_sampler_view_release() to avoid segfault

2013-12-15 Thread Jonathan Liu
This fixes another case of faulting when freeing a pipe_sampler_view that belongs to a previously destroyed context. Signed-off-by: Jonathan Liu --- src/gallium/drivers/llvmpipe/lp_state_sampler.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/drivers/llvmpipe/lp_state_sam

[Mesa-dev] [PATCH] configure.ac: remove -fcolor-diagnostics from LLVM flags

2013-12-15 Thread Markus Trippelsdorf
When LLVM is build with Clang, "llvm-config --cxxflags" contains the -fcolor-diagnostics flag. It is not recognized by gcc and the build fails. Fix by removing the flag. Signed-off-by: Markus Trippelsdorf diff --git a/configure.ac b/configure.ac index c14d39a285a6..da8be8b02f3e 100644 --- a/conf

[Mesa-dev] gallium endianness and hw drivers

2013-12-15 Thread Dave Airlie
So the llvmpipe endian work broke the nouveau nv40 support for the nv43 in the ppc G5 a few people have, Now I'm not really sure how this is supposed to be fixed, the gallium driver exports the formats it supports, which doesn't include the translated formats for PIPE_FORMAT_BGRA and PIPE_FOR

Re: [Mesa-dev] [PATCH 1/3] clover: Check invalid flag combinations in clCreateBuffer.

2013-12-15 Thread Francisco Jerez
Jan Vesely writes: > Signed-off-by: Jan Vesely > --- > src/gallium/state_trackers/clover/api/memory.cpp | 15 +++ > 1 file changed, 15 insertions(+) > > diff --git a/src/gallium/state_trackers/clover/api/memory.cpp > b/src/gallium/state_trackers/clover/api/memory.cpp > index 785a50

Re: [Mesa-dev] [PATCH 2/3] clover: Check allocation size against context maximum

2013-12-15 Thread Francisco Jerez
Jan Vesely writes: > From: Jan Vesely > > Check maximum size across all devices in the context > > Signed-off-by: Jan Vesely > --- > src/gallium/state_trackers/clover/api/memory.cpp | 2 +- > src/gallium/state_trackers/clover/core/context.cpp | 11 +++ > src/gallium/state_trackers/c

Re: [Mesa-dev] [PATCH 3/3] clover: Append buffers that use CL_MEM_USE_HOST_PTR

2013-12-15 Thread Francisco Jerez
Jan Vesely writes: > Specs say it's legal for implementations to use internal copies, > and the write synchronization seems to work. > Fixes clCreateBuffer (together with previous patches) > and buffer-flags piglits. > > Signed-off-by: Jan Vesely > --- > src/gallium/state_trackers/clover/core/