[Mesa-dev] [PATCH] st/mesa: make winsys fbo sRGB-capable when supported

2014-03-03 Thread Chia-I Wu
The texture formats of winsys fbo are always linear becase the st manager (st/dri for example) could not know the colorspace used. But it does not mean that we cannot make the fbo sRGB-capable. By - setting rb-Visual.sRGBCapable to GL_TRUE when the pipe driver supports the format in sRGB

[Mesa-dev] [PATCH 0/4] KHR_debug clean ups and fixes

2014-03-03 Thread Timothy Arceri
The main reason for this series is to remove the unneeded remapping of ARB_debug_output functions and just use an alias instead. Testing shows this is what Nvidia and AMD do. There is some other tidy ups and a bug fix too. Passes existing KHR_debug and ARB_debug_output piglit tests and also

[Mesa-dev] [PATCH 2/4] mesa: make ARB_debug_output functions an alias of KHR_debug

2014-03-03 Thread Timothy Arceri
The spec doesn't mention how ARB_debug_output and KHR_debug should interact but testing with Nvidia and AMD shows this is how they both treat these functions Signed-off-by: Timothy Arceri t_arc...@yahoo.com.au --- src/mapi/glapi/gen/ARB_debug_output.xml | 8 +- src/mesa/main/errors.c

[Mesa-dev] [PATCH 1/4] glapi: move KHR_debug into its own file

2014-03-03 Thread Timothy Arceri
Signed-off-by: Timothy Arceri t_arc...@yahoo.com.au --- src/mapi/glapi/gen/KHR_debug.xml | 150 +++ src/mapi/glapi/gen/gl_API.xml| 144 + 2 files changed, 151 insertions(+), 143 deletions(-) create mode 100644

[Mesa-dev] [PATCH 4/4] mesa: add missing DebugMessageControl types

2014-03-03 Thread Timothy Arceri
Signed-off-by: Timothy Arceri t_arc...@yahoo.com.au --- src/mesa/main/errors.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c index 003d0d4..b26bc71 100644 --- a/src/mesa/main/errors.c +++ b/src/mesa/main/errors.c @@ -520,6 +520,8 @@

[Mesa-dev] [PATCH 3/4] mesa: remove ARB_debug_output dispatch sanity checks

2014-03-03 Thread Timothy Arceri
Also remove KHR_debug placeholders as the checks have already been added Signed-off-by: Timothy Arceri t_arc...@yahoo.com.au --- src/mesa/main/tests/dispatch_sanity.cpp | 21 ++--- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git

[Mesa-dev] [Bug 75226] Dark rendering of War for the Overworld

2014-03-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75226 Chia-I Wu olva...@gmail.com changed: What|Removed |Added Attachment #94530|0 |1 is obsolete|

[Mesa-dev] [PATCH V2 4/4] mesa: add missing DebugMessageControl types

2014-03-03 Thread Timothy Arceri
V2: moved case statements to correct spot Signed-off-by: Timothy Arceri t_arc...@yahoo.com.au --- src/mesa/main/errors.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c index 003d0d4..772eadd 100644 --- a/src/mesa/main/errors.c +++

Re: [Mesa-dev] Mesa (master): st/dri: add support for dma-buf importer (DRIimage v8)

2014-03-03 Thread Michel Dänzer
On Son, 2014-03-02 at 17:21 -0800, Dave Airlie wrote: Module: Mesa Branch: master Commit: 15b4ff3f4e9460320dd629026743e17fa7109156 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=15b4ff3f4e9460320dd629026743e17fa7109156 Author: Dave Airlie airl...@redhat.com Date: Wed Dec 18

Re: [Mesa-dev] Introductory projects in r600/radeonsi

2014-03-03 Thread Michel Dänzer
On Don, 2014-02-27 at 21:36 -0700, Sean Burke wrote: I've been following mesa development for a while and am hoping to find a good project in either the r600 or radeonsi drivers that would give me a place to start learning about the general structure of mesa dev. One possibility might be to

Re: [Mesa-dev] Mesa (master): st/dri: add support for dma-buf importer (DRIimage v8)

