[Mesa-dev] [PATCH 0/5] ir_variable data container

2013-12-04 Thread Tapani Pälli
Hi; This series change ir_variable to include a data container for bitfields and other variables. This helps in variable cloning and serialization, it makes serialization easier but also much more maintainable. I divided the moving of variables as multiple patches to not exceed maximum patch s

[Mesa-dev] [PATCH 3/5] glsl: move variables in to ir_variable::data, part II

2013-12-04 Thread Tapani Pälli
This patch moves following bitfields in to the data structure: explicit_location, explicit_index, explicit_binding, has_initializer, is_unmatched_generic_inout, location_frac Signed-off-by: Tapani Pälli --- src/glsl/ast_to_hir.cpp | 12 ++--- src/glsl/builtin_variables.cpp

[Mesa-dev] [PATCH 1/5] glsl: introduce data section to ir_variable

2013-12-04 Thread Tapani Pälli
Data section helps serialization and cloning of a ir_variable. This patch includes the helper bits used for read only ir_variables. Signed-off-by: Tapani Pälli --- src/glsl/ast_function.cpp | 2 +- src/glsl/ast_to_hir.cpp | 28 ++-- src/

[Mesa-dev] [PATCH 5/5] glsl: modify ir_clone to use memcpy

2013-12-04 Thread Tapani Pälli
Patch copies the whole data structure at once instead of assigning individual variables. Signed-off-by: Tapani Pälli --- src/glsl/ir_clone.cpp | 22 +++--- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/src/glsl/ir_clone.cpp b/src/glsl/ir_clone.cpp index d98ed95..

Re: [Mesa-dev] [PATCH] winsys/radeon: set/get the scanout flag with the tiling ioctls

2013-12-04 Thread Marek Olšák
I wanted to keep the old behavior for R600, because it doesn't have the issue as far as I know. Marek On Wed, Dec 4, 2013 at 5:16 AM, Michel Dänzer wrote: > On Fre, 2013-11-29 at 19:08 +0100, Marek Olšák wrote: >> From: Marek Olšák >> >> If we assume that all buffers allocated by the DDX are sc

[Mesa-dev] [PATCH] r600/llvm: Allow arbitrary amount of temps in tgsi to llvm

2013-12-04 Thread Vincent Lejeune
--- src/gallium/drivers/radeon/radeon_llvm.h | 5 +++ .../drivers/radeon/radeon_setup_tgsi_llvm.c| 41 +++--- 2 files changed, 42 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/radeon/radeon_llvm.h b/src/gallium/drivers/radeon/radeon_llvm.h inde

Re: [Mesa-dev] [Mesa-stable] [PATCH 2/2] mesa: don't leak performance monitors on context destroy

2013-12-04 Thread Kenneth Graunke
On 11/29/2013 02:52 AM, Ilia Mirkin wrote: > Signed-off-by: Ilia Mirkin > Cc: "10.0" > --- > > Found with valgrind. Don't have the hardware to test a real implementation, > but with nv50 it seemed to work in that valgrind was no longer marking the > hash table as leaked. Reviewed-by: Kenneth Gr

[Mesa-dev] [PATCH 1/7] i965: Document conventions for counting layers in 2D multisample buffers.

2013-12-04 Thread Paul Berry
The "layer" parameters used in blorp, and the intel_renderbuffer::mt_layer field, represent a physical layer rather than a logical layer. This is important for 2D multisample arrays on Gen7+ because the UMS and CMS multisample layouts use N physical layers to represent each logical layer, where N

[Mesa-dev] [PATCH 6/7] i965/blorp: Refactor code for computing fast clear align/scaledown factors.

2013-12-04 Thread Paul Berry
This will make it easier to add fast color clear support to MSAA buffers, since they have different alignment and scaling requirements. --- src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 42 +++ 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/src/mesa/drive

[Mesa-dev] [PATCH 2/7] i965: Don't try to use HW blitter for glCopyPixels() when multisampled.

2013-12-04 Thread Paul Berry
The hardware blitter doesn't understand multisampled layouts, so there's no way this could possibly succeed. --- src/mesa/drivers/dri/i965/intel_pixel_copy.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/mesa/drivers/dri/i965/intel_pixel_copy.c b/src/mesa/drivers/dri/i965/intel_pix

[Mesa-dev] [PATCH 3/7] i965/gen7+: Disentangle MSAA layout from fast clear state.

