Re: [Mesa-dev] [PATCH] docs: Add items for GL4.4

2013-07-23 Thread Kenneth Graunke
On 07/22/2013 02:18 PM, Chris Forbes wrote: Signed-off-by: Chris Forbes chr...@ijw.co.nz --- docs/GL3.txt | 14 ++ 1 file changed, 14 insertions(+) diff --git a/docs/GL3.txt b/docs/GL3.txt index f2152a3..64986ea 100644 --- a/docs/GL3.txt +++ b/docs/GL3.txt @@ -156,5 +156,19 @@

Re: [Mesa-dev] Geometry shader update, and a course correction

2013-07-23 Thread Kenneth Graunke
On 07/22/2013 10:42 AM, Paul Berry wrote: [snip] I don't mind if someone wants to do some research in the background on questions 1 and 2 above, but IMHO we can safely proceed with this plan even without that information. In all likelihood, the only thing we're going to learn by answering

Re: [Mesa-dev] [Mesa-stable] [PATCH 1/2] mesa: default DEPTH_TEXTURE_MODE should be RED in the core profile

2013-07-23 Thread Kenneth Graunke
On 07/22/2013 03:58 PM, Marek Olšák wrote: There are a couple of reasons why this was missed: So, I wrote nearly this exact patch in November: http://lists.freedesktop.org/archives/mesa-dev/2012-November/030209.html And it was rejected, which explains my skepticism. 1) The depth texture

Re: [Mesa-dev] [PATCH V3 0/5] Interpolation fixes for Gen4/5

2013-07-23 Thread Kenneth Graunke
On 07/14/2013 02:39 AM, Chris Forbes wrote: This series adds support for GLSL 1.30 / EXT_gpu_shader4's 'flat' and 'noperspective' varying interpolation qualifiers on Gen4/5. Based on Olivier Galibert's series from July 2012, with some simplifications (that series contained a number of fixes for

[Mesa-dev] [Bug 66806] [softpipe] glxgears floating point exception

2013-07-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=66806 --- Comment #6 from Vinson Lee v...@freedesktop.org --- Program received signal SIGFPE, Arithmetic exception. 0x74d4b21f in micro_mul (dst=0x7fffd270, src0=0x7fffd250, src1=0x7fffd260) at tgsi/tgsi_exec.c:983 983

Re: [Mesa-dev] [PATCH V3 2/5] i965 Gen4/5: Generalize SF interpolation setup for GLSL1.3

2013-07-23 Thread Kenneth Graunke
On 07/14/2013 02:39 AM, Chris Forbes wrote: Previously the SF only handled the builtin color varying specially. This patch generalizes that support to cover user-defined varyings, driven by the interpolation mode array set up alongside the VUE map. Based on the following patches from Olivier

Re: [Mesa-dev] [PATCH V3 3/5] i965 Gen4/5: clip: correctly handle flat varyings

2013-07-23 Thread Kenneth Graunke
On 07/14/2013 02:39 AM, Chris Forbes wrote: Previously we only gave special treatment to the builtin color varyings. This patch adds support for arbitrary flat-shaded varyings, which is required for GLSL 1.30. Based on Olivier Galibert's patch from last year:

[Mesa-dev] Advice for implementing KHR_debug state structs

2013-07-23 Thread Timothy Arceri
Hi All, I've been stalking this list for a while now and I thought I'd finally make an attempt to contribute something. I've decided the KHR_debug extension is a good place to start as the ARB_debug_output provideds a great starting point. However I've hit my first road block. I'm ready to

Re: [Mesa-dev] [Mesa-stable] [PATCH 1/2] mesa: default DEPTH_TEXTURE_MODE should be RED in the core profile

2013-07-23 Thread Kenneth Graunke
On 07/22/2013 03:58 PM, Marek Olšák wrote: There are a couple of reasons why this was missed: 1) The depth texture mode doesn't exist in the core profile, so the core spec doesn't and cannot specify what the default should be, so that's why nobody updated it. However the 4.1 core spec says:

[Mesa-dev] [PATCH V4 1/5] i965 Gen4/5: Compute interpolation status for every varying in one place.

2013-07-23 Thread Chris Forbes
The program keys are updated accordingly, but the values are not used yet. [V1-2]: Signed-off-by: Olivier Galibert galibert at pobox.com V3: Updated for vue_map changes, intel - brw merge, etc. (Chris Forbes) V4: Compute interpolation map as a new state atom rather than tacking it on the front

[Mesa-dev] [PATCH] i965/vs: Fix flaky texture swizzling

2013-07-23 Thread Chris Forbes
If any component used the ZERO or ONE swizzle, its corresponding member in the `swizzle` array would never be initialized. We *mostly* got away with this, except when that memory happened to contain a value that clobbered another channel when combined using BRW_SWIZZLE4(). NOTE: This is a

