Re: [Mesa-dev] [PATCH 1/6] c11: add c11 compatibility wrapper around stdlib.h

2015-03-09 Thread Jose Fonseca
On 07/03/15 19:38, Emil Velikov wrote: On 07/03/15 07:23, Jose Fonseca wrote: ... we still didn't eliminate the use of non-portable _MTX_INITIALIZER_NP from Mesa tree gave me pause. The only way I can think about resolving this, is to use call_once() to initialize the mutex, Yes, I'm afraid

Re: [Mesa-dev] [PATCH 4/4] Clover: use get_device_vendor instead of get_vendor

2015-03-09 Thread Francisco Jerez
Giuseppe Bilotta giuseppe.bilo...@gmail.com writes: The pipe's get_vendor method returns something more akin to a driver vendor string in most cases, instead of the actual device vendor. Use get_device_vendor instead, which was introduced specifically for this purpose. For this patch:

Re: [Mesa-dev] GSoC 2015 Proposal : Porting Glean tests to piglit

2015-03-09 Thread Juliet Fru
Hello, Thanks for the email. I am currently updating the proposal now. Best, Juliet On Mon, Mar 9, 2015 at 12:32 PM, Emil Velikov emil.l.veli...@gmail.com wrote: On 04/03/15 11:21, Juliet Fru wrote: Hello, Here is my proposal for Adding Porting Glean tests to piglit. I'll like to get

[Mesa-dev] [PATCH] autogen.sh: pass --force to autoreconf, quote ORIGDIR

2015-03-09 Thread Emil Velikov
My passing --force autoreconf will update all the aux files, which would otherwise be ignored if one updates autoconf/automake. Quote the ORIGDIR variable to prevent fall-outs, when it's name contains space. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- autogen.sh | 4 ++-- 1 file

Re: [Mesa-dev] GSoC 2015 Proposal : Porting Glean tests to piglit

2015-03-09 Thread Emil Velikov
On 04/03/15 11:21, Juliet Fru wrote: Hello, Here is my proposal for Adding Porting Glean tests to piglit. I'll like to get your comments and tweaks. Thanks, Juliet​ Porting Glean tests to Piglit framework OPW Proposal

[Mesa-dev] GSoC 2015 Proposal: Porting Glean tests to piglit.

2015-03-09 Thread Juliet Fru
Hello, Here is my proposal: Porting Glean Tests to Piglit GSoC Proposal Contact Informaion:Names:Achere Juliet F. Forchibe E-mail address: juliet...@gmail.com IRC Nick: Jul13t Mentors: Brian Paul, Laura Ekstrand Project Information Porting Glean Tests to the Piglit framework. Brief

Re: [Mesa-dev] [PATCH 1/3] Revert common: Fix PBOs for 1D_ARRAY.

2015-03-09 Thread Neil Roberts
Hi Emil, The resolve looks good, however I think it would also make sense to cherry pick a44606 to the stable branch. It doesn't do any harm either way but it should be slightly faster and cleaner with that patch as well. Regards, - Neil Emil Velikov emil.l.veli...@gmail.com writes: On 4

[Mesa-dev] [PATCH] i965: Do not render primitives in non-zero streams then TF is disabled

2015-03-09 Thread Iago Toral Quiroga
Haswell hardware seems to ignore Render Stream Select bits from 3DSTATE_STREAMOUT packet when the SOL stage is disabled even if the PRM says otherwise. Because of this, all primitives are sent down the pipeline for rasterization, which is wrong. If SOL is enabled, Render Stream Select is honored

Re: [Mesa-dev] [PATCH 1/3] mesa: Simplify some tests in update_array_format()

2015-03-09 Thread Fredrik Höglund
On Thursday 05 March 2015, Ian Romanick wrote: On 03/05/2015 10:56 AM, Fredrik Höglund wrote: There is no need to check if these extensions are supported here; if the data type is not supported, we will already have returned a GL_INVALID_ENUM error. From where would GL_INVALID_ENUM have

[Mesa-dev] [PATCH] r300g: Fix the ATI1N swizzle.

2015-03-09 Thread Stefan Dösinger
This fixes the GL_COMPRESSED_RED_RGTC1 part of piglit's rgtc-teximage-01 test as well as the precision part of Wine's 3dc format test (fd.o bug 89156). The Z component seems to contain a lower precision version of the result, probably a temporary value from the decompression computation. The Y

Re: [Mesa-dev] [PATCH] i965: Silence GCC maybe-uninitialized warning.

2015-03-09 Thread Anuj Phogat
On Fri, Mar 6, 2015 at 10:10 PM, Vinson Lee v...@freedesktop.org wrote: brw_shader.cpp: In function ‘bool brw_saturate_immediate(brw_reg_type, brw_reg*)’: brw_shader.cpp:618:31: warning: ‘sat_imm.brw_saturate_immediate(brw_reg_type, brw_reg*)::anonymous union::ud’ may be used uninitialized

Re: [Mesa-dev] [PATCH] i915: Fix GCC unused-but-set-variable warning in release build.

2015-03-09 Thread Anuj Phogat
On Fri, Mar 6, 2015 at 9:56 PM, Vinson Lee v...@freedesktop.org wrote: i915_fragprog.c: In function ‘i915ValidateFragmentProgram’: i915_fragprog.c:1453:11: warning: variable ‘k’ set but not used [-Wunused-but-set-variable] int k; ^ Signed-off-by: Vinson Lee

Re: [Mesa-dev] [PATCH] r300g: Fix the ATI1N swizzle.

2015-03-09 Thread Ilia Mirkin
On Mon, Mar 9, 2015 at 12:26 PM, Stefan Dösinger stefandoesin...@gmx.at wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 2015-03-09 um 17:19 schrieb Ilia Mirkin: It also has the additional problem that it doesn't do the swizzle workaround which apparently is necessary even for