2013-12-04 Thread Paul Berry
This patch renames the enum that's used to keep track of fast clear state from "mcs_state" to "fast_clear_state", and it removes the enum value INTEL_MCS_STATE_MSAA (which previously meant, "this is an MSAA buffer, so we're not keeping track of fast clear state"). The only real purpose that enum v

[Mesa-dev] [PATCH 0/7] i965/gen7+: MSAA fast color clears.

2013-12-04 Thread Paul Berry
This series extends the gen7+ fast color clear capability to work with multisample (MSAA) buffers. Patch 1 documents some conventions about layer counting that I had to sleuth out in order to write patch 5. Patch 2 fixes a pre-existing bug that was previously inadequately piglit tested, but which

[Mesa-dev] [PATCH 5/7] i965/blorp: allow multisample blorp clears

2013-12-04 Thread Paul Berry
Previously, we didn't do multisample blorp clears because we couldn't figure out how to get them to work. The reason for this was because we weren't setting the brw_blorp_params num_samples field consistently with dst.num_samples. Now that those two fields have been collapsed down into one, we ca

[Mesa-dev] [PATCH 7/7] i965/gen7+: Implement fast color clears for MSAA buffers.

2013-12-04 Thread Paul Berry
Fast color clears of MSAA buffers work just like fast color clears with non-MSAA buffers, except that the alignment and scaledown requirements are different. --- src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 131 +- 1 file changed, 87 insertions(+), 44 deletions(-) diff

[Mesa-dev] [PATCH 4/7] i965/blorp: Get rid of redundant num_samples blorp param.

2013-12-04 Thread Paul Berry
Previously, brw_blorp_params contained two fields for determining sample count: num_samples (which determined the multisample configuration of the rendering pipeline) and dst.num_samples (which determined the multisample configuration of the render target surface). This was redundant, since both f

Re: [Mesa-dev] [PATCH V2] Modified _mesa_align_free to have consistent behavior when dealing with NULL memory address.

2013-12-04 Thread Brian Paul
On 12/03/2013 09:50 PM, Siavash Eliasi wrote: Revision 2: - Avoiding compile error on MSVC and possible warnings on other compilers. - Added comment regards passing NULL pointer being safe. --- src/mesa/main/imports.c| 14 +- src/mesa/math/m_matrix.c |

Re: [Mesa-dev] [PATCH 1/9] mesa: have old glColorTable functions generate GL_INVALID_OPERATION

2013-12-04 Thread Brian Paul
On 11/23/2013 05:00 PM, Ian Romanick wrote: Patches 1 through 6 and 9 are Reviewed-by: Ian Romanick . I actually wonder if in non-debug builds we should use function aliasing (or similar) to use generic_noop for all these functions that just set GL_INVALID_OPERATION. That might be a good newbi

Re: [Mesa-dev] [PATCH] radeonsi: Remove some stale XXX / FIXME comments

2013-12-04 Thread Alex Deucher
On Tue, Dec 3, 2013 at 11:38 PM, Michel Dänzer wrote: > From: Michel Dänzer > > Signed-off-by: Michel Dänzer Reviewed-by: Alex Deucher > --- > src/gallium/drivers/radeonsi/radeonsi_pipe.c | 1 - > src/gallium/drivers/radeonsi/radeonsi_shader.c | 5 + > 2 files changed, 1 insertion(+),

Re: [Mesa-dev] [PATCH] radeonsi: Remove some stale XXX / FIXME comments

2013-12-04 Thread Mario Rugiero
May I ask if those fixmes are actually fixed? Otherwise, wouldn't it be wiser to keep them pointing out this problems? 2013/12/4 Alex Deucher > On Tue, Dec 3, 2013 at 11:38 PM, Michel Dänzer wrote: > > From: Michel Dänzer > > > > Signed-off-by: Michel Dänzer > > Reviewed-by: Alex Deucher >

Re: [Mesa-dev] [PATCH] radeonsi: Remove some stale XXX / FIXME comments

2013-12-04 Thread Alex Deucher
On Wed, Dec 4, 2013 at 11:20 AM, Mario Rugiero wrote: > May I ask if those fixmes are actually fixed? Otherwise, wouldn't it be > wiser to keep them pointing out this problems? They are no longer relevant or we'd leave them in. The first hunk, for example, was just a copy and paste leftover from

Re: [Mesa-dev] [PATCH] radeonsi: Remove some stale XXX / FIXME comments

