Re: [Mesa-dev] The way r600g handles shaders that use more than available GPRs

2014-04-20 Thread Grigori Goronzy
On 20.04.2014 03:02, Marek Olšák wrote: It looks like the check is not needed with SB, because SB performs register allocation. What happens if you comment out the conditional which fails? SB takes the machine code generated by the "classic" compiler as input, so the check is still needed. Th

Re: [Mesa-dev] The way r600g handles shaders that use more than available GPRs

2014-04-20 Thread Marcello Maggioni
This sounds like a very sensible solution if the direction the driver wants to go is having SB as the only backend Marcello On Sunday, 20 April 2014, Grigori Goronzy wrote: > On 20.04.2014 03:02, Marek Olšák wrote: > >> It looks like the check is not needed with SB, because SB performs >> regis

[Mesa-dev] [Bug 77693] New: Mesa software rasterizers - decompress textures on load to improve performance

2014-04-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77693 Priority: medium Bug ID: 77693 Assignee: mesa-dev@lists.freedesktop.org Summary: Mesa software rasterizers - decompress textures on load to improve performance Severity: enha

[Mesa-dev] [Bug 77693] Mesa software rasterizers - decompress textures on load to improve performance

2014-04-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77693 --- Comment #1 from Liam Wilson --- Created attachment 97645 --> https://bugs.freedesktop.org/attachment.cgi?id=97645&action=edit Texture decompression patch -- You are receiving this mail because: You are the assignee for the bug. __

[Mesa-dev] [Bug 77502] libOpenVG contains no vg Symbols

2014-04-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77502 --- Comment #3 from farmboy0+freedesk...@googlemail.com --- 144bbb7b78ecac33c62c6dc28df1747a73c4eb39 is the first bad commit commit 144bbb7b78ecac33c62c6dc28df1747a73c4eb39 Author: Matt Turner Date: Sun Nov 10 19:01:58 2013 -0800 glapi/bui

Re: [Mesa-dev] [PATCH 00/16] DRI*extension cleanups v3

2014-04-20 Thread Emil Velikov
On 04/04/14 23:41, Ian Romanick wrote: > On 03/16/2014 06:48 AM, Emil Velikov wrote: >> Hi all, >> >> Here is the third iteration of some DRI*extension cleanup patches. >> >> This revision adds some minor updates and squashes the patches into >> a shorter patchset. >> >> The previous revision can b

Re: [Mesa-dev] [PATCH 00/16] DRI*extension cleanups v3

2014-04-20 Thread Emil Velikov
Previous email for Vinson bounced back. Adding alternative email. On 20/04/14 22:40, Emil Velikov wrote: > On 04/04/14 23:41, Ian Romanick wrote: >> On 03/16/2014 06:48 AM, Emil Velikov wrote: >>> Hi all, >>> >>> Here is the third iteration of some DRI*extension cleanup patches. >>> >>> This revis

Re: [Mesa-dev] [PATCH 11/19] glsl: Track explicitly set location independent from the actual location

2014-04-20 Thread Eric Anholt
Ian Romanick writes: > On 04/11/2014 04:35 PM, Eric Anholt wrote: >> Ian Romanick writes: >> >>> From: Ian Romanick >>> >>> Almost all of the time the location set by layout(location=...) is the >>> location that will be used for the variable. Vertex shader inputs and >>> fragment shader outp

Re: [Mesa-dev] [PATCH 2/6] i965/fs: Recognize nop-MOV instructions early.

2014-04-20 Thread Eric Anholt
Matt Turner writes: > And avoid rewriting other instructions unnecessarily. Removes a few > self-moves we weren't able to handle because they were components of a > large VGRF. > > instructions in affected programs: 830 -> 826 (-0.48%) > --- > src/mesa/drivers/dri/i965/brw_fs_register_coales

Re: [Mesa-dev] [PATCH] egl: Add GetSyncValuesCHROMIUM extension.

