Re: [Mesa-dev] [PATCH] glsl: free uniform_map on failure path.

2014-09-02 Thread Tapani Pälli
Reviewed-by: Tapani Pälli tapani.pa...@intel.com On 09/02/2014 02:55 AM, Dave Airlie wrote: From: Dave Airlie airl...@redhat.com If we fails in reserve_explicit_locations, we leak uniform_map. Reported-by: coverity scanner. Signed-off-by: Dave Airlie airl...@redhat.com ---

Re: [Mesa-dev] [PATCH 07/37] i965/gen6/gs: Implement GS_OPCODE_FF_SYNC.

2014-09-02 Thread Iago Toral Quiroga
On lun, 2014-09-01 at 11:17 -0700, Kenneth Graunke wrote: On Thursday, August 14, 2014 01:11:39 PM Iago Toral Quiroga wrote: This implements the FF_SYNC message required in gen6 geometry shaders to get the initial URB handle. --- src/mesa/drivers/dri/i965/brw_defines.h | 14

Re: [Mesa-dev] [PATCH] mesa/program_cache: calloc the correct size for the cache.

2014-09-02 Thread Tapani Pälli
Yep, it should be allocating just the pointers. Reviewed-by: Tapani Pälli tapani.pa...@intel.com On 09/02/2014 02:22 AM, Dave Airlie wrote: From: Dave Airlie airl...@redhat.com Coverity reported this, and I think this is the right solution, since cache-items is struct cache_item ** not

Re: [Mesa-dev] [PATCH 2/2] radeonsi: Compile dummy pixel shader on demand

2014-09-02 Thread Michel Dänzer
On 01.09.2014 19:08, Marek Olšák wrote: On Wed, Aug 27, 2014 at 10:57 AM, Michel Dänzer mic...@daenzer.net wrote: From: Michel Dänzer michel.daen...@amd.com It's never used under normal circumstances. Signed-off-by: Michel Dänzer michel.daen...@amd.com ---

Re: [Mesa-dev] [PATCH] r600g, radeonsi: Always use GTT again for PIPE_USAGE_STREAM buffers

2014-09-02 Thread Michel Dänzer
On 01.09.2014 19:28, Marek Olšák wrote: Perhaps Valley uses scattered writes, which the write-combining cache doesn't like? In that case, I'd expect GTT with write-combining to be affected just as much as VRAM. From the bug reporter's latest comments, it seems clear the stutter is due to

[Mesa-dev] [Bug 83386] New: Feature request: GLX_EXT_swap_control_tear

2014-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83386 Priority: medium Bug ID: 83386 Assignee: mesa-dev@lists.freedesktop.org Summary: Feature request: GLX_EXT_swap_control_tear Severity: normal Classification: Unclassified OS:

[Mesa-dev] [Bug 83386] Feature request: GLX_EXT_swap_control_tear

2014-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83386 --- Comment #1 from cxo cruiseover...@gmail.com --- Created attachment 105586 -- https://bugs.freedesktop.org/attachment.cgi?id=105586action=edit Output of glxinfo -- You are receiving this mail because: You are the assignee for the bug.

[Mesa-dev] [PATCH] configure.ac: Add AC_SYS_LARGEFILE

2014-09-02 Thread Michel Dänzer
From: Michel Dänzer michel.daen...@amd.com Making sure large file support is enabled across the tree even on 32-bit systems. Signed-off-by: Michel Dänzer michel.daen...@amd.com --- configure.ac | 2 ++ src/gallium/auxiliary/os/os_mman.h| 13

Re: [Mesa-dev] [PATCH] vdpau: unlock the mutex on error paths in attribute setting.

2014-09-02 Thread Christian König
Am 02.09.2014 um 01:00 schrieb Dave Airlie: From: Dave Airlie airl...@redhat.com Coverity pointed out we never dropped the lock here, so fix it by using a common exit path. Signed-off-by: Dave Airlie airl...@redhat.com Reviewed-by: Christian König christian.koe...@amd.com ---

Re: [Mesa-dev] [PATCH] omx/h264: remove stray semicolon after if

2014-09-02 Thread Christian König
Am 02.09.2014 um 01:40 schrieb Dave Airlie: From: Dave Airlie airl...@redhat.com Coverity reported this, looks wrong to me. And is probably one of the reasons why streams with multiple slices in one frame didn't worked. Signed-off-by: Dave Airlie airl...@redhat.com Reviewed-by:

Re: [Mesa-dev] [PATCH] r600g: Implement GL_ARB_sample_shading

2014-09-02 Thread Glenn Kennard
On Mon, 01 Sep 2014 00:02:18 +0200, Glenn Kennard glenn.kenn...@gmail.com wrote: Signed-off-by: Glenn Kennard glenn.kenn...@gmail.com --- Tested on radeon 6670, all sample shading piglits pass, no regressions, as well as unigine valley basic, tesseract with MSAA enabled. It would be great if