Re: [Mesa-dev] [PATCH 2/2] gallium: add flag PIPE_TRANSFER_MAP_PERMANENTLY

2013-07-23 Thread Marek Olšák
FYI, OpenGL 4.4, which was released yesterday, adds GL_MAP_PERSISTENT and GL_MAP_COHERENT bits as valid parameters of glMapBufferRange and glBufferStorage, allowing to use buffers for rendering while they are mapped and upload/download data to/from the buffers simultaneously. It's now clear that

Re: [Mesa-dev] [PATCH] mesa: fix rgtc snorm decoding

2013-07-23 Thread Jose Fonseca
- Original Message - From: Roland Scheidegger srol...@vmware.com The codeword must be unsigned (otherwise will shift in 1's from above when merging low/high parts so some texels decode wrong). This also affects gallium's util/u_format_rgtc. ---  

Re: [Mesa-dev] Introducing Virgil - 3D virtual GPU for qemu

2013-07-23 Thread Michael Thayer
Hello David, On 18/07/13 08:48, Dave Airlie wrote: since I suppose these communities would be most interested in this and might not all read my blog or G+ stream, Virgil is a research project I've been working on at Red Hat for a few months now and I think is ready for at least announcing

Re: [Mesa-dev] Advice for implementing KHR_debug state structs

2013-07-23 Thread Jose Fonseca
Brian Paul has an early draft [1]. You should start from there. Jose [1] http://lists.freedesktop.org/archives/mesa-dev/2013-June/040171.html - Original Message - Hi All, I've been stalking this list for a while now and I thought I'd finally make an attempt to contribute something.

[Mesa-dev] [PATCH 2/3] draw: fix vertex id computation

2013-07-23 Thread Zack Rusin
vertex id has to be unaffected by the start index (i.e. when calling draw arrays with start_index = 5, the first vertex_id has to still be 0, not 5) and it has to be equal to the index when performing indexed rendering (in which case it has to be unaffected by the index bias). This fixes our

[Mesa-dev] [PATCH] gallium/util: Fix detection of AVX cpu caps

2013-07-23 Thread Andre Heider
For AVX it's not sufficient to only rely on the cpuid flags. If the CPU supports these extensions, but the OS doesn't, issuing these insns will trigger an undefined opcode exception. In addition to the AVX cpuid bit we also need to: * test cpuid for OSXSAVE support * XGETBV to check if the OS

[Mesa-dev] [Bug 67127] Intel Compiler SCons build src/mesa/state_tracker/st_manager.c:(.text+0xd4b): undefined reference to `_glapi_check_multithread'

2013-07-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=67127 José Fonseca jfons...@vmware.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: [Mesa-dev] [PATCH] gbm: Support non-PCI devices

2013-07-23 Thread Rob Clark
fwiw, I found a couple more places assuming a PCI device (dri2_get_driver_for_fd() and drm_fd_get_pci_id()).. I'm kinda thinking it would make sense to refactor this out a bit into a common load_me_the_right_driver() type fxns.. BR, -R On Fri, Jul 19, 2013 at 3:13 PM, Thierry Reding

[Mesa-dev] [Bug 67120] Dota 2 crashes sporadically on Intel/Mesa git (full backtrace with mesa symbols included)

2013-07-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=67120 Ian Romanick i...@freedesktop.org changed: What|Removed |Added Blocks||67224 -- You are

Re: [Mesa-dev] [PATCH] gallium/util: Fix detection of AVX cpu caps

2013-07-23 Thread Roland Scheidegger
Am 23.07.2013 19:08, schrieb Andre Heider: For AVX it's not sufficient to only rely on the cpuid flags. If the CPU supports these extensions, but the OS doesn't, issuing these insns will trigger an undefined opcode exception. In addition to the AVX cpuid bit we also need to: * test cpuid

Re: [Mesa-dev] [PATCH] glsl: don't rename variables in interface block arrays.

2013-07-23 Thread Matt Turner
Reviewed-by: Matt Turner matts...@gmail.com ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] Advice for implementing KHR_debug state structs

2013-07-23 Thread Timothy Arceri
Hi Brian, Where can I get a copy of you unfinished work on the GL_KHR_debug extension? Thanks, Tim - Original Message - From: Jose Fonseca jfons...@vmware.com To: Timothy Arceri t_arc...@yahoo.com.au Cc: mesa-dev@lists.freedesktop.org; Brian Paul bri...@vmware.com Sent: Tuesday, 23

Re: [Mesa-dev] [PATCH] gallium/util: Fix detection of AVX cpu caps

2013-07-23 Thread Andre Heider
On Tue, Jul 23, 2013 at 8:57 PM, Roland Scheidegger srol...@vmware.com wrote: Am 23.07.2013 19:08, schrieb Andre Heider: For AVX it's not sufficient to only rely on the cpuid flags. If the CPU supports these extensions, but the OS doesn't, issuing these insns will trigger an undefined opcode

[Mesa-dev] [PATCH] draw: always call and move util_cpu_detect() to draw context creation.

2013-07-23 Thread sroland
From: Roland Scheidegger srol...@vmware.com CPU detection is not really x86 specific, the ifdef in particular didn't even catch x86_64. Also move to draw context creation which seems a lot cleaner, and just call it always (which seems like a better idea than rely on drivers doing this especially

Re: [Mesa-dev] Advice for implementing KHR_debug state structs

2013-07-23 Thread Brian Paul
I'll send you a tarball with some patches and source files. -Brian On 07/23/2013 03:42 PM, Timothy Arceri wrote: Hi Brian, Where can I get a copy of you unfinished work on the GL_KHR_debug extension? Thanks, Tim - Original Message - From: Jose Fonseca jfons...@vmware.com To:

Re: [Mesa-dev] [PATCH] gallium/util: Fix detection of AVX cpu caps

2013-07-23 Thread Jose Fonseca
- Original Message - On Tue, Jul 23, 2013 at 8:57 PM, Roland Scheidegger srol...@vmware.com wrote: Am 23.07.2013 19:08, schrieb Andre Heider: For AVX it's not sufficient to only rely on the cpuid flags. If the CPU supports these extensions, but the OS doesn't, issuing these insns

Re: [Mesa-dev] [PATCH 3/3] draw/llvmpipe: allow indexed rendering without index buffer bound

2013-07-23 Thread Brian Paul
On 07/23/2013 10:20 AM, Zack Rusin wrote: this is a wonky requirement of d3d10, which expects that if indexed rendering call is issued without an indexed buffer bound, the rendering should still happen but with all indices set to 0. The series looks good to me. Reviewed-by: Brian Paul

Re: [Mesa-dev] [PATCH 2/2] gallium: add flag PIPE_TRANSFER_MAP_PERMANENTLY

2013-07-23 Thread Jose Fonseca
- Original Message - FYI, OpenGL 4.4, which was released yesterday, adds GL_MAP_PERSISTENT and GL_MAP_COHERENT bits as valid parameters of glMapBufferRange and glBufferStorage, allowing to use buffers for rendering while they are mapped and upload/download data to/from the buffers

Re: [Mesa-dev] [PATCH 2/2] gallium: add flag PIPE_TRANSFER_MAP_PERMANENTLY

2013-07-23 Thread Marek Olšák
Yes, absolutely, we should have a CAP for that. Marek On Wed, Jul 24, 2013 at 12:20 AM, Jose Fonseca jfons...@vmware.com wrote: - Original Message - FYI, OpenGL 4.4, which was released yesterday, adds GL_MAP_PERSISTENT and GL_MAP_COHERENT bits as valid parameters of glMapBufferRange

Re: [Mesa-dev] [PATCH 1/2] clover: Added missing address space checking of kernel parameters

2013-07-23 Thread Tom Stellard
On Mon, Jul 22, 2013 at 09:24:12AM -0400, Jonathan Charest wrote: To have non-static buffers in local memory, it is necessary to pass them as arguments to the kernel. This was almost supported but the address space mapping was missing to perform the check (thanks to tstellar for pointing me in

Re: [Mesa-dev] [PATCH 2/2] Added missing address space checking of kernel parameters

2013-07-23 Thread Tom Stellard
On Mon, Jul 22, 2013 at 09:24:56AM -0400, Jonathan Charest wrote: To have non-static buffers in local memory, it is necessary to pass them as arguments to the kernel. For r600, the correct lds size must be set to the SQ_LDS_ALLOC register. The correct size is the clover size plus the size

Re: [Mesa-dev] [PATCH] mesa: Reject VertexAttribPointer() with GL_BGRA and !normalized.

2013-07-23 Thread Matt Turner
On Mon, Jul 15, 2013 at 6:37 AM, Fredrik Höglund fred...@kde.org wrote: On Monday 15 July 2013, Kenneth Graunke wrote: Fixes Piglit's ARB_vertex_attrib_bgra/api-errors test. Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- src/mesa/main/varray.c | 10 ++ 1 file changed, 10

[Mesa-dev] [PATCH] draw: always call util_cpu_detect() in draw context creation.

2013-07-23 Thread sroland
From: Roland Scheidegger srol...@vmware.com Since disabling denorms in draw_vbo() we require the util_cpu_caps to be initialized there. Hence add another util_cpu_detect() call in draw_create_context() which should ensure this. (There is another call in draw_get_option_use_llvm() which only gets

Re: [Mesa-dev] [PATCH] draw: always call and move util_cpu_detect() to draw context creation.

2013-07-23 Thread Zack Rusin
Nice catch! Thanks! - Original Message - From: Roland Scheidegger srol...@vmware.com CPU detection is not really x86 specific, the ifdef in particular didn't even catch x86_64. Also move to draw context creation which seems a lot cleaner, and just call it always (which seems like a