Re: [Mesa-dev] [PATCH] r300g: Fix the ATI1N swizzle.

2015-03-09 Thread Ilia Mirkin
On Mon, Mar 9, 2015 at 11:15 AM, Stefan Dösinger stefandoesin...@gmx.at wrote: This fixes the GL_COMPRESSED_RED_RGTC1 part of piglit's rgtc-teximage-01 test as well as the precision part of Wine's 3dc format test (fd.o bug 89156). This is often identified in the commit message with Bugzilla:

Re: [Mesa-dev] [PATCH 4/7] main: Cosmetic changes for Texture Buffers.

2015-03-09 Thread Anuj Phogat
On Wed, Mar 4, 2015 at 4:41 PM, Laura Ekstrand la...@jlekstrand.net wrote: Adds a useful comment and some whitespace. Fixes an error message. v2: Review from Anuj Phogat - Split rebase of Tex[ture]Buffer[Range] --- src/mesa/main/teximage.c | 12 ++-- 1 file changed, 10

Re: [Mesa-dev] [PATCH] r300g: Fix the ATI1N swizzle.

2015-03-09 Thread Stefan Dösinger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Thanks for the quick feedback! Am 2015-03-09 um 16:20 schrieb Ilia Mirkin: I don't suppose you've tried adding RGTC1_SNORM/LATC1_SNORM into that condition? No, because the codepath isn't entered for them at all. There's an if(format !=

Re: [Mesa-dev] [PATCH] r300g: Fix the ATI1N swizzle.

2015-03-09 Thread Stefan Dösinger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 2015-03-09 um 17:19 schrieb Ilia Mirkin: It also has the additional problem that it doesn't do the swizzle workaround which apparently is necessary even for single-component textures. Do you mean the change I made in my patch? That part works

Re: [Mesa-dev] [PATCH] r300g: Fix the ATI1N swizzle.

2015-03-09 Thread Stefan Dösinger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 2015-03-09 um 16:53 schrieb Stefan Dösinger: I did test if LATC_UNORM and LATC_SNORM still work after my fix. LATC_SNORM is unchanged (broken in the same way as RGTC_SNORM) and LATC_UNORM now has the proper precision like RGTC_UNORM. I think

Re: [Mesa-dev] [PATCH] Add macro for unused function attribute.

2015-03-09 Thread Emil Velikov
On 07/03/15 22:09, Vinson Lee wrote: Suggested-by: Emil Velikov emil.l.veli...@gmail.com Signed-off-by: Vinson Lee v...@freedesktop.org Reviewed-by: Emil Velikov emil.l.veli...@gmail.com Looks great. Thanks. Emil --- configure.ac | 1 + scons/gallium.py | 1 + src/util/macros.h | 6

Re: [Mesa-dev] [PATCH] autogen.sh: pass --force to autoreconf, quote ORIGDIR

2015-03-09 Thread Matt Turner
On Mon, Mar 9, 2015 at 4:52 AM, Emil Velikov emil.l.veli...@gmail.com wrote: My passing --force autoreconf will update all the aux files, which would s/My/By/ otherwise be ignored if one updates autoconf/automake. Quote the ORIGDIR variable to prevent fall-outs, when it's name contains

[Mesa-dev] [Bug 89477] include/no_extern_c.h:47:1: error: template with C linkage

2015-03-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89477 Mark Janes mark.a.ja...@intel.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: [Mesa-dev] [PATCH 0/7] v2 of Tex[ture]Buffer[Range] functions

2015-03-09 Thread Anuj Phogat
On Wed, Mar 4, 2015 at 4:41 PM, Laura Ekstrand la...@jlekstrand.net wrote: This divides a major rework of Tex[ture]Buffer[Range] into multiple patches as recommended by Anuj Phogat. Laura Ekstrand (7): main: Add utility function _mesa_lookup_bufferobj_err. main: Use

Re: [Mesa-dev] [PATCH 0/6] v2 of Compressed Textures Cube Map Support

2015-03-09 Thread Anuj Phogat
On Mon, Mar 9, 2015 at 11:09 AM, Anuj Phogat anuj.pho...@gmail.com wrote: On Wed, Mar 4, 2015 at 3:44 PM, Laura Ekstrand la...@jlekstrand.net wrote: This cleans up ARB_direct_state_access texture cube map functions (mostly in response to reviews from Anuj Phogat). Laura Ekstrand (6): main:

Re: [Mesa-dev] [PATCH] r300g: Fix the ATI1N swizzle.

2015-03-09 Thread Ilia Mirkin
On Mon, Mar 9, 2015 at 12:11 PM, Stefan Dösinger stefandoesin...@gmx.at wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 2015-03-09 um 16:53 schrieb Stefan Dösinger: I did test if LATC_UNORM and LATC_SNORM still work after my fix. LATC_SNORM is unchanged (broken in the same way as

Re: [Mesa-dev] [PATCH 4/7] main: Cosmetic changes for Texture Buffers.

2015-03-09 Thread Anuj Phogat
On Mon, Mar 9, 2015 at 9:43 AM, Laura Ekstrand la...@jlekstrand.net wrote: I'm confused which hunk you talking about. Can you be more specific? On Mon, Mar 9, 2015 at 8:47 AM, Anuj Phogat anuj.pho...@gmail.com wrote: On Wed, Mar 4, 2015 at 4:41 PM, Laura Ekstrand la...@jlekstrand.net wrote:

Re: [Mesa-dev] [PATCH 0/6] v2 of Compressed Textures Cube Map Support

2015-03-09 Thread Anuj Phogat
On Wed, Mar 4, 2015 at 3:44 PM, Laura Ekstrand la...@jlekstrand.net wrote: This cleans up ARB_direct_state_access texture cube map functions (mostly in response to reviews from Anuj Phogat). Laura Ekstrand (6): main: _mesa_cube_level_complete checks NumLayers. main: Remove redundant

[Mesa-dev] [PATCH v2] i965/skl: Fix the order of the arguments for the LD sampler message

2015-03-09 Thread Neil Roberts
In Skylake the order of the arguments for sample messages with the LD type are u, v, lod, r whereas previously they were u, lod, v, r. This fixes 144 Piglit tests including ones that directly use texelFetch and also some using the meta stencil blit path which appears to use texelFetch in its

Re: [Mesa-dev] [PATCH 4/7] main: Cosmetic changes for Texture Buffers.

2015-03-09 Thread Laura Ekstrand
I'm confused which hunk you talking about. Can you be more specific? On Mon, Mar 9, 2015 at 8:47 AM, Anuj Phogat anuj.pho...@gmail.com wrote: On Wed, Mar 4, 2015 at 4:41 PM, Laura Ekstrand la...@jlekstrand.net wrote: Adds a useful comment and some whitespace. Fixes an error message. v2:

Re: [Mesa-dev] [PATCH 2/9] i965/nir: Optimize after nir_lower_var_copies().

2015-03-09 Thread Jason Ekstrand
LGTM Reviewed-by: Jason Ekstrand jason.ekstr...@intel.com On Mon, Mar 9, 2015 at 1:58 AM, Kenneth Graunke kenn...@whitecape.org wrote: Array variable copy splitting generates a bunch of stuff we want to clean up before proceeding. Signed-off-by: Kenneth Graunke kenn...@whitecape.org Cc:

[Mesa-dev] [PATCH 12/15] docs: mark GL_AMD_performance_monitor for the 10.6.0 release

2015-03-09 Thread Samuel Pitoiset
GL_AMD_performance_monitor is supported by nvc0, svga, freedreno, r600 and radeonsi. Signed-off-by: Samuel Pitoiset samuel.pitoi...@gmail.com --- docs/relnotes/10.6.0.html | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/relnotes/10.6.0.html b/docs/relnotes/10.6.0.html index

Re: [Mesa-dev] [PATCH 07/15] gallium: add util_get_driver_query_group_info

2015-03-09 Thread Samuel Pitoiset
On 03/09/2015 10:43 PM, Marek Olšák wrote: It would be better to add this function to u_helpers.c/.h instead of adding new files. Mmh, I'll probably introduce other functions related to queries when nouveau-perfkit will be ready. Are you sure it's a good idea to drop this file? Marek

Re: [Mesa-dev] [PATCH 07/15] gallium: add util_get_driver_query_group_info

2015-03-09 Thread Samuel Pitoiset
On 03/09/2015 11:00 PM, Marek Olšák wrote: If you plan to add more functions, this file can stay. Yes, it's my plan. Marek On Mon, Mar 9, 2015 at 10:54 PM, Samuel Pitoiset samuel.pitoi...@gmail.com wrote: On 03/09/2015 10:43 PM, Marek Olšák wrote: It would be better to add this

[Mesa-dev] [PATCH] [v2] meta: Plug memory leak

2015-03-09 Thread Ben Widawsky
It looks like this has existed since commit f5a477ab76b6e0b268387699cd2253a43db0dfae Author: Ian Romanick ian.d.roman...@intel.com Date: Mon Dec 16 11:54:08 2013 -0800 meta: Refactor shader generation code out of mipmap generation path Valgrind was complaining on fbo-generatemipmap-formats

[Mesa-dev] [PATCH 02/15] gallium: add new fields to pipe_driver_query_info

2015-03-09 Thread Samuel Pitoiset
According to the spec of GL_AMD_performance_monitor, valid type values returned are UNSIGNED_INT, UNSIGNED_INT64_AMD, PERCENTAGE_AMD, FLOAT. This also introduces the new field group_id in order to categorize queries into groups. Signed-off-by: Samuel Pitoiset samuel.pitoi...@gmail.com ---

[Mesa-dev] [PATCH 03/15] gallium: add new numeric types to pipe_query_result

2015-03-09 Thread Samuel Pitoiset
This will be used by GL_AMD_performance_monitor. Signed-off-by: Samuel Pitoiset samuel.pitoi...@gmail.com --- src/gallium/include/pipe/p_defines.h | 8 1 file changed, 8 insertions(+) diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h index

[Mesa-dev] [PATCH 09/15] freedreno: implement pipe_screen::get_driver_query_group_info

2015-03-09 Thread Samuel Pitoiset
This enables GL_AMD_performance_monitor for freedreno. Signed-off-by: Samuel Pitoiset samuel.pitoi...@gmail.com --- src/gallium/drivers/freedreno/freedreno_query.c | 9 + src/gallium/drivers/freedreno/freedreno_query.h | 1 + 2 files changed, 10 insertions(+) diff --git

Re: [Mesa-dev] [PATCH 4/7] main: Cosmetic changes for Texture Buffers.

2015-03-09 Thread Anuj Phogat
Done. On Mon, Mar 9, 2015 at 1:37 PM, Laura Ekstrand la...@jlekstrand.net wrote: Can you go and manually mark this commit and the Add entry point for TextureBufferRange as accepted in Patchwork? I don't have admin access, and my refactor of the new line caused a rebase. Thanks. Laura On

Re: [Mesa-dev] [PATCH 10/15] radeon: implement pipe_screen::get_driver_query_group_info

2015-03-09 Thread Marek Olšák
Reviewed-by: Marek Olšák marek.ol...@amd.com Marek On Mon, Mar 9, 2015 at 10:09 PM, Samuel Pitoiset samuel.pitoi...@gmail.com wrote: This enables GL_AMD_performance_monitor for radeon. Signed-off-by: Samuel Pitoiset samuel.pitoi...@gmail.com ---

Re: [Mesa-dev] [PATCH v2] r600g: Use R600_MAX_VIEWPORTS instead of 16

2015-03-09 Thread Marek Olšák
Pushed, thanks. Marek On Wed, Feb 25, 2015 at 7:50 AM, Alexandre Demers alexandre.f.dem...@gmail.com wrote: Lets define R600_MAX_VIEWPORTS instead of using 16 here and there in the code when looping through viewports and scissors. It is easier to understand what this number represents. v2:

Re: [Mesa-dev] [PATCH 02/15] gallium: add new fields to pipe_driver_query_info

2015-03-09 Thread Marek Olšák
On Mon, Mar 9, 2015 at 10:09 PM, Samuel Pitoiset samuel.pitoi...@gmail.com wrote: According to the spec of GL_AMD_performance_monitor, valid type values returned are UNSIGNED_INT, UNSIGNED_INT64_AMD, PERCENTAGE_AMD, FLOAT. This also introduces the new field group_id in order to categorize

Re: [Mesa-dev] [PATCH 07/15] gallium: add util_get_driver_query_group_info

2015-03-09 Thread Marek Olšák
It would be better to add this function to u_helpers.c/.h instead of adding new files. Marek On Mon, Mar 9, 2015 at 10:09 PM, Samuel Pitoiset samuel.pitoi...@gmail.com wrote: This function can be used to get a generic group of driver-specific queries when a driver doesn't expose any groups.

[Mesa-dev] [PATCH 10/15] radeon: implement pipe_screen::get_driver_query_group_info

2015-03-09 Thread Samuel Pitoiset
This enables GL_AMD_performance_monitor for radeon. Signed-off-by: Samuel Pitoiset samuel.pitoi...@gmail.com --- src/gallium/drivers/radeon/r600_pipe_common.c | 9 + src/gallium/drivers/radeon/r600_pipe_common.h | 1 + 2 files changed, 10 insertions(+) diff --git

[Mesa-dev] [PATCH 06/15] st/mesa: implement GL_AMD_performance_monitor

2015-03-09 Thread Samuel Pitoiset
From: Christoph Bumiller e0425...@student.tuwien.ac.at This is based on the original patch of Christoph Bumiller. (source: http://people.freedesktop.org/~chrisbmr/perfmon.diff) As for the Gallium HUD, we keep a list of busy queries in a ring buffer in order to prevent stalls when reading

[Mesa-dev] [PATCH 01/15] gallium: add pipe_screen::get_driver_query_group_info

2015-03-09 Thread Samuel Pitoiset
Driver queries are organized as a single hierarchy where queries are categorized into groups. Each goup has a list of queries and a maximum number of queries that can be sampled. The list of available groups can be obtained using pipe_screen::get_driver_query_group_info. This will be used by

[Mesa-dev] [PATCH 11/15] nvc0: implement pipe_screen::get_driver_query_group_info

2015-03-09 Thread Samuel Pitoiset
This enables GL_AMD_performance_monitor for nvc0. Signed-off-by: Samuel Pitoiset samuel.pitoi...@gmail.com --- src/gallium/drivers/nouveau/nvc0/nvc0_query.c | 10 ++ src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 1 + src/gallium/drivers/nouveau/nvc0/nvc0_screen.h | 3 +++ 3 files

[Mesa-dev] [PATCH 05/15] gallium: make pipe_context::begin_query return a boolean

2015-03-09 Thread Samuel Pitoiset
GL_AMD_performance_monitor must return an error when a monitoring session cannot be started. Signed-off-by: Samuel Pitoiset samuel.pitoi...@gmail.com --- src/gallium/drivers/freedreno/freedreno_query.c| 4 ++-- src/gallium/drivers/freedreno/freedreno_query.h| 2 +-

[Mesa-dev] [PATCH 08/15] svga: implement pipe_screen::get_driver_query_group_info

2015-03-09 Thread Samuel Pitoiset
This enables GL_AMD_performance_monitor for svga. Signed-off-by: Samuel Pitoiset samuel.pitoi...@gmail.com --- src/gallium/drivers/svga/svga_context.h | 1 + src/gallium/drivers/svga/svga_screen.c | 11 +++ 2 files changed, 12 insertions(+) diff --git

[Mesa-dev] [PATCH 14/15] nvc0: make begin_query return false when all MP counters are used

2015-03-09 Thread Samuel Pitoiset
Signed-off-by: Samuel Pitoiset samuel.pitoi...@gmail.com --- src/gallium/drivers/nouveau/nvc0/nvc0_query.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_query.c b/src/gallium/drivers/nouveau/nvc0/nvc0_query.c index

Re: [Mesa-dev] [PATCH] [v2] meta: Plug memory leak

2015-03-09 Thread Kenneth Graunke
On Monday, March 09, 2015 11:44:18 AM Ben Widawsky wrote: It looks like this has existed since commit f5a477ab76b6e0b268387699cd2253a43db0dfae Author: Ian Romanick ian.d.roman...@intel.com Date: Mon Dec 16 11:54:08 2013 -0800 meta: Refactor shader generation code out of mipmap

[Mesa-dev] [PATCH 15/15] nvc0: all queries use an unsigned 64-bits integer by default

2015-03-09 Thread Samuel Pitoiset
Signed-off-by: Samuel Pitoiset samuel.pitoi...@gmail.com --- src/gallium/drivers/nouveau/nvc0/nvc0_query.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_query.c b/src/gallium/drivers/nouveau/nvc0/nvc0_query.c index

[Mesa-dev] [PATCH 07/15] gallium: add util_get_driver_query_group_info

2015-03-09 Thread Samuel Pitoiset
This function can be used to get a generic group of driver-specific queries when a driver doesn't expose any groups. Signed-off-by: Samuel Pitoiset samuel.pitoi...@gmail.com --- src/gallium/auxiliary/Makefile.sources | 1 + src/gallium/auxiliary/util/u_query.c | 50

[Mesa-dev] [PATCH 00/15] GL_AMD_performance_monitor

2015-03-09 Thread Samuel Pitoiset
Hello, A series I have waited too long to re-submit, but I recently refactored the code and fixed some minor issues. This patchset enables GL_AMD_performance_monitor for svga, freedreno, r600, radeonsi and nvc0 drivers. This code has been tested with Nouveau (NVD9 and NVE7) but it should also

[Mesa-dev] [PATCH 13/15] nvc0: expose more driver-specific query groups

2015-03-09 Thread Samuel Pitoiset
This patch exposes Driver statistics and MP counters groups. Signed-off-by: Samuel Pitoiset samuel.pitoi...@gmail.com --- src/gallium/drivers/nouveau/nvc0/nvc0_query.c | 61 -- src/gallium/drivers/nouveau/nvc0/nvc0_screen.h | 11 + 2 files changed, 69 insertions(+),

Re: [Mesa-dev] [PATCH 02/15] gallium: add new fields to pipe_driver_query_info

2015-03-09 Thread Samuel Pitoiset
On 03/09/2015 10:36 PM, Marek Olšák wrote: On Mon, Mar 9, 2015 at 10:09 PM, Samuel Pitoiset samuel.pitoi...@gmail.com wrote: According to the spec of GL_AMD_performance_monitor, valid type values returned are UNSIGNED_INT, UNSIGNED_INT64_AMD, PERCENTAGE_AMD, FLOAT. This also introduces the

Re: [Mesa-dev] [PATCH 07/15] gallium: add util_get_driver_query_group_info

2015-03-09 Thread Marek Olšák
If you plan to add more functions, this file can stay. Marek On Mon, Mar 9, 2015 at 10:54 PM, Samuel Pitoiset samuel.pitoi...@gmail.com wrote: On 03/09/2015 10:43 PM, Marek Olšák wrote: It would be better to add this function to u_helpers.c/.h instead of adding new files. Mmh, I'll

Re: [Mesa-dev] [PATCH 4/7] main: Cosmetic changes for Texture Buffers.

2015-03-09 Thread Laura Ekstrand
Can you go and manually mark this commit and the Add entry point for TextureBufferRange as accepted in Patchwork? I don't have admin access, and my refactor of the new line caused a rebase. Thanks. Laura On Mon, Mar 9, 2015 at 1:13 PM, Laura Ekstrand la...@jlekstrand.net wrote: Oh, thanks!

Re: [Mesa-dev] INTEL_DEBUG=shader_time scalar backend fixes

2015-03-09 Thread Matt Turner
On Sun, Mar 8, 2015 at 1:08 AM, Kenneth Graunke kenn...@whitecape.org wrote: Welcome to the rabbit trail. In order to fix Football Manager, I had to rework INTEL_DEBUG=shader_time in the FS backend. While doing that, I hit two assertion failures. After fixing that, I compared numbers. I

Re: [Mesa-dev] [PATCH 4/7] main: Cosmetic changes for Texture Buffers.

2015-03-09 Thread Laura Ekstrand
Oh, thanks! I didn't see the new line there when I read your review. I will remove it. On Mon, Mar 9, 2015 at 10:45 AM, Anuj Phogat anuj.pho...@gmail.com wrote: On Mon, Mar 9, 2015 at 9:43 AM, Laura Ekstrand la...@jlekstrand.net wrote: I'm confused which hunk you talking about. Can you be

Re: [Mesa-dev] [PATCH] r300g: Fix the ATI1N swizzle.

2015-03-09 Thread Marek Olšák
I'm going to push this shortly. Thanks. Marek On Mon, Mar 9, 2015 at 4:15 PM, Stefan Dösinger stefandoesin...@gmx.at wrote: This fixes the GL_COMPRESSED_RED_RGTC1 part of piglit's rgtc-teximage-01 test as well as the precision part of Wine's 3dc format test (fd.o bug 89156). The Z component

Re: [Mesa-dev] [PATCH 4/5] i965/fs: Make get_timestamp() pass back the MOV rather than emitting it.

2015-03-09 Thread Matt Turner
On Sun, Mar 8, 2015 at 1:08 AM, Kenneth Graunke kenn...@whitecape.org wrote: This makes another part of the INTEL_DEBUG=shader_time code emittable at arbitrary locations, rather than just at the end of the instruction stream. v2: Don't lose smear! Caught by Topi Pohjolainen. v3: Don't set

Re: [Mesa-dev] [PATCH] [v2] i965/skl: Disable partial resolve in VC

2015-03-09 Thread Anuj Phogat
On Thu, Feb 26, 2015 at 6:14 PM, Ben Widawsky benjamin.widaw...@intel.com wrote: Recomendation [sic] is to set this field to 1 always. Programming it to default value of 0, may have -ve impact on performance for MSAA WLs. Another don't suck bit which needs to get set. Totally untested.

[Mesa-dev] [Bug 77449] Tracker bug for all bugs related to Steam titles

2015-03-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77449 Bug 77449 depends on bug 86747, which changed state. Bug 86747 Summary: Noise in Football Manager 2014 textures https://bugs.freedesktop.org/show_bug.cgi?id=86747 What|Removed |Added

Re: [Mesa-dev] [PATCH 3/4] mesa: Separate PBO validation checks from buffer mapping, to allow reuse

2015-03-09 Thread Laura Ekstrand
On Thu, Mar 5, 2015 at 12:20 AM, Eduardo Lima Mitev el...@igalia.com wrote: Internal PBO functions such as _mesa_map_validate_pbo_source() and _mesa_validate_pbo_compressed_teximage() perform validation and buffer mapping within the same call. This patch takes out the validation into

Re: [Mesa-dev] [RFC] i965: Factor out descriptor building for indirect send messages

2015-03-09 Thread Francisco Jerez
Pohjolainen, Topi topi.pohjolai...@intel.com writes: On Sat, Mar 07, 2015 at 04:15:08PM +0200, Francisco Jerez wrote: Topi Pohjolainen topi.pohjolai...@intel.com writes: The original patch from Curro was based on something that is not present in the master yet. This patch tries to mimick

Re: [Mesa-dev] [PATCH] i965: Issue perf_debug messages for unsynchronized maps on !LLC systems.

2015-03-09 Thread Ben Widawsky
On Tue, Feb 24, 2015 at 09:34:30PM -0800, Kenneth Graunke wrote: We haven't implemented proper unsynchronized map support on !LLC systems (pre-SNB, Atom). MapBufferRange with GL_MAP_UNSYNCHRONIZE_BIT will actually do a synchronized map, probably killing performance. Also warn on

[Mesa-dev] [PATCH 4/6] i965: Extract blit height max

2015-03-09 Thread Ben Widawsky
The blit engine in GEN hardware has constraints. These constraints are a function of tile parameters as well as height. The current code is very dumb in terms of determine max blit parameters. Since we'll be expanding on it, having the abstraction makes things easier. Note that this doesn't

[Mesa-dev] [PATCH 6/6] i965: Allow Y-tiled allocations for large surfaces

2015-03-09 Thread Ben Widawsky
This patch will use a new calculation to determine if a surface can be blitted from or to. Previously, the total_height member was used. Total_height in the case of 2d, 3d, and cube map arrays is the height of each slice/layer/face. Since the GL map APIS only ever deal with a slice at a time

[Mesa-dev] [PATCH 1/6] i965: Kill y_or_x variable in miptree tiling selection

2015-03-09 Thread Ben Widawsky
IMHO, intel_miptree_choose_tiling() is an unfortunate incarnation because it conflates what is permitted vs. what is desirable. This makes doing any sort of fallback operations after the fact somewhat kludgey. The original code basically says: if we requested x XOR y-tiled, and the region

[Mesa-dev] [PATCH 2/6] i965: Fix comments about blit constraints

2015-03-09 Thread Ben Widawsky
The spec does say that the blitter is capable of transferring 64k scanlines in a single blit operation. Perhaps this was true, or is still true on some operations, but for all commands that we use, we are restricted to 16b signed: For example, from the XY_SRC_COPY_CHROMA_BLT definition:

[Mesa-dev] [PATCH 5/6] i965: Attempt to blit for larger textures

2015-03-09 Thread Ben Widawsky
The blit engine is limited to 32Kx32K transfer. In cases where we have to fall back to the blitter, and when trying to blit a slice of a 2d texture array, or face of a cube map, we don't need to transfer the entire texture. I doubt this patch will get exercised at this point since we'll always

[Mesa-dev] [PATCH 0/6] blitter improvement patches

2015-03-09 Thread Ben Widawsky
With the direct PBO upload, I guess the main thing this series offers (other than cleanups), is we can now allocate large BOs as Y-tiled since the code permits them to be blitted. Originally, the patch series did enable the use of blitter more often, and it resulted in some huge perf gains. There

[Mesa-dev] [PATCH 3/6] i965: Create and use #defines for blitter constraints

2015-03-09 Thread Ben Widawsky
Signed-off-by: Ben Widawsky b...@bwidawsk.net --- src/mesa/drivers/dri/i965/intel_blit.c| 11 ++- src/mesa/drivers/dri/i965/intel_blit.h| 3 +++ src/mesa/drivers/dri/i965/intel_copy_image.c | 7 --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 9 + 4

Re: [Mesa-dev] [PATCH 6/6] i965/skl: Don't use ALL_SLICES_AT_EACH_LOD

2015-03-09 Thread Ben Widawsky
On Fri, Feb 20, 2015 at 10:31:08PM +, Neil Roberts wrote: The render surface state command for Skylake doesn't have the surface array spacing bit so I don't think it's possible to select this layout. This avoids a kernel panic when running the piglit test below: Kernel panic!? Please, go

Re: [Mesa-dev] [PATCH 4/4] mesa: Check for valid PBO access in gl(Compressed)Tex(Sub)Image calls

2015-03-09 Thread Laura Ekstrand
Looks good to me. Reviewed-by: Laura Ekstrand la...@jlekstrand.net On Thu, Mar 5, 2015 at 12:20 AM, Eduardo Lima Mitev el...@igalia.com wrote: This patch adds two types of checks to the gl(Compressed)Tex(Sub)Imgage family of functions when a pixel buffer object is bound to

Re: [Mesa-dev] [PATCH 1/2] util: Fix foreach_list_typed_safe when exec_node is not at offset 0.

2015-03-09 Thread Connor Abbott
Reviewed-by: Connor Abbott cwabbo...@gmail.com On Mon, Mar 9, 2015 at 9:36 PM, Kenneth Graunke kenn...@whitecape.org wrote: From: Jason Ekstrand jason.ekstr...@intel.com __next and __prev are pointers to the structure containing the exec_node link, not the embedded exec_node. NULL checks

Re: [Mesa-dev] [PATCH 2/2] nir: Fix non-determinism in nir_lower_vars_to_ssa().

2015-03-09 Thread Jason Ekstrand
Push it! On Mar 9, 2015 7:03 PM, Connor Abbott cwabbo...@gmail.com wrote: Reviewed-by: Connor Abbott cwabbo...@gmail.com I was in the middle of rewriting this pass for making derefs instructions, which hasn't been going nearly as nicely as I would like (ugh...), so if it pans out then I'll

Re: [Mesa-dev] [PATCH 2/2] nir: Fix non-determinism in nir_lower_vars_to_ssa().

2015-03-09 Thread Jason Ekstrand
On Mon, Mar 9, 2015 at 7:28 PM, Matt Turner matts...@gmail.com wrote: On Mon, Mar 9, 2015 at 7:04 PM, Jason Ekstrand ja...@jlekstrand.net wrote: Push it! Our policy is to wait a day for most things. Sure. Not really arguing for early pushing. Mostly just surprised that Connor picked up

Re: [Mesa-dev] [PATCH 1/2] util: Fix foreach_list_typed_safe when exec_node is not at offset 0.

2015-03-09 Thread Matt Turner
On Mon, Mar 9, 2015 at 7:24 PM, Matt Turner matts...@gmail.com wrote: On Mon, Mar 9, 2015 at 6:36 PM, Kenneth Graunke kenn...@whitecape.org wrote: From: Jason Ekstrand jason.ekstr...@intel.com __next and __prev are pointers to the structure containing the exec_node link, not the embedded

Re: [Mesa-dev] [PATCH 1/2] util: Fix foreach_list_typed_safe when exec_node is not at offset 0.

2015-03-09 Thread Jason Ekstrand
On Mon, Mar 9, 2015 at 7:58 PM, Matt Turner matts...@gmail.com wrote: On Mon, Mar 9, 2015 at 7:32 PM, Jason Ekstrand ja...@jlekstrand.net wrote: On Mon, Mar 9, 2015 at 7:24 PM, Matt Turner matts...@gmail.com wrote: On Mon, Mar 9, 2015 at 6:36 PM, Kenneth Graunke kenn...@whitecape.org

[Mesa-dev] [PATCH 2/2] nir: Fix non-determinism in nir_lower_vars_to_ssa().

2015-03-09 Thread Kenneth Graunke
Previously, we stored derefs in a hash table, using the malloc'd pointer as the key. Then, we walked through the hash table and generated code, based on the order of the hash table's elements. Memory addresses returned by malloc are pretty much random, which meant that the hash was random, and

[Mesa-dev] [PATCH 1/2] util: Fix foreach_list_typed_safe when exec_node is not at offset 0.

2015-03-09 Thread Kenneth Graunke
From: Jason Ekstrand jason.ekstr...@intel.com __next and __prev are pointers to the structure containing the exec_node link, not the embedded exec_node. NULL checks would fail unless the embedded exec_node happened to be at offset 0 in the parent struct. Signed-off-by: Jason Ekstrand

Re: [Mesa-dev] [PATCH 1/2] util: Fix foreach_list_typed_safe when exec_node is not at offset 0.

2015-03-09 Thread Matt Turner
On Mon, Mar 9, 2015 at 6:36 PM, Kenneth Graunke kenn...@whitecape.org wrote: From: Jason Ekstrand jason.ekstr...@intel.com __next and __prev are pointers to the structure containing the exec_node link, not the embedded exec_node. NULL checks would fail unless the embedded exec_node happened

Re: [Mesa-dev] [PATCH 1/2] util: Fix foreach_list_typed_safe when exec_node is not at offset 0.

2015-03-09 Thread Jason Ekstrand
On Mon, Mar 9, 2015 at 7:24 PM, Matt Turner matts...@gmail.com wrote: On Mon, Mar 9, 2015 at 6:36 PM, Kenneth Graunke kenn...@whitecape.org wrote: From: Jason Ekstrand jason.ekstr...@intel.com __next and __prev are pointers to the structure containing the exec_node link, not the

Re: [Mesa-dev] [PATCH 1/2] util: Fix foreach_list_typed_safe when exec_node is not at offset 0.

2015-03-09 Thread Jason Ekstrand
On Mon, Mar 9, 2015 at 7:48 PM, Connor Abbott cwabbo...@gmail.com wrote: On Mon, Mar 9, 2015 at 10:35 PM, Matt Turner matts...@gmail.com wrote: On Mon, Mar 9, 2015 at 7:24 PM, Matt Turner matts...@gmail.com wrote: On Mon, Mar 9, 2015 at 6:36 PM, Kenneth Graunke kenn...@whitecape.org wrote:

Re: [Mesa-dev] [PATCH 1/2] util: Fix foreach_list_typed_safe when exec_node is not at offset 0.

2015-03-09 Thread Connor Abbott
On Mon, Mar 9, 2015 at 11:02 PM, Jason Ekstrand ja...@jlekstrand.net wrote: On Mon, Mar 9, 2015 at 7:59 PM, Connor Abbott cwabbo...@gmail.com wrote: On Mon, Mar 9, 2015 at 10:54 PM, Jason Ekstrand ja...@jlekstrand.net wrote: On Mon, Mar 9, 2015 at 7:48 PM, Connor Abbott

Re: [Mesa-dev] [PATCH 2/2] nir: Fix non-determinism in nir_lower_vars_to_ssa().

2015-03-09 Thread Connor Abbott
Reviewed-by: Connor Abbott cwabbo...@gmail.com I was in the middle of rewriting this pass for making derefs instructions, which hasn't been going nearly as nicely as I would like (ugh...), so if it pans out then I'll have to think about it a little more to make sure the new version is

Re: [Mesa-dev] [PATCH 1/2] util: Fix foreach_list_typed_safe when exec_node is not at offset 0.

2015-03-09 Thread Connor Abbott
On Mon, Mar 9, 2015 at 10:35 PM, Matt Turner matts...@gmail.com wrote: On Mon, Mar 9, 2015 at 7:24 PM, Matt Turner matts...@gmail.com wrote: On Mon, Mar 9, 2015 at 6:36 PM, Kenneth Graunke kenn...@whitecape.org wrote: From: Jason Ekstrand jason.ekstr...@intel.com __next and __prev are

Re: [Mesa-dev] [PATCH 5/6] i965/skl: Align compressed textures to four times the block size

2015-03-09 Thread Ben Widawsky
On Fri, Feb 20, 2015 at 10:31:07PM +, Neil Roberts wrote: On Skylake it is possible to choose your own alignment values for compressed textures but they are expressed as a multiple of the block size. The minimum alignment value we can use is 4 so we effectively have to align to 4 times the

[Mesa-dev] GL/GLSL tests for GL 4.0 and newer

2015-03-09 Thread Ishara Abeysekera
*I am interested on write tests for OpenGL 4.0 /GLSL 4.00 .* *But can you be more specify what areas you are expecting to be tested, Thank you!* ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org

[Mesa-dev] [PATCH ] vbo: improve the code style by adjust the preprocessing c code directives.

2015-03-09 Thread marius . predut
From: Marius Predut marius.pre...@intel.com Brain Paul review suggestion: there's more macro use here than necessary. Removed and redefine some #define preprocessing directives. Removed the directive input parameter 'T' . No functional changes. Signed-off-by: Marius Predut

Re: [Mesa-dev] [PATCH 2/2] nir: Fix non-determinism in nir_lower_vars_to_ssa().

2015-03-09 Thread Matt Turner
On Mon, Mar 9, 2015 at 7:04 PM, Jason Ekstrand ja...@jlekstrand.net wrote: Push it! Our policy is to wait a day for most things. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 1/4] Whitespace cleanup

2015-03-09 Thread Michel Dänzer
On 09.03.2015 18:06, Giuseppe Bilotta wrote: On Mon, Mar 9, 2015 at 5:01 AM, Michel Dänzer mic...@daenzer.net wrote: The shortlog of patch 4 should be prefixed by gallium: as well. Duh, I forgot the prefix everywhere. And the signoff line. Specifically about the last patch, the one that

Re: [Mesa-dev] [PATCH 1/2] util: Fix foreach_list_typed_safe when exec_node is not at offset 0.

2015-03-09 Thread Matt Turner
On Mon, Mar 9, 2015 at 7:32 PM, Jason Ekstrand ja...@jlekstrand.net wrote: On Mon, Mar 9, 2015 at 7:24 PM, Matt Turner matts...@gmail.com wrote: On Mon, Mar 9, 2015 at 6:36 PM, Kenneth Graunke kenn...@whitecape.org wrote: From: Jason Ekstrand jason.ekstr...@intel.com __next and __prev

Re: [Mesa-dev] [PATCH 1/2] util: Fix foreach_list_typed_safe when exec_node is not at offset 0.

2015-03-09 Thread Connor Abbott
On Mon, Mar 9, 2015 at 10:54 PM, Jason Ekstrand ja...@jlekstrand.net wrote: On Mon, Mar 9, 2015 at 7:48 PM, Connor Abbott cwabbo...@gmail.com wrote: On Mon, Mar 9, 2015 at 10:35 PM, Matt Turner matts...@gmail.com wrote: On Mon, Mar 9, 2015 at 7:24 PM, Matt Turner matts...@gmail.com wrote:

Re: [Mesa-dev] [PATCH 1/2] util: Fix foreach_list_typed_safe when exec_node is not at offset 0.

2015-03-09 Thread Jason Ekstrand
On Mon, Mar 9, 2015 at 7:59 PM, Connor Abbott cwabbo...@gmail.com wrote: On Mon, Mar 9, 2015 at 10:54 PM, Jason Ekstrand ja...@jlekstrand.net wrote: On Mon, Mar 9, 2015 at 7:48 PM, Connor Abbott cwabbo...@gmail.com wrote: On Mon, Mar 9, 2015 at 10:35 PM, Matt Turner

Re: [Mesa-dev] [PATCH 1/4] Whitespace cleanup

2015-03-09 Thread Giuseppe Bilotta
On Mon, Mar 9, 2015 at 5:01 AM, Michel Dänzer mic...@daenzer.net wrote: The shortlog of patch 4 should be prefixed by gallium: as well. Duh, I forgot the prefix everywhere. And the signoff line. Specifically about the last patch, the one that actually touches clover, is there a criteria for

[Mesa-dev] [PATCH 6/9] i965/fs: Refactor fs_visitor::nir_setup_inputs().

2015-03-09 Thread Kenneth Graunke
No functional change. In preparation for supporting vertex shaders, this adds a switch statement on shader stage (since vertex attributes and fragment shader varyings will need different handling). It also renames varying to input, to be more general. Signed-off-by: Kenneth Graunke

[Mesa-dev] [PATCH 8/9] i965/fs: Add VS output support to nir_setup_outputs().

2015-03-09 Thread Kenneth Graunke
Adapted from fs_visitor::visit(ir_variable *). Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp

[Mesa-dev] [PATCH 2/9] i965/nir: Optimize after nir_lower_var_copies().

2015-03-09 Thread Kenneth Graunke
Array variable copy splitting generates a bunch of stuff we want to clean up before proceeding. Signed-off-by: Kenneth Graunke kenn...@whitecape.org Cc: Jason Ekstrand ja...@jlekstrand.net --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git

[Mesa-dev] [PATCH 9/9] i965: Use NIR for scalar VS when INTEL_USE_NIR is set.

2015-03-09 Thread Kenneth Graunke
Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- src/mesa/drivers/dri/i965/brw_fs.cpp | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 428234f..ee5bc4a 100644 ---

  1   2   >