[Mesa-dev] [PATCH] r600g,radeonsi: Preserve existing buffer flags

2014-09-02 Thread Michel Dänzer
From: Michel Dänzer michel.daen...@amd.com The default case was accidentally clearing RADEON_FLAG_CPU_ACCESS from the previous fall-through cases. Reported-by: Mathias Fröhlich mathias.froehl...@gmx.net Signed-off-by: Michel Dänzer michel.daen...@amd.com ---

Re: [Mesa-dev] [PATCH] r300g: pointless assignment of info.indexed

2014-09-02 Thread Marek Olšák
It's probably a result of refactoring. Reviewed-by: Marek Olšák marek.ol...@amd.com Marek On Tue, Sep 2, 2014 at 1:18 AM, Dave Airlie airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com Did this code mean to do something else, you tell me! Signed-off-by: Dave Airlie

Re: [Mesa-dev] [PATCH] r600g, radeonsi: Preserve existing buffer flags

2014-09-02 Thread Marek Olšák
Reviewed-by: Marek Olšák marek.ol...@amd.com Marek On Tue, Sep 2, 2014 at 10:54 AM, Michel Dänzer mic...@daenzer.net wrote: From: Michel Dänzer michel.daen...@amd.com The default case was accidentally clearing RADEON_FLAG_CPU_ACCESS from the previous fall-through cases. Reported-by:

Re: [Mesa-dev] [PATCH] configure.ac: Add AC_SYS_LARGEFILE

2014-09-02 Thread Marek Olšák
I think radeon_ctx.h is not included by Mesa, it's only included by dumped CS traces, so it shouldn't be changed. Marek On Tue, Sep 2, 2014 at 9:17 AM, Michel Dänzer mic...@daenzer.net wrote: From: Michel Dänzer michel.daen...@amd.com Making sure large file support is enabled across the tree

Re: [Mesa-dev] [PATCH] r600g: Implement GL_ARB_sample_shading

2014-09-02 Thread Benjamin
It's also broken on RV770, tested with Valley 1.0 (64-bit) Basic preset. 2014-09-02 10:42 GMT+02:00 Glenn Kennard glenn.kenn...@gmail.com: On Mon, 01 Sep 2014 00:02:18 +0200, Glenn Kennard glenn.kenn...@gmail.com wrote: Signed-off-by: Glenn Kennard glenn.kenn...@gmail.com --- Tested on

[Mesa-dev] [Bug 83355] FTBFS: src/mesa/program/program_lexer.l:122:64: error: unknown type name 'YYSTYPE'

2014-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83355 Kai k...@dev.carbon-project.org changed: What|Removed |Added Status|NEW |RESOLVED

Re: [Mesa-dev] [PATCH 0/3] cl workdim v2

2014-09-02 Thread Francisco Jerez
Jan Vesely jan.ves...@rutgers.edu writes: On Sat, 2014-08-16 at 13:13 +0300, Francisco Jerez wrote: Jan Vesely jan.ves...@rutgers.edu writes: On Thu, 2014-08-07 at 16:02 +0300, Francisco Jerez wrote: Jan Vesely jan.ves...@rutgers.edu writes: This respin includes Francisco's approach

Re: [Mesa-dev] [RFC PATCH 00/16] A new IR for Mesa

2014-09-02 Thread Tom Stellard
On Fri, Aug 22, 2014 at 02:35:02PM -0700, Ian Romanick wrote: On 08/22/2014 02:17 PM, Tom Stellard wrote: On Fri, Aug 22, 2014 at 02:10:03PM -0700, Ian Romanick wrote: On 08/20/2014 11:58 AM, Tom Stellard wrote: On Wed, Aug 20, 2014 at 11:13:13AM -0700, Kenneth Graunke wrote: On

[Mesa-dev] [Bug 83386] Feature request: GLX_EXT_swap_control_tear

2014-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83386 --- Comment #2 from Kenneth Graunke kenn...@whitecape.org --- I'd be pretty surprised if it was failing to start because of that extension. It should be totally optional, and is just a nice enhancement... -- You are receiving this mail

Re: [Mesa-dev] [RFC PATCH 00/16] A new IR for Mesa

2014-09-02 Thread Tom Stellard
On Wed, Aug 27, 2014 at 03:07:36PM -0700, Ian Romanick wrote: On 08/27/2014 02:55 PM, Marek Olšák wrote: Our plan is to always require the latest released version of LLVM because of new features in our LLVM backend that the radeonsi driver depends on to advertise all GL features. Some new

[Mesa-dev] SandyBridge issue likely related to fast color clears using meta operations

2014-09-02 Thread Samuel Iglesias Gonsálvez
Hello, Two weeks ago, Iago and myself sent a batch of patches that added geometry shader support for SandyBridge [0]. Recently, we rebased our patches against master [1] and found that some things are not working properly any more. Particularly, we have plenty of cases where we only get a black