2014-03-03 Thread Dave Airlie
On Mon, Mar 3, 2014 at 7:30 PM, Michel Dänzer mic...@daenzer.net wrote: On Son, 2014-03-02 at 17:21 -0800, Dave Airlie wrote: Module: Mesa Branch: master Commit: 15b4ff3f4e9460320dd629026743e17fa7109156 URL:

Re: [Mesa-dev] [PATCH] st/mesa: make winsys fbo sRGB-capable when supported

2014-03-03 Thread Michel Dänzer
On Mon, 2014-03-03 at 16:22 +0800, Chia-I Wu wrote: The texture formats of winsys fbo are always linear becase the st manager (st/dri for example) could not know the colorspace used. But it does not mean that we cannot make the fbo sRGB-capable. By - setting rb-Visual.sRGBCapable to

Re: [Mesa-dev] [PATCH] softpipe: use 64-bit arithmetic in softpipe_resource_layout()

2014-03-03 Thread Roland Scheidegger
Am 01.03.2014 20:21, schrieb Brian Paul: To avoid 32-bit integer overflow for large textures. Note: we're already doing this in llvmpipe. Cc: 10.0 10.1 mesa-sta...@lists.freedesktop.org --- src/gallium/drivers/softpipe/sp_texture.c |6 +++--- 1 file changed, 3 insertions(+), 3

Re: [Mesa-dev] [PATCH 2/4] mesa: make ARB_debug_output functions an alias of KHR_debug

2014-03-03 Thread Brian Paul
On 03/03/2014 01:33 AM, Timothy Arceri wrote: The spec doesn't mention how ARB_debug_output and KHR_debug should interact but testing with Nvidia and AMD shows this is how they both treat these functions Signed-off-by: Timothy Arceri t_arc...@yahoo.com.au ---

Re: [Mesa-dev] [PATCH] st/mesa: make winsys fbo sRGB-capable when supported

2014-03-03 Thread Chia-I Wu
On Mon, Mar 3, 2014 at 6:06 PM, Michel Dänzer mic...@daenzer.net wrote: On Mon, 2014-03-03 at 16:22 +0800, Chia-I Wu wrote: The texture formats of winsys fbo are always linear becase the st manager (st/dri for example) could not know the colorspace used. But it does not mean that we cannot

Re: [Mesa-dev] [PATCH 1/3] radeonsi: move translate_colorswap to common code

2014-03-03 Thread Alex Deucher
On Sun, Mar 2, 2014 at 8:25 PM, Marek Olšák mar...@gmail.com wrote: From: Marek Olšák marek.ol...@amd.com Also translate the Y__X swizzle. For the series: Reviewed-by: Alex Deucher alexander.deuc...@amd.com Candidate for the stable trees as part of the fix for srgb dark rendering? ---

Re: [Mesa-dev] [PATCH 10/10] mesa: remove unneeded glthread.c file

2014-03-03 Thread Jose Fonseca
Series looks good to me. Thanks for the nice cleanup. Jose - Original Message - The _glthread_GetID() function is also defined in mapi_glapi.c ---  src/mapi/glapi/Makefile.sources |    1 -  src/mapi/glapi/SConscript       |    1 -  src/mapi/glapi/glthread.c       |    7 ---  3

[Mesa-dev] confusions about new MESA_FORMAT_xxx convention

2014-03-03 Thread Chia-I Wu
Hi list, From formats.h, we have /* Type P formats */ /* msb -- TEXEL BITS --- lsb */ /* */ MESA_FORMAT_A8B8G8R8_UNORM, /* */ But in format_unpack.c,

Re: [Mesa-dev] Build patches v2