2014-04-20 Thread Jamey Sharp
On Fri, Apr 18, 2014 at 5:30 PM, Ian Romanick wrote: > On 04/18/2014 05:07 PM, Jamey Sharp wrote: >> if you're using Xlib, then by default it will be abort()ing your >> client as soon as it pulls the error out of the event queue. > > Unless the client has an error handler, right? Well, sure, the

Re: [Mesa-dev] [PATCH] [RFC] include/pipe: all major Linux libc support endian.h

2014-04-20 Thread David Heidelberger
I'd like to ask, if anyone else looked at this really simple patch and/or tested it? Thank you Dne 2014-03-14 19:57, David Heidelberger napsal: --- src/gallium/include/pipe/p_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/include/pipe/p_config.h b/src

[Mesa-dev] [PATCH 07/13] r600g: fix MSAA resolve on R6xx when the destination is 1D-tiled

2014-04-20 Thread Marek Olšák
From: Marek Olšák Cc: 10.0 10.1 mesa-sta...@lists.freedesktop.org --- src/gallium/drivers/radeon/r600_texture.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index c410543..55caece 100644 --- a/src

[Mesa-dev] [PATCH 01/13] radeonsi: implement GL_ARB_vertex_type_10f_11f_11f_rev

2014-04-20 Thread Marek Olšák
From: Marek Olšák --- docs/GL3.txt| 2 +- docs/relnotes/10.2.html | 1 + src/gallium/drivers/radeonsi/si_state.c | 6 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/GL3.txt b/docs/GL3.txt index 0b663dd..b8557bf 100644 --- a/d

[Mesa-dev] [PATCH 03/13] r300g: don't crash when getting NULL colorbuffers

2014-04-20 Thread Marek Olšák
From: Marek Olšák Cc: mesa-sta...@lists.freedesktop.org --- src/gallium/drivers/r300/r300_blit.c| 4 +-- src/gallium/drivers/r300/r300_context.h | 14 ++ src/gallium/drivers/r300/r300_emit.c| 25 +++--- src/gallium/drivers/r300/r300_state.c | 46 +++

[Mesa-dev] [PATCH 00/13] Radeon - various fixes

2014-04-20 Thread Marek Olšák
I decided to test all graphics cards I own, and I have come up with this set of fixes (except the first patch, which is a new feature). Most importantly, DOTA 2 finally works without glitches on R600 and R700. Some of the fixes are untested, because I don't have the GPUs (RV770, RV740). Marek O

[Mesa-dev] [PATCH 02/13] r300g: fix runtime warning after winsys cleanup

2014-04-20 Thread Marek Olšák
From: Marek Olšák Broken by: b2238b3452b0bcf3c1216c20c9918f9f0664b464 winsys/radeon: remove cs_write_reloc, add simpler cs_get_reloc --- src/gallium/drivers/r300/r300_cs.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gallium/drivers/r300/r300_cs.h b/src/gallium/drivers/r300/r300_c

[Mesa-dev] [PATCH 12/13] r600g: fix for an MSAA hang on RV770

2014-04-20 Thread Marek Olšák
From: Marek Olšák Cc: 10.0 10.1 mesa-sta...@lists.freedesktop.org --- src/gallium/drivers/r600/evergreen_state.c | 5 - src/gallium/drivers/r600/r600_state.c | 5 + src/gallium/drivers/r600/r600d.h | 3 +++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src

[Mesa-dev] [PATCH 08/13] r600g: fix flushing on RV670, RS780, RS880 again

2014-04-20 Thread Marek Olšák
From: Marek Olšák Cc: 10.0 10.1 mesa-sta...@lists.freedesktop.org --- src/gallium/drivers/r600/r600_hw_context.c | 9 + 1 file changed, 9 insertions(+) diff --git a/src/gallium/drivers/r600/r600_hw_context.c b/src/gallium/drivers/r600/r600_hw_context.c index 5ecc73d..0aa7f45 100644 ---

[Mesa-dev] [PATCH 09/13] r600g: fix buffer copying on R600-R700