2013-12-04 Thread Mario Rugiero
Oh, OK then. I thought they maybe were there for a reason other than having used the other driver as a base. 2013/12/4 Alex Deucher > On Wed, Dec 4, 2013 at 11:20 AM, Mario Rugiero wrote: > > May I ask if those fixmes are actually fixed? Otherwise, wouldn't it be > > wiser to keep them pointin

[Mesa-dev] [Bug 70766] Run-time link error in swrast_dri.so

2013-12-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=70766 --- Comment #5 from Andreas Hartmetz --- For completeness because I forgot to say it explicitly: Yes, I'm using cmake. Also hello LLVM, if anybody sees this... that patch is important. -- You are receiving this mail because: You are the assigne

Re: [Mesa-dev] [PATCH 1/9] mesa: have old glColorTable functions generate GL_INVALID_OPERATION

2013-12-04 Thread Ian Romanick
On 12/04/2013 06:35 AM, Brian Paul wrote: > On 11/23/2013 05:00 PM, Ian Romanick wrote: >> Patches 1 through 6 and 9 are >> >> Reviewed-by: Ian Romanick . >> >> I actually wonder if in non-debug builds we should use function aliasing >> (or similar) to use generic_noop for all these functions that

Re: [Mesa-dev] [PATCH] mesa: reduce memory used for short display lists

2013-12-04 Thread Brian Paul
On Sun, Nov 24, 2013 at 9:00 AM, Brian Paul wrote: > From: Brian Paul > > Display lists allocate memory in chunks of 256 tokens (1KB) at a time. > If an app creates many short display lists or uses glXUseXFont() this > can waste quite a bit of memory. > > This patch uses realloc() to trim short

Re: [Mesa-dev] [PATCH 1/2] r300/compiler/tests: Fix segfault

2013-12-04 Thread Alex Deucher
On Mon, Dec 2, 2013 at 9:46 PM, Tom Stellard wrote: > From: Tom Stellard > > CC: "9.2" "10.0" For the series: Reviewed-by: Alex Deucher > --- > .../r300/compiler/tests/radeon_compiler_regalloc_tests.c | 11 > +-- > 1 file changed, 5 insertions(+), 6 deletions(-) > > diff --git

Re: [Mesa-dev] [PATCH] r600/llvm: Allow arbitrary amount of temps in tgsi to llvm

2013-12-04 Thread Tom Stellard
On Wed, Dec 04, 2013 at 03:11:16PM +0100, Vincent Lejeune wrote: > --- > src/gallium/drivers/radeon/radeon_llvm.h | 5 +++ > .../drivers/radeon/radeon_setup_tgsi_llvm.c| 41 > +++--- > 2 files changed, 42 insertions(+), 4 deletions(-) > > diff --git a/src/galli

Re: [Mesa-dev] [PATCH] radeonsi: Remove some stale XXX / FIXME comments