Re: [Mesa-dev] SandyBridge issue likely related to fast color clears using meta operations

2014-09-02 Thread Samuel Iglesias Gonsálvez
Adding Kristian in Cc. Sam On Tue, 2014-09-02 at 18:16 +0200, Samuel Iglesias Gonsálvez wrote: Hello, Two weeks ago, Iago and myself sent a batch of patches that added geometry shader support for SandyBridge [0]. Recently, we rebased our patches against master [1] and found that some

Re: [Mesa-dev] SandyBridge issue likely related to fast color clears using meta operations

2014-09-02 Thread Emil Velikov
Hi Samuel, On 02/09/14 17:22, Samuel Iglesias Gonsálvez wrote: Adding Kristian in Cc. Sam On Tue, 2014-09-02 at 18:16 +0200, Samuel Iglesias Gonsálvez wrote: Hello, Two weeks ago, Iago and myself sent a batch of patches that added geometry shader support for SandyBridge [0].

Re: [Mesa-dev] [PATCH] main: Don't leak temporary texture rows

2014-09-02 Thread Anuj Phogat
On Mon, Sep 1, 2014 at 1:36 AM, Jason Ekstrand ja...@jlekstrand.net wrote: --- src/mesa/main/texstore.c | 4 1 file changed, 4 insertions(+) diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index f2eb0de..4b8158a 100644 --- a/src/mesa/main/texstore.c +++

[Mesa-dev] [Bug 83382] /usr/include/string.h:82:1: error: unknown type name '__extern_always_inline'

2014-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83382 --- Comment #1 from Alexander von Gluck kallis...@unixzen.com --- Looks like a clang issue? https://twiki.cern.ch/twiki/bin/view/Sandbox/ClangAsCrossCompiler -D__extern_always_inline=inline -- You are receiving this mail because: You are

Re: [Mesa-dev] [PATCH 06/14] i965: Add brw_scalar_prog_data structure

2014-09-02 Thread Kenneth Graunke
On Monday, September 01, 2014 09:44:30 AM Jordan Justen wrote: All fields were migrated from brw_wm_prog_data. In future updates, we can move these FS specific fields back into brw_wm_prog_data. The scalar_visitor and scalar_generator class mainly use these structures now. Signed-off-by:

Re: [Mesa-dev] [PATCH 04/14] i965/scalar_visitor: Add init function

2014-09-02 Thread Kenneth Graunke
On Monday, September 01, 2014 09:44:28 AM Jordan Justen wrote: This common init routine can be used by constructors for multiple program types. Signed-off-by: Jordan Justen jordan.l.jus...@intel.com --- src/mesa/drivers/dri/i965/brw_scalar.h | 1 +

Re: [Mesa-dev] [PATCH 07/14] i965: Add brw_scalar_prog_key structure