2014-03-03 Thread Andreas Boll
Pushed both patches. Thanks! Andreas. 2014-03-01 10:11 GMT+01:00 Fabio Pedretti fabio@libero.it: Updated patches with the following changes: [PATCH 1/2] glx/dri2: fix build failure on HURD - improved commit message (thanks to Matt Turner and Ian Romanick) - added Cc: for 10.1 [PATCH

[Mesa-dev] [PATCH] clover: Fix build since LLVM's switch to c++11

2014-03-03 Thread Tom Stellard
--- This patch should work for older LLVM versions too. configure.ac | 5 + src/gallium/state_trackers/clover/Makefile.am | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 0e0fd18..a1eb907 100644 ---

Re: [Mesa-dev] [PATCH] clover: Fix building with latest llvm

2014-03-03 Thread Tom Stellard
On Sat, Mar 01, 2014 at 11:51:24PM +0100, Bruno Jiménez wrote: Recently, llvm has changed to use c++11, so we also should use it --- src/gallium/state_trackers/clover/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [Mesa-dev] [PATCH] clover: Fix build since LLVM's switch to c++11

2014-03-03 Thread Tom Stellard
On Mon, Mar 03, 2014 at 08:03:23AM -0800, Tom Stellard wrote: --- This patch should work for older LLVM versions too. Disregard this, there is a better fix already on the list. -Tom configure.ac | 5 + src/gallium/state_trackers/clover/Makefile.am |

Re: [Mesa-dev] [PATCH] clover: Fix building with latest llvm

2014-03-03 Thread Tom Stellard
On Mon, Mar 03, 2014 at 08:05:26AM -0800, Tom Stellard wrote: On Sat, Mar 01, 2014 at 11:51:24PM +0100, Bruno Jiménez wrote: Recently, llvm has changed to use c++11, so we also should use it --- src/gallium/state_trackers/clover/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2

[Mesa-dev] [Bug 71591] Second Life shaders fail to compile (extension declared in middle of shader)

2014-03-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=71591 Eero Tamminen eero.t.tammi...@intel.com changed: What|Removed |Added Blocks||75664 -- You

Re: [Mesa-dev] [PATCH 1/2] configure: Remove more flags from llvm-config

2014-03-03 Thread Francisco Jerez
Francisco Jerez curroje...@riseup.net writes: Bruno Jiménez brunoji...@gmail.com writes: This way, we are left with only the preprocessor flags and '-std=X' --- configure.ac | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) Reviewed-by: Francisco Jerez curroje...@riseup.net

Re: [Mesa-dev] [PATCH 2/4] mesa: make ARB_debug_output functions an alias of KHR_debug

2014-03-03 Thread Emil Velikov
On 03/03/14 08:33, Timothy Arceri wrote: The spec doesn't mention how ARB_debug_output and KHR_debug should interact but testing with Nvidia and AMD shows this is how they both treat these functions Hi Timothy, AFAICS this patch will break make check, only to be fixed with the following

[Mesa-dev] [PATCH] gbm: make 'devices' array static

2014-03-03 Thread Julien Cristau
It's only used in this one file as far as I can tell, and exporting a symbol named 'devices' from a shared library is a recipe for trouble. --- src/gbm/main/gbm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gbm/main/gbm.c b/src/gbm/main/gbm.c index b057386..30785a6

Re: [Mesa-dev] [PATCH] st/omx: always advertise all components

2014-03-03 Thread Liu, Leo
-Original Message- From: mesa-dev-boun...@lists.freedesktop.org [mailto:mesa-dev- boun...@lists.freedesktop.org] On Behalf Of Christian König Sent: Saturday, March 01, 2014 7:11 AM To: mesa-dev@lists.freedesktop.org Subject: [Mesa-dev] [PATCH] st/omx: always advertise all components

Re: [Mesa-dev] confusions about new MESA_FORMAT_xxx convention