2013-12-04 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Wed, Dec 4, 2013 at 5:38 AM, Michel Dänzer wrote: > From: Michel Dänzer > > Signed-off-by: Michel Dänzer > --- > src/gallium/drivers/radeonsi/radeonsi_pipe.c | 1 - > src/gallium/drivers/radeonsi/radeonsi_shader.c | 5 + > 2 files changed, 1 insertion(

Re: [Mesa-dev] [PATCH 7/7] i965/gen7+: Implement fast color clears for MSAA buffers.

2013-12-04 Thread Chris Forbes
+ } else { + /* From the Ivy Bridge PRM, Vol2 Part1 11.7 "MCS Buffer for Render + * Target(s)", beneath the "MSAA Compression" bugget (p326): bullet? ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.

[Mesa-dev] [Bug 72230] Unable to extract MesaLib-10.0.0.tar.{gz, bz2} with bsdtar

2013-12-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=72230 --- Comment #5 from Matt Turner --- (In reply to comment #4) > Would it be possible to provide updated tarballs including this fix? Doesn't seem worth it. -- You are receiving this mail because: You are the assignee for the bug. __

Re: [Mesa-dev] [PATCH 03/15] i965/cfg: Rework to make IF & ELSE blocks flow into ENDIF.

2013-12-04 Thread Eric Anholt
Matt Turner writes: > Previously we made the basic block following an ENDIF instruction a > successor of the basic blocks ending with IF and ELSE. The PRM says that > IF and ELSE instructions jump *to* the ENDIF, rather than over it. > > This should be immaterial to dataflow analysis, except for

Re: [Mesa-dev] [PATCH] glsl: Remove unreachable error message

2013-12-04 Thread Timothy Arceri
Ping. Just to clarify unsized arrays cannot be assigned so var->max_array_access will always be 0 as redecorations are already handled before this point by get_variable_being_redeclared() This patch is needed as a cleanup for ARB_arrays_of_arrays work. I have run all glsl piglit tests without reg

[Mesa-dev] [Bug 72230] Unable to extract MesaLib-10.0.0.tar.{gz, bz2} with bsdtar

2013-12-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=72230 --- Comment #6 from Ian Romanick --- (In reply to comment #5) > (In reply to comment #4) > > Would it be possible to provide updated tarballs including this fix? > > Doesn't seem worth it. ...because 10.0.1 will be along shortly. -- You are r

Re: [Mesa-dev] [PATCH] mesa: reduce memory used for short display lists

2013-12-04 Thread Ian Romanick
On 11/24/2013 08:00 AM, Brian Paul wrote: > From: Brian Paul > > Display lists allocate memory in chunks of 256 tokens (1KB) at a time. > If an app creates many short display lists or uses glXUseXFont() this > can waste quite a bit of memory. > > This patch uses realloc() to trim short lists and

Re: [Mesa-dev] [PATCH] mesa: reduce memory used for short display lists

2013-12-04 Thread Regis Perdreau
unsubscribe 2013/12/4 Ian Romanick : > On 11/24/2013 08:00 AM, Brian Paul wrote: >> From: Brian Paul >> >> Display lists allocate memory in chunks of 256 tokens (1KB) at a time. >> If an app creates many short display lists or uses glXUseXFont() this >> can waste quite a bit of memory. >> >> This

Re: [Mesa-dev] [PATCH] glsl: Remove unreachable error message

2013-12-04 Thread Ian Romanick
On 11/20/2013 03:41 AM, Timothy Arceri wrote: > Left over from bug #34376. I think this shader hits this error message: #version 120 int x[]; void foo() { x[3] = 2; } int x[] = int[2](1,2); do_assignment is also used for initializers. Initializers can be used to (explicitly)

[Mesa-dev] [Bug 72325] New: [swrast] piglit glean fbo regression

2013-12-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=72325 Priority: medium Bug ID: 72325 Keywords: regression CC: airl...@freedesktop.org Assignee: mesa-dev@lists.freedesktop.org Summary: [swrast] piglit glean fbo regression S

Re: [Mesa-dev] [PATCH 7/9] mesa: Fill out ARB_texture_view entry points

2013-12-04 Thread Courtney Goeltzenleuchter
It's come to my attention that Mesa's handling of GL_TEXTURE_BASE_LEVEL and GL_TEXTURE_MAX_LEVEL in glTexParameter and glGetTexParameter may be incorrect. The issue happens with the following sequence: glTexStorage2D(GL_TEXTURE_2D, 4, GL_RGBA8, 128, 128); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE

Re: [Mesa-dev] [PATCH 7/7] i965/gen7+: Implement fast color clears for MSAA buffers.

2013-12-04 Thread Chad Versace
On 12/04/2013 06:30 AM, Paul Berry wrote: Fast color clears of MSAA buffers work just like fast color clears with non-MSAA buffers, except that the alignment and scaledown requirements are different. --- src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 131 +- 1 file cha

Re: [Mesa-dev] [PATCH 03/15] i965/cfg: Rework to make IF & ELSE blocks flow into ENDIF.

2013-12-04 Thread Matt Turner
On Wed, Dec 4, 2013 at 1:17 PM, Eric Anholt wrote: > Matt Turner writes: > >> Previously we made the basic block following an ENDIF instruction a >> successor of the basic blocks ending with IF and ELSE. The PRM says that >> IF and ELSE instructions jump *to* the ENDIF, rather than over it. >> >>

[Mesa-dev] [Bug 72326] New: [swrast] piglit glean pbo regression

2013-12-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=72326 Priority: medium Bug ID: 72326 Keywords: regression CC: airl...@freedesktop.org Assignee: mesa-dev@lists.freedesktop.org Summary: [swrast] piglit glean pbo regression S

[Mesa-dev] [Bug 72327] New: [swrast] piglit glean pointSprite regression (master)

2013-12-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=72327 Priority: medium Bug ID: 72327 Keywords: regression CC: airl...@freedesktop.org Assignee: mesa-dev@lists.freedesktop.org Summary: [swrast] piglit glean pointSprite regression (ma

[Mesa-dev] [Bug 72327] [swrast] piglit glean pointSprite regression

2013-12-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=72327 Vinson Lee changed: What|Removed |Added Summary|[swrast] piglit glean |[swrast] piglit glean |po

Re: [Mesa-dev] [PATCH 7/7] i965/gen7+: Implement fast color clears for MSAA buffers.

2013-12-04 Thread Anuj Phogat
On Wed, Dec 4, 2013 at 6:30 AM, Paul Berry wrote: > Fast color clears of MSAA buffers work just like fast color clears > with non-MSAA buffers, except that the alignment and scaledown > requirements are different. > --- > src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 131 > +---

Re: [Mesa-dev] [PATCH] mesa: Portably detect the availability of fpclassify.

2013-12-04 Thread Ian Romanick
On 11/20/2013 01:15 PM, Jonas 'Sortie' Termansen wrote: > POSIX 2008 mandates fpclassify, FP_INFINITE, FP_NAN, FP_NORMAL, FP_SUBNORMAL, And C99. > and FP_ZERO are all macros and we can therefore detect them through simple > preprocessor conditionals on compliant platforms. This avoids further gro

Re: [Mesa-dev] [PATCH 7/7] i965/gen7+: Implement fast color clears for MSAA buffers.

2013-12-04 Thread Kenneth Graunke
On 12/04/2013 06:30 AM, Paul Berry wrote: > Fast color clears of MSAA buffers work just like fast color clears > with non-MSAA buffers, except that the alignment and scaledown > requirements are different. > --- > src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 131 > +- >

Re: [Mesa-dev] [PATCH 7/7] i965/gen7+: Implement fast color clears for MSAA buffers.

2013-12-04 Thread Kenneth Graunke
On 12/04/2013 03:07 PM, Chad Versace wrote: > On 12/04/2013 06:30 AM, Paul Berry wrote: >> Fast color clears of MSAA buffers work just like fast color clears >> with non-MSAA buffers, except that the alignment and scaledown >> requirements are different. >> --- >> src/mesa/drivers/dri/i965/brw_bl

[Mesa-dev] [PATCH] swrast: fix readback regression since inversion fix

2013-12-04 Thread Dave Airlie
From: Dave Airlie This readback from the frontbuffer with swrast was broken, that bug just made it more obviously broken, this fixes it by inverting the sub image gets. Also fixes a few other piglits. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=72327 Fixes: https://bugs.freedesktop.org/s

[Mesa-dev] [PATCH] glx: Use struct xshmfence* instead of int32_t*.

2013-12-04 Thread Matt Turner
--- src/glx/dri3_glx.c | 4 ++-- src/glx/dri3_priv.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c index b047cc8..1834c6d 100644 --- a/src/glx/dri3_glx.c +++ b/src/glx/dri3_glx.c @@ -676,7 +676,7 @@ dri3_alloc_render_buffer(struct g

Re: [Mesa-dev] [PATCH] glsl: Remove unreachable error message

2013-12-04 Thread Timothy Arceri
On Wed, 2013-12-04 at 14:32 -0800, Ian Romanick wrote: > On 11/20/2013 03:41 AM, Timothy Arceri wrote: > > Left over from bug #34376. > > I think this shader hits this error message: > > #version 120 > > int x[]; > > void foo() { x[3] = 2; } > > int x[] = int[2](1,2); > > do_a

[Mesa-dev] [Bug 72335] New: Requesting git commit access to mesa

2013-12-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=72335 Priority: medium Bug ID: 72335 Assignee: mesa-dev@lists.freedesktop.org Summary: Requesting git commit access to mesa Severity: normal Classification: Unclassified OS: All

[Mesa-dev] [Bug 72335] Requesting git commit access to mesa

2013-12-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=72335 --- Comment #1 from Timothy Arceri --- Created attachment 90291 --> https://bugs.freedesktop.org/attachment.cgi?id=90291&action=edit Whoops this is the SSH key other attachment was PGP -- You are receiving this mail because: You are the assig

[Mesa-dev] [Bug 72335] Requesting git commit access to mesa

2013-12-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=72335 Timothy Arceri changed: What|Removed |Added Attachment #90291|0 |1 is obsolete|