2014-09-02 Thread Kenneth Graunke
On Monday, September 01, 2014 09:44:31 AM Jordan Justen wrote: All fields were migrated from brw_wm_prog_key. In future updates, we can move these FS specific fields back into brw_wm_prog_key. We should just put things in the right place to begin with. struct brw_wm_prog_key { - uint8_t

Re: [Mesa-dev] [PATCH 02/14] i965: Rename fs_generator to scalar_generator

2014-09-02 Thread Kenneth Graunke
On Monday, September 01, 2014 09:44:26 AM Jordan Justen wrote: Signed-off-by: Jordan Justen jordan.l.jus...@intel.com --- src/mesa/drivers/dri/i965/Makefile.sources |2 +- src/mesa/drivers/dri/i965/brw_blorp_blit_eu.h |2 +- src/mesa/drivers/dri/i965/brw_fs.cpp

[Mesa-dev] [PATCH] r600g: fix alpha-test with HyperZ enabled, fixing L4D2 tree corruption

2014-09-02 Thread Marek Olšák
From: Marek Olšák marek.ol...@amd.com *_update_db_shader_control depends on the alpha test state. The problem was it was in a block which is only entered if the pixel shader is changed. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74863 Cc: mesa-sta...@lists.freedesktop.org ---

Re: [Mesa-dev] [PATCH 04/14] i965/scalar_visitor: Add init function

2014-09-02 Thread Kenneth Graunke
On Tuesday, September 02, 2014 11:49:29 AM Kenneth Graunke wrote: On Monday, September 01, 2014 09:44:28 AM Jordan Justen wrote: This common init routine can be used by constructors for multiple program types. Signed-off-by: Jordan Justen jordan.l.jus...@intel.com ---

Re: [Mesa-dev] [PATCH 11/14] i965: Add uses_kill to brw_scalar_prog_data

2014-09-02 Thread Kenneth Graunke
On Monday, September 01, 2014 09:44:35 AM Jordan Justen wrote: Signed-off-by: Jordan Justen jordan.l.jus...@intel.com --- src/mesa/drivers/dri/i965/brw_context.h| 1 + src/mesa/drivers/dri/i965/brw_fs.cpp | 2 +- src/mesa/drivers/dri/i965/brw_scalar_generator.cpp

Re: [Mesa-dev] [PATCH 12/14] i965: Add uses_dfdy to brw_scalar_prog_data

2014-09-02 Thread Kenneth Graunke
On Monday, September 01, 2014 09:44:36 AM Jordan Justen wrote: Signed-off-by: Jordan Justen jordan.l.jus...@intel.com --- src/mesa/drivers/dri/i965/brw_context.h| 1 + src/mesa/drivers/dri/i965/brw_scalar_generator.cpp | 4 ++-- src/mesa/drivers/dri/i965/brw_wm.c

Re: [Mesa-dev] [Mesa-stable] [PATCH 1/3 v2] mesa: Handle uninitialized textures like other textures in get_tex_level_parameter_image

2014-09-02 Thread Emil Velikov
On 19/08/14 23:26, Carl Worth wrote: Anuj Phogat anuj.pho...@gmail.com writes: On Wed, Jul 30, 2014 at 4:09 PM, Carl Worth cwo...@cworth.org wrote: Ian Romanick i...@freedesktop.org writes: Anuj: Can you verify this does not regress proxy_textures_invalid_size? ... Cc: 10.2

[Mesa-dev] [Bug 83355] FTBFS: src/mesa/program/program_lexer.l:122:64: error: unknown type name 'YYSTYPE'

2014-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83355 Kai k...@dev.carbon-project.org changed: What|Removed |Added Attachment #105562|text/plain |application/x-xz

Re: [Mesa-dev] [PATCH] r600g: fix alpha-test with HyperZ enabled, fixing L4D2 tree corruption

2014-09-02 Thread Benjamin
Tested-by: Benjamin Bellec b.bel...@gmail.com 2014-09-02 21:14 GMT+02:00 Marek Olšák mar...@gmail.com: From: Marek Olšák marek.ol...@amd.com *_update_db_shader_control depends on the alpha test state. The problem was it was in a block which is only entered if the pixel shader is changed.

Re: [Mesa-dev] [PATCH 13/14] i965: Remove gl_fragment_program dependence in scalar_generator

2014-09-02 Thread Kenneth Graunke
On Monday, September 01, 2014 09:44:37 AM Jordan Justen wrote: Signed-off-by: Jordan Justen jordan.l.jus...@intel.com --- src/mesa/drivers/dri/i965/brw_fs.cpp | 2 +- src/mesa/drivers/dri/i965/brw_scalar.h | 4 ++--

Re: [Mesa-dev] [PATCH 0/3] cl workdim v2

2014-09-02 Thread Jan Vesely
On Tue, 2014-09-02 at 15:36 +0300, Francisco Jerez wrote: Jan Vesely jan.ves...@rutgers.edu writes: On Sat, 2014-08-16 at 13:13 +0300, Francisco Jerez wrote: Jan Vesely jan.ves...@rutgers.edu writes: On Thu, 2014-08-07 at 16:02 +0300, Francisco Jerez wrote: Jan Vesely

Re: [Mesa-dev] [PATCH 14/14] i965: Don't store gl_fragment_program in scalar_visitor

2014-09-02 Thread Kenneth Graunke
On Monday, September 01, 2014 09:44:38 AM Jordan Justen wrote: Signed-off-by: Jordan Justen jordan.l.jus...@intel.com --- src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 8 ++-- src/mesa/drivers/dri/i965/brw_scalar.h | 1 - src/mesa/drivers/dri/i965/brw_scalar_visitor.cpp |

Re: [Mesa-dev] SandyBridge issue likely related to fast color clears using meta operations

2014-09-02 Thread Samuel Iglesias Gonsálvez
On 2014-09-02 18:58, Emil Velikov wrote: Hi Samuel, On 02/09/14 17:22, Samuel Iglesias Gonsálvez wrote: Adding Kristian in Cc. Sam On Tue, 2014-09-02 at 18:16 +0200, Samuel Iglesias Gonsálvez wrote: Hello, Two weeks ago, Iago and myself sent a batch of patches that added geometry shader

[Mesa-dev] New stable-branch 10.2 candidate pushed

2014-09-02 Thread Emil Velikov
Hello list, Time for another bi-weekly stable candidate. This time around we have - 54 queued - 13 nominated (outstanding) - and 4 rejected patches Take a look at section Mesa stable queue for more information. Regressions - classic swrast --- Tests: -

Re: [Mesa-dev] [RFC PATCH 00/16] A new IR for Mesa

2014-09-02 Thread Eric Anholt
Tom Stellard t...@stellard.net writes: On Wed, Aug 27, 2014 at 03:07:36PM -0700, Ian Romanick wrote: On 08/27/2014 02:55 PM, Marek Olšák wrote: Our plan is to always require the latest released version of LLVM because of new features in our LLVM backend that the radeonsi driver depends on

Re: [Mesa-dev] [PATCH 10/14] i965/fs: Use gl_program* rather than fp-Base

2014-09-02 Thread Kenneth Graunke
On Monday, September 01, 2014 09:44:34 AM Jordan Justen wrote: Reduce brw_fs_precompile's dependence on gl_fragment_program. The thing is, virtually all of the fields here are fragment program specific, and not going to be useful for compute. So, I'm not sure whether this is really useful.

Re: [Mesa-dev] [PATCH 09/14] i965/scalar_visitor: Use prog rather than fp-Base

2014-09-02 Thread Kenneth Graunke
On Monday, September 01, 2014 09:44:33 AM Jordan Justen wrote: Reduce scalar_visitor's dependence on gl_fragment_program. Signed-off-by: Jordan Justen jordan.l.jus...@intel.com --- src/mesa/drivers/dri/i965/brw_fs.cpp | 28

Re: [Mesa-dev] [PATCH 08/14] i965/scalar_visitor: Use stage_prog_data instead of prog_data-base

2014-09-02 Thread Kenneth Graunke
On Monday, September 01, 2014 09:44:32 AM Jordan Justen wrote: Signed-off-by: Jordan Justen jordan.l.jus...@intel.com --- src/mesa/drivers/dri/i965/brw_scalar_visitor.cpp | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) Always glad to see this. Reviewed-by: Kenneth Graunke