2014-03-03 Thread Brian Paul
On 03/03/2014 08:32 AM, Chia-I Wu wrote: Hi list, From formats.h, we have /* Type P formats */ /* msb -- TEXEL BITS --- lsb */ /* */ MESA_FORMAT_A8B8G8R8_UNORM, /*

[Mesa-dev] [PATCH] mesa: don't call ctx-Driver.ClearBufferSubData() if size==0

2014-03-03 Thread Brian Paul
Fixes failed assertion when trying to map zero-length region. https://bugs.freedesktop.org/show_bug.cgi?id=75660 Cc: 10.0 10.1 mesa-sta...@lists.freedesktop.org --- src/mesa/main/bufferobj.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git

Re: [Mesa-dev] [PATCH 1/3] radeonsi: move translate_colorswap to common code

2014-03-03 Thread Marek Olšák
On Mon, Mar 3, 2014 at 4:19 PM, Alex Deucher alexdeuc...@gmail.com wrote: On Sun, Mar 2, 2014 at 8:25 PM, Marek Olšák mar...@gmail.com wrote: From: Marek Olšák marek.ol...@amd.com Also translate the Y__X swizzle. For the series: Reviewed-by: Alex Deucher alexander.deuc...@amd.com

Re: [Mesa-dev] Mesa (master): st/dri: add support for dma-buf importer (DRIimage v8)

2014-03-03 Thread Axel Davy
On 03/03/2014, Michel Dänzer wrote : On Son, 2014-03-02 at 17:21 -0800, Dave Airlie wrote: / Module: Mesa // Branch: master // Commit: 15b4ff3f4e9460320dd629026743e17fa7109156 // URL:http://cgit.freedesktop.org/mesa/mesa/commit/?id=15b4ff3f4e9460320dd629026743e17fa7109156 // // Author:

Re: [Mesa-dev] [PATCH] gbm: make 'devices' array static

2014-03-03 Thread Julien Cristau
On Mon, Mar 3, 2014 at 17:21:15 +, Emil Velikov wrote: On 03/03/14 16:41, Julien Cristau wrote: It's only used in this one file as far as I can tell, and exporting a symbol named 'devices' from a shared library is a recipe for trouble. Hmm did you really get the 'devices' exported

Re: [Mesa-dev] [PATCH] gbm: make 'devices' array static

2014-03-03 Thread Emil Velikov
On 03/03/14 17:23, Julien Cristau wrote: On Mon, Mar 3, 2014 at 17:21:15 +, Emil Velikov wrote: On 03/03/14 16:41, Julien Cristau wrote: It's only used in this one file as far as I can tell, and exporting a symbol named 'devices' from a shared library is a recipe for trouble. Hmm did

Re: [Mesa-dev] [PATCH] gbm: make 'devices' array static

2014-03-03 Thread Emil Velikov
On 03/03/14 16:41, Julien Cristau wrote: It's only used in this one file as far as I can tell, and exporting a symbol named 'devices' from a shared library is a recipe for trouble. Hmm did you really get the 'devices' exported symbol, or did you notice this while going through the code ? Either

[Mesa-dev] [PATCH] r600g: fix texelFetchOffset GLSL functions

2014-03-03 Thread Marek Olšák
From: Marek Olšák marek.ol...@amd.com Cc: mesa-sta...@lists.freedesktop.org --- src/gallium/drivers/r600/r600_shader.c | 87 ++ 1 file changed, 77 insertions(+), 10 deletions(-) diff --git a/src/gallium/drivers/r600/r600_shader.c

Re: [Mesa-dev] [PATCH] gbm: make 'devices' array static

2014-03-03 Thread Julien Cristau
On Mon, Mar 3, 2014 at 17:29:56 +, Emil Velikov wrote: On 03/03/14 17:23, Julien Cristau wrote: On Mon, Mar 3, 2014 at 17:21:15 +, Emil Velikov wrote: On 03/03/14 16:41, Julien Cristau wrote: It's only used in this one file as far as I can tell, and exporting a symbol named

Re: [Mesa-dev] [PATCH] mesa/main: add ARB_clear_texture entrypoints

2014-03-03 Thread Brian Paul
On 03/01/2014 03:09 PM, Ilia Mirkin wrote: This adds enough code to let drivers implement texture clearing, but doesn't actually do that for any of them. Signed-off-by: Ilia Mirkin imir...@alum.mit.edu --- Thought I'd give this a shot. Am I on the right track here? Is the dd API reasonable? I

Re: [Mesa-dev] [PATCH 1/2] st/vdpau: fix possible NULL dereference

2014-03-03 Thread Christian König
Both patches reviewed and pushed. Thanks, Christian. Am 02.03.2014 12:57, schrieb Grigori Goronzy: --- src/gallium/state_trackers/vdpau/mixer.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gallium/state_trackers/vdpau/mixer.c

Re: [Mesa-dev] [PATCH] mesa: don't call ctx-Driver.ClearBufferSubData() if size==0

2014-03-03 Thread Marek Olšák
Reviewed-by: Marek Olšák marek.ol...@amd.com Marek On Mon, Mar 3, 2014 at 6:09 PM, Brian Paul bri...@vmware.com wrote: Fixes failed assertion when trying to map zero-length region. https://bugs.freedesktop.org/show_bug.cgi?id=75660 Cc: 10.0 10.1 mesa-sta...@lists.freedesktop.org ---

Re: [Mesa-dev] [PATCH] mesa: update packed format layout comments

2014-03-03 Thread Roland Scheidegger
Just one minor bug, otherwise Reviewed-by: Roland Scheidegger srol...@vmware.com Am 28.02.2014 18:59, schrieb Brian Paul: Update the comments for the packed formats to accurately reflect the layout of the bits in the pixel. For example, for the packed format MESA_FORMAT_R8G8B8A8, R is in the

Re: [Mesa-dev] [PATCH] mesa/main: add ARB_clear_texture entrypoints

2014-03-03 Thread Ilia Mirkin
On Mon, Mar 3, 2014 at 12:37 PM, Brian Paul bri...@vmware.com wrote: On 03/01/2014 03:09 PM, Ilia Mirkin wrote: This adds enough code to let drivers implement texture clearing, but doesn't actually do that for any of them. Signed-off-by: Ilia Mirkin imir...@alum.mit.edu --- Thought I'd

Re: [Mesa-dev] [PATCH] mesa: update packed format layout comments

2014-03-03 Thread Brian Paul
On 03/03/2014 10:45 AM, Roland Scheidegger wrote: Just one minor bug, otherwise Reviewed-by: Roland Scheidegger srol...@vmware.com Am 28.02.2014 18:59, schrieb Brian Paul: Update the comments for the packed formats to accurately reflect the layout of the bits in the pixel. For example, for

[Mesa-dev] [Bug 74944] libomx_r600 segfault on RadeonSI hardware

2014-03-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=74944 Fabio Pedretti fabio@libero.it changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Mesa-dev] [Bug 74944] libomx_r600 segfault on RadeonSI hardware

2014-03-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=74944 Christian König deathsim...@vodafone.de changed: What|Removed |Added Status|RESOLVED|CLOSED -- You

Re: [Mesa-dev] [PATCH] mesa/main: add ARB_clear_texture entrypoints

2014-03-03 Thread Brian Paul
On 03/03/2014 10:52 AM, Ilia Mirkin wrote: On Mon, Mar 3, 2014 at 12:37 PM, Brian Paul bri...@vmware.com wrote: On 03/01/2014 03:09 PM, Ilia Mirkin wrote: This adds enough code to let drivers implement texture clearing, but doesn't actually do that for any of them. Signed-off-by: Ilia Mirkin

Re: [Mesa-dev] [PATCH 1/2] mesa: fix the format of glEdgeFlagPointer

2014-03-03 Thread Brian Paul
On 03/02/2014 06:25 PM, Marek Olšák wrote: From: Marek Olšák marek.ol...@amd.com Softpipe expects a float in the vertex shader, which is what glEdgeFlag generates. This fixes piglit/gl-2.0-edgeflag. Cc: mesa-sta...@lists.freedesktop.org --- src/mesa/main/varray.c | 4 ++-- 1 file changed,

[Mesa-dev] [Bug 75660] u_inlines.h:277:pipe_buffer_map_range: Assertion `length' failed.

2014-03-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75660 Brian Paul bri...@vmware.com changed: What|Removed |Added Status|NEW |RESOLVED

[Mesa-dev] [Bug 75336] Don't provide inline definitions of functions available in MSVS 2013's standard library

2014-03-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75336 --- Comment #3 from h...@chromium.org --- Thanks Brian. I can confirm that those patches fixes the issue on the Mesa version we are using (Chromium is pretty far behind the Mesa git master so I don't have an easy way of testing that.) -- You

[Mesa-dev] [PATCH] r600: compute memory pool size is given in dw

2014-03-03 Thread Niels Ole Salscheider
Multiply the dw value by 4 in order to map the complete buffer. Signed-off-by: Niels Ole Salscheider niels_...@salscheider-online.de --- src/gallium/drivers/r600/compute_memory_pool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[Mesa-dev] [Bug 75336] Don't provide inline definitions of functions available in MSVS 2013's standard library

2014-03-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75336 Brian Paul bri...@vmware.com changed: What|Removed |Added Status|NEW |RESOLVED

[Mesa-dev] [PATCH 1/2] util/u_upload_mgr: Allow to also use it for downloads

2014-03-03 Thread Niels Ole Salscheider
Signed-off-by: Niels Ole Salscheider niels_...@salscheider-online.de --- src/gallium/auxiliary/hud/hud_context.c | 3 +- src/gallium/auxiliary/util/u_blitter.c| 3 +- src/gallium/auxiliary/util/u_upload_mgr.c | 49 +++

[Mesa-dev] [PATCH 0/2] radeon: Use the DMA engine for buffer downloads

2014-03-03 Thread Niels Ole Salscheider
Using the DMA engine for buffer downloads vastly improves performance. This is because reads from VRAM by the CPU are slow because of the high latency of the PCIe bus. The first patch allows u_upload_mgr to be used for downloads, too. The second patch then uses u_upload_mgr in the radeon driver

[Mesa-dev] [PATCH 2/2] radeon: Use transfer manager for buffer downloads

2014-03-03 Thread Niels Ole Salscheider
Using DMA for reads is much faster. Signed-off-by: Niels Ole Salscheider niels_...@salscheider-online.de --- src/gallium/drivers/radeon/r600_buffer_common.c | 78 +++-- src/gallium/drivers/radeon/r600_pipe_common.c | 11 src/gallium/drivers/radeon/r600_pipe_common.h

Re: [Mesa-dev] [PATCH 0/3] Enable GL 3.2 support for i965, bump Mesa version.

2014-03-03 Thread Clemens Eisserer
Hi Kenneth, export MESA_GL_VERSION_OVERRIDE=3.2 export MESA_GLSL_VERSION_OVERRIDE=150 These make the driver claim OpenGL 3.2 and GLSL 1.50 support, even though it's incomplete. OilRush ought to work fine with those set. I haven't tried Dear Esther since it doesn't appear that there's a

[Mesa-dev] [PATCH V2 2/4] mesa: make ARB_debug_output functions an alias of KHR_debug

2014-03-03 Thread Timothy Arceri
V2: Make sure we exit case statements with conditional breaks rather than just dropping through. Signed-off-by: Timothy Arceri t_arc...@yahoo.com.au --- src/mapi/glapi/gen/ARB_debug_output.xml | 8 +- src/mesa/main/errors.c | 301 +---

Re: [Mesa-dev] [PATCH 2/4] mesa: make ARB_debug_output functions an alias of KHR_debug

2014-03-03 Thread Timothy Arceri
On Mon, 2014-03-03 at 16:28 +, Emil Velikov wrote: On 03/03/14 08:33, Timothy Arceri wrote: The spec doesn't mention how ARB_debug_output and KHR_debug should interact but testing with Nvidia and AMD shows this is how they both treat these functions Hi Timothy, AFAICS this

[Mesa-dev] [PATCH 1/3] c11: Fix nano to second conversion.

2014-03-03 Thread jfonseca
From: José Fonseca jfons...@vmware.com Per https://gist.github.com/yohhoy/2223710/#comment-710118 --- include/c11/threads_win32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/c11/threads_win32.h b/include/c11/threads_win32.h index be1a389..771db94 100644 ---

[Mesa-dev] [PATCH 2/3] mapi/u_thread: Use GetCurrentThreadId

2014-03-03 Thread jfonseca
From: José Fonseca jfons...@vmware.com u_thread_self() expects thrd_current() to return a unique numeric ID for the current thread, but this is not feasible on Windows. --- src/mapi/u_thread.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/src/mapi/u_thread.h

[Mesa-dev] [PATCH 3/3] c11/threads: Don't implement thrd_current on Windows.

2014-03-03 Thread jfonseca
From: José Fonseca jfons...@vmware.com GetCurrentThread() returns a pseudo-handle (a constant which can only be used within the calling thread) and not a real handle. DuplicateHandle will return a real handle, but it will create a new handle every time we call. Calling DuplicateHandle here

Re: [Mesa-dev] [PATCH 3/3] c11/threads: Don't implement thrd_current on Windows.

2014-03-03 Thread Brian Paul
On 03/03/2014 02:41 PM, jfons...@vmware.com wrote: From: José Fonseca jfons...@vmware.com GetCurrentThread() returns a pseudo-handle (a constant which can only be used within the calling thread) and not a real handle. DuplicateHandle will return a real handle, but it will create a new handle

[Mesa-dev] [Bug 75661] st_glsl_to_tgsi.cpp:637:get_opcode: Assertion `src0.type != GLSL_TYPE_STRUCT' failed.

2014-03-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75661 Vinson Lee v...@freedesktop.org changed: What|Removed |Added CC|

[Mesa-dev] [Bug 75165] compute.c:464:49: error: function definition is not allowed here

2014-03-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75165 Vinson Lee v...@freedesktop.org changed: What|Removed |Added CC||curroje...@riseup.net

Re: [Mesa-dev] [PATCH 1/3] c11: Fix nano to second conversion.

2014-03-03 Thread Michel Dänzer
On Mon, 2014-03-03 at 21:41 +, jfons...@vmware.com wrote: From: José Fonseca jfons...@vmware.com I think the commit summary should say 'nano to millisecond'? -- Earthling Michel Dänzer| http://www.amd.com Libre software enthusiast |

Re: [Mesa-dev] [PATCH 0/2] radeon: Use the DMA engine for buffer downloads

2014-03-03 Thread Marek Olšák
Could you please do this without changing u_upload_mgr? You can still use u_upload_alloc to allocate buffer memory in the driver and the map buffer read/write flags are not important with persistent coherent buffer mappings anyway. Marek On Mon, Mar 3, 2014 at 9:29 PM, Niels Ole Salscheider

Re: [Mesa-dev] [PATCH] configure: disable shared glapi when building xlib powered glx

2014-03-03 Thread Brian Paul
On 02/27/2014 11:17 AM, Brian Paul wrote: On Thu, Feb 27, 2014 at 11:03 AM, Emil Velikov emil.l.veli...@gmail.com mailto:emil.l.veli...@gmail.com wrote: With commit 0432aa064b(configure: use shared-glapi when more than one gl* API is used) we removed disable shared-glapi when building

Re: [Mesa-dev] [PATCH] configure: disable shared glapi when building xlib powered glx

2014-03-03 Thread Emil Velikov
On 04/03/14 02:01, Brian Paul wrote: On 02/27/2014 11:17 AM, Brian Paul wrote: On Thu, Feb 27, 2014 at 11:03 AM, Emil Velikov emil.l.veli...@gmail.com mailto:emil.l.veli...@gmail.com wrote: With commit 0432aa064b(configure: use shared-glapi when more than one gl* API is used) we

[Mesa-dev] [PATCH 1/3] mesa: Set initial internal format of a texture to GL_RGBA

2014-03-03 Thread Anuj Phogat
From OpenGL 4.0 spec, page 398: The initial internal format of a texel array is RGBA instead of 1. TEXTURE_COMPONENTS is deprecated; always use TEXTURE_INTERNAL_FORMAT. Fixes Khronos OpenGL CTS test failure: proxy_textures_invalid_size Cc: mesa-sta...@lists.freedesktop.org

[Mesa-dev] [PATCH 2/3] mesa: Use clear_teximage_fields() in place of _mesa_init_teximage_fields()

2014-03-03 Thread Anuj Phogat
This patch makes no functional changes to the code. Signed-off-by: Anuj Phogat anuj.pho...@gmail.com --- src/mesa/main/teximage.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 0519d22..1cd6ade 100644 ---

[Mesa-dev] [PATCH 3/3] mesa: Allow GL_DEPTH_COMPONENT and GL_DEPTH_STENCIL combinations in glTexImage{123}D()

2014-03-03 Thread Anuj Phogat
From OpenGL 3.3 spec, page 141: Textures with a base internal format of DEPTH_COMPONENT or DEPTH_STENCIL require either depth component data or depth/stencil component data. Textures with other base internal formats require RGBA component data. The error INVALID_OPERATION is

Re: [Mesa-dev] [PATCH] mesa: update packed format layout comments

2014-03-03 Thread Chia-I Wu
On Sat, Mar 1, 2014 at 1:59 AM, Brian Paul bri...@vmware.com wrote: Update the comments for the packed formats to accurately reflect the layout of the bits in the pixel. For example, for the packed format MESA_FORMAT_R8G8B8A8, R is in the least significant position while A is in the

[Mesa-dev] [PATCH] draw/llvm: fix generation of the VS with GS present

2014-03-03 Thread Zack Rusin
draw_current_shader_* functions return a final output when considering both the geometry shader and the vertex shader. But when code generating vertex shader we can not be using output slots from the geometry shader because, obviously, those can be completely different. This fixes a number of very

[Mesa-dev] [PATCH] translate: fix buffer overflows

2014-03-03 Thread Zack Rusin
Because in draw we always inject position at slot 0 whenever fragment shader would take the maximum number of inputs (32) it meant that we had PIPE_MAX_ATTRIBS + 1 slots to translate, which meant that we were crashing with fragment shaders that took the maximum number of attributes as inputs. The

[Mesa-dev] [Bug 75212] Mesa selects wrong DRI driver

2014-03-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75212 meng mengmeng.m...@intel.com changed: What|Removed |Added CC||mengmeng.m...@intel.com

[Mesa-dev] [Bug 75212] Mesa selects wrong DRI driver

2014-03-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75212 --- Comment #2 from meng mengmeng.m...@intel.com --- The bisected commit git-7bd95ec also caused Chrome webgl can't be enabled(bug 75739). -- You are receiving this mail because: You are the assignee for the bug.

[Mesa-dev] [Bug 75212] Mesa selects wrong DRI driver

2014-03-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75212 meng mengmeng.m...@intel.com changed: What|Removed |Added CC||jianx.z...@intel.com --

Re: [Mesa-dev] [PATCH 1/2] mesa: fix the format of glEdgeFlagPointer

2014-03-03 Thread Ian Romanick
On 03/03/2014 03:25 AM, Marek Olšák wrote: From: Marek Olšák marek.ol...@amd.com Softpipe expects a float in the vertex shader, which is what glEdgeFlag generates. This fixes piglit/gl-2.0-edgeflag. I think this may be a problem elsewhere inside softpipe. This test passes with or without

[Mesa-dev] Student interested in gsoc at xorg

2014-03-03 Thread lazaro E Lespes
Hello All, The last February 26, I sent and introduction mail to mesa-dev@ lists.freedesktop.org because I'm interested in participate in gsoc at xorg. I did not get any feedback so I don't know if my mail arrived to the list. Below, I send the mail again. Thanks and regards. Hello All, I'm a

Re: [Mesa-dev] [PATCH] mesa/main: add ARB_clear_texture entrypoints

2014-03-03 Thread Ian Romanick
On 03/02/2014 12:09 AM, Ilia Mirkin wrote: This adds enough code to let drivers implement texture clearing, but doesn't actually do that for any of them. There's always the usual... this should be split into two patches. :) Generally the changes in gl_API, dispatch_sanity, and stub functions

Re: [Mesa-dev] [PATCH 1/2] mesa: fix the format of glEdgeFlagPointer

2014-03-03 Thread Ilia Mirkin
On Tue, Mar 4, 2014 at 2:05 AM, Ian Romanick i...@freedesktop.org wrote: On 03/03/2014 03:25 AM, Marek Olšák wrote: From: Marek Olšák marek.ol...@amd.com Softpipe expects a float in the vertex shader, which is what glEdgeFlag generates. This fixes piglit/gl-2.0-edgeflag. I think this