2014-04-20 Thread Marek Olšák
From: Marek Olšák This fixes broken rendering in DOTA 2. Cc: 10.0 10.1 mesa-sta...@lists.freedesktop.org --- src/gallium/drivers/r600/r600_blit.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/drivers/r600/r600_blit.c b/src/gallium/drivers/r600/r600_blit.c index 98c07b5.

[Mesa-dev] [PATCH 04/13] st/mesa: remove trailing NULL colorbuffers

2014-04-20 Thread Marek Olšák
From: Marek Olšák Cc: mesa-sta...@lists.freedesktop.org --- src/mesa/state_tracker/st_atom_framebuffer.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/mesa/state_tracker/st_atom_framebuffer.c b/src/mesa/state_tracker/st_atom_framebuffer.c index 4c4f839..09e0d85 100644 --- a/src/

[Mesa-dev] [PATCH 05/13] r600g: fix edge flags and layered rendering on R600-R700

2014-04-20 Thread Marek Olšák
From: Marek Olšák We forgot to set these bits. Cc: 10.1 mesa-sta...@lists.freedesktop.org --- src/gallium/drivers/r600/r600_state.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c index 8053

[Mesa-dev] [PATCH 06/13] r600g: disable async DMA on R700

2014-04-20 Thread Marek Olšák
From: Marek Olšák Cc: 10.0 10.1 mesa-sta...@lists.freedesktop.org --- src/gallium/winsys/radeon/drm/radeon_drm_winsys.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c ind

[Mesa-dev] [PATCH 10/13] r600g: fix for HTILE on R6xx

2014-04-20 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeon/r600_texture.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index 55caece..e30d933 100644 --- a/src/gallium/drivers/radeon/r600_texture.c +++ b/src

[Mesa-dev] [PATCH 11/13] r600g: fix for broken CULL_FRONT behavior on R6xx

2014-04-20 Thread Marek Olšák
From: Marek Olšák Cc: mesa-sta...@lists.freedesktop.org --- src/gallium/drivers/r600/evergreen_state.c | 24 - src/gallium/drivers/r600/r600_pipe.h | 31 - src/gallium/drivers/r600/r600_state.c| 51 src/gallium/drivers/r6

[Mesa-dev] [PATCH 13/13] r600g: fix hang on RV740 by using DX_RASTERIZATION_KILL instead of SX_MISC

2014-04-20 Thread Marek Olšák
From: Marek Olšák Changing SX_MISC hangs RV740. When we're at it, let's use DX_RASTERIZATION_KILL on all R700 and later chipsets. Cc: 10.0 10.1 mesa-sta...@lists.freedesktop.org --- src/gallium/drivers/r600/evergreen_state.c | 12 src/gallium/drivers/r600/evergreend.h | 3 +++

Re: [Mesa-dev] [PATCH 01/13] radeonsi: implement GL_ARB_vertex_type_10f_11f_11f_rev

2014-04-20 Thread Michel Dänzer
On 21.04.2014 10:59, Marek Olšák wrote: > From: Marek Olšák Reviewed-by: Michel Dänzer -- Earthling Michel Dänzer| http://www.amd.com Libre software enthusiast |Mesa and X developer ___ mesa-dev

Re: [Mesa-dev] [PATCH] st/mesa: fix invalid pointer use in st_texture_get_sampler_view()

2014-04-20 Thread Michel Dänzer
On 19.04.2014 03:35, Brian Paul wrote: > The '**used' pointer was pointing into the stObj->sampler_views array. > If 'free' was null, we'd realloc that array, thus making the 'used' > pointer invalid. This soon led to memory errors. > > Just change the pointer to be '*used' so it points directly

[Mesa-dev] [PATCH] glsl: Only allow `invariant` on shader in/out between stages.

2014-04-20 Thread Chris Forbes
Previously this was special-cased for VS and FS; it never got updated when geometry shaders came along. Generalize using is_varying_var() so this won't be broken again with tessellation. Note that there are two copies of the logic for `invariant`: It can be present as part of a new declaration, an