[Mesa-dev] [PATCH 2/2] u_primconvert: Use u_upload_mgr for our little IB allocations.

2014-09-02 Thread Eric Anholt
tex-miplevel-selection was hammering my memory manager with primconverts on individual quads. This gets all those converted IBs packed into larger IBs. --- src/gallium/auxiliary/indices/u_primconvert.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git

[Mesa-dev] [PATCH 1/2] u_primconvert: Shut up compiler warning.

2014-09-02 Thread Eric Anholt
gcc isn't detecting that src is set before used, since both are under if (info-indexed). --- src/gallium/auxiliary/indices/u_primconvert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/indices/u_primconvert.c

Re: [Mesa-dev] [PATCH] r600g: Implement GL_ARB_sample_shading

2014-09-02 Thread Alexandre Demers
Hi Glenn, I've tried applying your patch on the latest mesa code and it could not be applied properly. Could you rebase your patch? I would be happy to test it on Cayman for you once done. Cheers. -- Alexandre Demers ___ mesa-dev mailing list

[Mesa-dev] [PATCH] i965: Move curb_read_length/total_scratch to brw_stage_prog_data.

2014-09-02 Thread Kenneth Graunke
All shader stages have these fields, so it makes sense to store them in the common base structure, rather than duplicating them in each. Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- src/mesa/drivers/dri/i965/brw_context.h | 7 +++ src/mesa/drivers/dri/i965/brw_fs.cpp | 6

Re: [Mesa-dev] [Mesa-stable] [PATCH 1/3 v2] mesa: Handle uninitialized textures like other textures in get_tex_level_parameter_image

2014-09-02 Thread Carl Worth
Emil Velikov emil.l.veli...@gmail.com writes: This patch seems to regress two tests when running classic swrast. The gallium swrast is OK. glean: fragProg1-CMP glsl1-Preprocessor test 11 (#elif) I will not have the chance to run piglit on a i965 system until next week so I would love

[Mesa-dev] [Bug 83382] /usr/include/string.h:82:1: error: unknown type name '__extern_always_inline'

2014-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83382 --- Comment #2 from Alexander von Gluck kallis...@unixzen.com --- What version of fedora is this? What commands are you using to build Mesa? rpm -qa | grep gcc Thanks! -- You are receiving this mail because: You are the assignee for the bug.

Re: [Mesa-dev] [PATCH] configure.ac: Add AC_SYS_LARGEFILE

2014-09-02 Thread Emil Velikov
Hi Michel, On 02/09/14 08:17, Michel Dänzer wrote: From: Michel Dänzer michel.daen...@amd.com Making sure large file support is enabled across the tree even on 32-bit systems. Signed-off-by: Michel Dänzer michel.daen...@amd.com --- configure.ac | 2 ++

[Mesa-dev] [PATCH 2/4] meta/copy_image: Use the correct texture level when creating views

2014-09-02 Thread Jason Ekstrand
Previously, we were accidentally assuming that the level of both textures was 0. Now we actually use the correct level in our hacked texture view. This doesn't 100% fix the meta path because the texture type is getting lost somewhere in the pipeline. However, it actually copies to/from the

[Mesa-dev] [PATCH 3/4] i965/copy_image: Use the correct block dimension

2014-09-02 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand jason.ekstr...@intel.com --- src/mesa/drivers/dri/i965/intel_copy_image.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_copy_image.c b/src/mesa/drivers/dri/i965/intel_copy_image.c index

[Mesa-dev] [PATCH 1/4] i965/copy_image: Use the correct texture level

2014-09-02 Thread Jason Ekstrand
Previously, we were using the source images level for both source and destination. Now, we're using the correct level. Signed-off-by: Jason Ekstrand jason.ekstr...@intel.com --- src/mesa/drivers/dri/i965/intel_copy_image.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff

[Mesa-dev] [PATCH 0/4] A bunch of small GL_ARB_copy_image fixes

2014-09-02 Thread Jason Ekstrand
This series contains 4 small fixes to the meta and i965 implementations of GL_ARB_copy_image. Most of the problems were with respect to blitting between different mipmap levels of the two textures. The original implementation, as it turns out, only worked on mipmap level 0. This fixes it.

[Mesa-dev] [PATCH 4/4] i965/copy_image: Divide the x offsets by block width when using the blitter

2014-09-02 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand jason.ekstr...@intel.com --- src/mesa/drivers/dri/i965/intel_copy_image.c | 31 +++- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_copy_image.c b/src/mesa/drivers/dri/i965/intel_copy_image.c

Re: [Mesa-dev] [PATCH] i965: Move curb_read_length/total_scratch to brw_stage_prog_data.

2014-09-02 Thread Jordan Justen
Reviewed-by: Jordan Justen jordan.l.jus...@intel.com On Tue, Sep 2, 2014 at 1:31 PM, Kenneth Graunke kenn...@whitecape.org wrote: All shader stages have these fields, so it makes sense to store them in the common base structure, rather than duplicating them in each. Signed-off-by: Kenneth

[Mesa-dev] [Bug 83382] /usr/include/string.h:82:1: error: unknown type name '__extern_always_inline'

2014-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83382 --- Comment #3 from Vinson Lee v...@freedesktop.org --- $ cat /etc/redhat-release Fedora release 22 (Rawhide) $ export CC=clang $ export CXX=clang++ $ ./autogen.sh $ make $ yum info gcc Installed Packages Name: gcc Arch: x86_64

[Mesa-dev] [PATCH] gallivm: Fix build against LLVM SVN = r216982

2014-09-02 Thread Michel Dänzer
From: Michel Dänzer michel.daen...@amd.com Only MCJIT is available anymore. Signed-off-by: Michel Dänzer michel.daen...@amd.com --- src/gallium/auxiliary/gallivm/lp_bld_init.c | 9 + src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 2 ++ 2 files changed, 11 insertions(+) diff --git

Re: [Mesa-dev] [PATCH] configure.ac: Add AC_SYS_LARGEFILE

2014-09-02 Thread Michel Dänzer
On 03.09.2014 06:50, Emil Velikov wrote: On 02/09/14 08:17, Michel Dänzer wrote: diff --git a/src/gallium/auxiliary/os/os_mman.h b/src/gallium/auxiliary/os/os_mman.h index b48eb053..19478d2 100644 --- a/src/gallium/auxiliary/os/os_mman.h +++ b/src/gallium/auxiliary/os/os_mman.h @@ -40,9 +40,6

Re: [Mesa-dev] Mesa (10.2): gallivm: Fix build with LLVM = 3.6 r215967.

2014-09-02 Thread Michel Dänzer
On 03.09.2014 04:53, Emil Velikov wrote: Module: Mesa Branch: 10.2 Commit: 3fe59905fc684f64508982d405031771e273e656 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3fe59905fc684f64508982d405031771e273e656 Author: Vinson Lee v...@freedesktop.org Date: Tue Aug 19 23:17:40 2014 -0700

[Mesa-dev] [PATCH v2] configure.ac: Add AC_SYS_LARGEFILE

2014-09-02 Thread Michel Dänzer
From: Michel Dänzer michel.daen...@amd.com Making sure large file support is enabled across the tree even on 32-bit systems. Signed-off-by: Michel Dänzer michel.daen...@amd.com --- v2: Remove radeon_ctx.h hunk, thanks Marek and Emil. configure.ac | 2 ++

Re: [Mesa-dev] [PATCH] r600g: fix alpha-test with HyperZ enabled, fixing L4D2 tree corruption

2014-09-02 Thread Michel Dänzer
On 03.09.2014 04:14, Marek Olšák wrote: From: Marek Olšák marek.ol...@amd.com *_update_db_shader_control depends on the alpha test state. The problem was it was in a block which is only entered if the pixel shader is changed. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74863

[Mesa-dev] [PATCH 07/20] i965: Remove cfg-invalidating parameter from invalidate_live_intervals.

2014-09-02 Thread Matt Turner
Everything has been converted to preserve the CFG. --- src/mesa/drivers/dri/i965/brw_dead_control_flow.cpp | 2 +- src/mesa/drivers/dri/i965/brw_fs.cpp | 20 ++-- src/mesa/drivers/dri/i965/brw_fs.h | 2 +-

[Mesa-dev] [PATCH 04/20] i965/vec4: Preserve CFG in spill_reg().

2014-09-02 Thread Matt Turner
--- src/mesa/drivers/dri/i965/brw_vec4.cpp | 6 ++- src/mesa/drivers/dri/i965/brw_vec4.h | 10 ++-- .../drivers/dri/i965/brw_vec4_reg_allocate.cpp | 11 ++-- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 62 +- 4 files changed, 54

[Mesa-dev] [PATCH 05/20] i965/vec4: Remove vec4_visitor::emit_before().

2014-09-02 Thread Matt Turner
--- src/mesa/drivers/dri/i965/brw_vec4.h | 3 --- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 11 --- 2 files changed, 14 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_vec4.h b/src/mesa/drivers/dri/i965/brw_vec4.h index e752415..9706d28 100644 ---

[Mesa-dev] [PATCH 02/20] i965/fs: Preserve the CFG in a few more places.

2014-09-02 Thread Matt Turner
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 30 +- src/mesa/drivers/dri/i965/brw_fs.h | 6 -- 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 268f528..5c4ecb4

[Mesa-dev] [PATCH 08/20] i965: Remove now unneeded calls to calculate_cfg().

2014-09-02 Thread Matt Turner
Now that nothing invalidates the CFG, we can calculate_cfg() immediately after emit_fb_writes()/emit_thread_end() and never again. --- src/mesa/drivers/dri/i965/brw_dead_control_flow.cpp| 2 -- src/mesa/drivers/dri/i965/brw_fs.cpp | 14 ++

[Mesa-dev] [PATCH 06/20] i965: Preserve the CFG in instruction scheduling.

2014-09-02 Thread Matt Turner
--- .../drivers/dri/i965/brw_schedule_instructions.cpp | 74 -- 1 file changed, 42 insertions(+), 32 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp b/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp index 04ac242..bac0d55 100644 ---

[Mesa-dev] [PATCH 10/20] i965/vec4: Don't use instruction list after calculating the cfg.

2014-09-02 Thread Matt Turner
--- src/mesa/drivers/dri/i965/brw_shader.cpp| 2 +- src/mesa/drivers/dri/i965/brw_vec4.cpp | 14 +++--- src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp | 3 ++- src/mesa/drivers/dri/i965/brw_vec4_live_variables.cpp | 2 +-

[Mesa-dev] [PATCH 09/20] i965/fs: Don't use instruction list after calculating the cfg.

2014-09-02 Thread Matt Turner
The only trick is changing a break into a return true in register coalescing, since the macro is actually a double loop, and break will do something different than you expect. (Wish I'd realized that earlier!) --- src/mesa/drivers/dri/i965/brw_fs.cpp | 28 +++---

[Mesa-dev] [PATCH 16/20] i965/cfg: Add note about double-loop macros and break behavior.

2014-09-02 Thread Matt Turner
--- src/mesa/drivers/dri/i965/brw_cfg.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_cfg.h b/src/mesa/drivers/dri/i965/brw_cfg.h index 1498f1e..94713df 100644 --- a/src/mesa/drivers/dri/i965/brw_cfg.h +++ b/src/mesa/drivers/dri/i965/brw_cfg.h @@ -110,10

[Mesa-dev] [PATCH 18/20] i965/fs: Pass block to insert and remove functions missed earlier.

2014-09-02 Thread Matt Turner
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 8e328ea..255df18 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++

[Mesa-dev] [PATCH 00/20] i965: Finish making the CFG fundamental

2014-09-02 Thread Matt Turner
This series finishes making the CFG a fundamental piece of the IR. For each compile, we now only calculate the CFG once after we've finished visiting the GLSL IR. Once that's in place, we stop using the instruction list and instead iterate through the instructions in each block. With that in place

[Mesa-dev] [PATCH 13/20] i965/fs: Don't iterate between blocks with inst-next/prev.

2014-09-02 Thread Matt Turner
When instruction lists are per-basic block, this won't work. --- .../drivers/dri/i965/brw_dead_control_flow.cpp | 5 +-- src/mesa/drivers/dri/i965/brw_fs.cpp | 20 --- .../dri/i965/brw_fs_peephole_predicated_break.cpp | 7 ++--

[Mesa-dev] [PATCH 01/20] i965: Update if_block/else_block in the dead control flow pass.

2014-09-02 Thread Matt Turner
I think this bug crept in only recently. --- src/mesa/drivers/dri/i965/brw_dead_control_flow.cpp | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_dead_control_flow.cpp b/src/mesa/drivers/dri/i965/brw_dead_control_flow.cpp index 56884e6..7a302da 100644 ---

[Mesa-dev] [PATCH 03/20] i965/vec4: Preserve the CFG in a few more places.

2014-09-02 Thread Matt Turner
--- src/mesa/drivers/dri/i965/brw_vec4.cpp | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp index 536a4b6..f1c5210 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4.cpp +++

[Mesa-dev] [PATCH 20/20] i965: Add and use functions to get next/prev blocks.

2014-09-02 Thread Matt Turner
--- src/mesa/drivers/dri/i965/brw_cfg.h| 53 ++ .../drivers/dri/i965/brw_dead_control_flow.cpp | 16 +++ .../dri/i965/brw_fs_peephole_predicated_break.cpp | 12 ++--- src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp | 4 +-

[Mesa-dev] [PATCH 14/20] i965/vec4: Don't iterate between blocks with inst-next/prev.

2014-09-02 Thread Matt Turner
The register coalescing portion of this patch hurts three shaders in Guacamelee by one instruction each, but examining the diff makes me believe that what we were generating was (perhaps harmlessly) incorrect. --- src/mesa/drivers/dri/i965/brw_vec4.cpp | 30 +- 1 file

[Mesa-dev] [PATCH 17/20] i965: Make instruction lists local to the bblocks.

2014-09-02 Thread Matt Turner
--- src/mesa/drivers/dri/i965/brw_cfg.cpp | 62 - src/mesa/drivers/dri/i965/brw_cfg.h| 77 +- .../drivers/dri/i965/brw_dead_control_flow.cpp | 6 +- src/mesa/drivers/dri/i965/brw_fs.cpp | 6 +-

[Mesa-dev] [PATCH 15/20] i965: Replace initialization loops with memset().

2014-09-02 Thread Matt Turner
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 10 +++--- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 10 ++ 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 5277420..39603cd

[Mesa-dev] [PATCH 12/20] i965/cfg: Add macros to iterate through a block given a starting point.

2014-09-02 Thread Matt Turner
--- src/mesa/drivers/dri/i965/brw_cfg.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_cfg.h b/src/mesa/drivers/dri/i965/brw_cfg.h index ca6a2ac..1498f1e 100644 --- a/src/mesa/drivers/dri/i965/brw_cfg.h +++ b/src/mesa/drivers/dri/i965/brw_cfg.h @@

[Mesa-dev] [PATCH 19/20] i965: Call insert and remove functions from exec_node directly.

2014-09-02 Thread Matt Turner
--- src/mesa/drivers/dri/i965/brw_cfg.cpp| 16 src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 6 +++--- src/mesa/drivers/dri/i965/brw_shader.h | 3 --- 3 files changed, 11 insertions(+), 14 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_cfg.cpp

[Mesa-dev] [PATCH 11/20] i965/fs: Make count_to_loop_end() use basic blocks.

2014-09-02 Thread Matt Turner
When the instructions aren't in a flat list, this wouldn't have worked. Also, this should be faster. --- src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp | 28 +++ 1 file changed, 13 insertions(+), 15 deletions(-) diff --git

[Mesa-dev] [Bug 82477] [softpipe] piglit fp-long-alu regression

2014-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=82477 Vinson Lee v...@freedesktop.org changed: What|Removed |Added Blocks||79706 -- You are

[Mesa-dev] [Bug 79706] [TRACKER] Mesa regression tracker

2014-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=79706 Vinson Lee v...@freedesktop.org changed: What|Removed |Added Depends on||82477 -- You are

Re: [Mesa-dev] [PATCH 0/4] A bunch of small GL_ARB_copy_image fixes

2014-09-02 Thread Tapani Pälli
This series fixes https://bugs.freedesktop.org/show_bug.cgi?id=82804 Tested-by: Tapani Pälli tapani.pa...@intel.com On 09/03/2014 01:49 AM, Jason Ekstrand wrote: This series contains 4 small fixes to the meta and i965 implementations of GL_ARB_copy_image. Most of the problems were with

Re: [Mesa-dev] [PATCH] swrast: Use integer value 1 for true

2014-09-02 Thread Vinson Lee
On Tue, Aug 26, 2014 at 4:57 AM, Tapani tapani.pa...@intel.com wrote: On 08/26/2014 02:29 PM, Emil Velikov wrote: On 26/08/14 08:41, Tapani wrote: On 08/25/2014 07:19 PM, Eric Anholt wrote: Tapani Pälli tapani.pa...@intel.com writes: commit 4e64cfbb4 changed how gl_constant_value bool

Re: [Mesa-dev] [PATCH] swrast: Use integer value 1 for true

2014-09-02 Thread Tapani Pälli
On 09/03/2014 08:40 AM, Vinson Lee wrote: On Tue, Aug 26, 2014 at 4:57 AM, Tapani tapani.pa...@intel.com wrote: On 08/26/2014 02:29 PM, Emil Velikov wrote: On 26/08/14 08:41, Tapani wrote: On 08/25/2014 07:19 PM, Eric Anholt wrote: Tapani Pälli tapani.pa...@intel.com writes: commit