Re: [Mesa-dev] [PATCH 11/24] spirv_extensions: add list of extensions and to_string method

2017-11-28 Thread Eric Engestrom
On Monday, 2017-11-27 13:21:31 +0200, Tapani Pälli wrote: > > > On 11/15/2017 03:22 PM, Eduardo Lima Mitev wrote: > > From: Alejandro Piñeiro > > > > Ideally this should be generated somehow. One option would be gather > > all the extension dependencies listed on the core

Re: [Mesa-dev] [PATCH mesa] mapi: use variable to reference generated 'glapi_gentable.c' file

2017-11-28 Thread Emil Velikov
Dylan/Jon already beat you to it ;-) See patch "meson: fix generated source inclusion on macOS and Windows" -Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 11/24] spirv_extensions: add list of extensions and to_string method

2017-11-28 Thread Alejandro Piñeiro
On 28/11/17 11:36, Eric Engestrom wrote: > On Monday, 2017-11-27 13:21:31 +0200, Tapani Pälli wrote: >> >> On 11/15/2017 03:22 PM, Eduardo Lima Mitev wrote: >>> From: Alejandro Piñeiro >>> >>> Ideally this should be generated somehow. One option would be gather >>> all the

Re: [Mesa-dev] [PATCH 1/2] glsl/es: precision qualifier doesn't need to match in UBOs

2017-11-28 Thread Samuel Iglesias Gonsálvez
This patch series is still unreviewed. Sam On Thu, 2017-11-09 at 12:48 +0100, Samuel Iglesias Gonsálvez wrote: > Signed-off-by: Samuel Iglesias Gonsálvez > --- > src/compiler/glsl/link_interface_blocks.cpp | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff

Re: [Mesa-dev] [PATCH v2] isl: don't crash when creating a huge image

2017-11-28 Thread Samuel Iglesias Gonsálvez
This patch is still unreviewed. Sam On Tue, 2017-11-14 at 09:45 +0100, Samuel Iglesias Gonsálvez wrote: > The HW has some limits but, according to the spec, we can create > the image as it has not yet any memory backing it. This patch > logs a debug error and set the size to the UINT64_MAX in

Re: [Mesa-dev] [PATCH v2] anv: fix bug when using component qualifier in FS outputs

2017-11-28 Thread Samuel Iglesias Gonsálvez
This patch is still unreviewed. Sam On Wed, 2017-11-15 at 07:39 +0100, Samuel Iglesias Gonsálvez wrote: > We can write to the same output but in different components, like > in this example: > > layout(location = 0, component = 0) out ivec2 dEQP_FragColor_0; > layout(location = 0, component =

Re: [Mesa-dev] [PATCH mesa 16/16] util: use NDEBUG to guard asserts

2017-11-28 Thread Eric Engestrom
On Monday, 2017-11-27 12:53:39 -0800, Ian Romanick wrote: > On 11/27/2017 10:46 AM, Dylan Baker wrote: > > Quoting Eric Engestrom (2017-11-27 09:46:57) > >> On Saturday, 2017-11-25 18:45:14 +0100, Gert Wollny wrote: > >>> Am Freitag, den 24.11.2017, 18:07 + schrieb Eric Engestrom: >

[Mesa-dev] [PATCH v2] util: hash_table: move NULL assert to string hashing function

2017-11-28 Thread Lionel Landwerlin
Hash maps might use pointer keys (which people surely might want to use to hash values) in which case a 0 value is perfectly acceptable. It's only if the hash function needs to deference the pointer that we want to be sure it's not NULL. v2: Add assert in _mesa_fnv32_1a_accumulate_block (Ian)

Re: [Mesa-dev] [PATCH 1/2] docs/llvmpipe.html: Add ppc64le as alternative architecture to x86.

2017-11-28 Thread Eric Engestrom
On Monday, 2017-11-27 14:44:58 -0500, Ben Crocker wrote: > Power8, Power8NV, and Power9 are supported on an equal footing > with X86. > > Cc: "17.2" "17.3" > Signed-off-by: Ben Crocker > --- > docs/llvmpipe.html | 20

Re: [Mesa-dev] [PATCH 1/2] spirv: allow specialization constants with bitsize different than 32 bits

2017-11-28 Thread Samuel Iglesias Gonsálvez
This patch series is still unreviewed. Sam On Tue, 2017-11-21 at 07:25 +0100, Samuel Iglesias Gonsálvez wrote: > Signed-off-by: Samuel Iglesias Gonsálvez > --- > src/compiler/spirv/spirv_to_nir.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git

Re: [Mesa-dev] [PATCH 11/24] spirv_extensions: add list of extensions and to_string method

2017-11-28 Thread Alejandro Piñeiro
On 28/11/17 14:13, Eric Engestrom wrote: > On Tuesday, 2017-11-28 14:01:38 +0100, Alejandro Piñeiro wrote: >> On 28/11/17 11:36, Eric Engestrom wrote: >>> On Monday, 2017-11-27 13:21:31 +0200, Tapani Pälli wrote: On 11/15/2017 03:22 PM, Eduardo Lima Mitev wrote: > From: Alejandro

Re: [Mesa-dev] [PATCH] mesa: Document ati_fragment_shader::cur_pass

2017-11-28 Thread Miklós Máté
Hi, I've already prepared a patch that documents this, I was going to post it with the v2 of this series. My version looks like this: diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 6b5c5bbb36..9c04a3c727 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@

Re: [Mesa-dev] [PATCH 06/24] mesa: implement SPIR-V loading in glShaderBinary

2017-11-28 Thread Eduardo Lima
On 11/27/2017 11:34 PM, Ian Romanick wrote: On 11/15/2017 05:22 AM, Eduardo Lima Mitev wrote: From: Nicolai Hähnle v2: Add a gl_shader_spirv_data member to gl_shader, which already encapsulates a gl_spirv_module where the binary will be saved. (Eduardo Lima)

Re: [Mesa-dev] [PATCH mesa] mapi: use variable to reference generated 'glapi_gentable.c' file

2017-11-28 Thread Eric Engestrom
On Tuesday, 2017-11-28 11:51:32 +, Emil Velikov wrote: > Dylan/Jon already beat you to it ;-) > See patch "meson: fix generated source inclusion on macOS and Windows" Indeed, thanks ^^ I saw that series though, but somehow forgot about it. Reviewing it now. > > -Emil

Re: [Mesa-dev] [PATCH] egl/android: Partially handle HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED

2017-11-28 Thread Eric Engestrom
On Monday, 2017-11-27 22:00:43 +0100, Robert Foss wrote: > Hey Rob, > > On Mon, 2017-11-27 at 13:42 -0600, Rob Herring wrote: > > On Mon, Nov 27, 2017 at 8:14 AM, Robert Foss > om> wrote: > > > From: Tomasz Figa > > > > > > There is no API

Re: [Mesa-dev] [PATCH mesa 0/7] remove upstreamed specs

2017-11-28 Thread Emil Velikov
On 28 November 2017 at 02:56, Ian Romanick wrote: > On 11/23/2017 05:32 AM, Emil Velikov wrote: >> Hi Eric, >> >> On 22 November 2017 at 17:59, Eric Engestrom >> wrote: >>> A recent thread [1] made me check our local specs to see which ones were

Re: [Mesa-dev] [PATCH] mesa: deal with vs_inputs as 64-bit unsigned integer

2017-11-28 Thread Iago Toral
On Mon, 2017-11-27 at 18:37 +0100, Juan A. Suarez Romero wrote: > Commit 78942e ("mesa: shrink VERT_ATTRIB bitfields to 32 bits") uses > vs_prog_data->vs_inputs as if it were a 32-bit unsigned integer. > > But actually it is a 64-bit integer, and as such it is used in other > parts of Mesa code.

Re: [Mesa-dev] [PATCH] egl/android: Partially handle HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED

2017-11-28 Thread Tapani Pälli
Hi; On 11/27/2017 04:14 PM, Robert Foss wrote: From: Tomasz Figa There is no API available to properly query the IMPLEMENTATION_DEFINED format. As a workaround we rely here on gralloc allocating either an arbitrary YCbCr 4:2:0 or RGBX_, with the latter being recognized

[Mesa-dev] [PATCH mesa] mapi: use variable to reference generated 'glapi_gentable.c' file

2017-11-28 Thread Eric Engestrom
Signed-off-by: Eric Engestrom --- src/mapi/glapi/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapi/glapi/meson.build b/src/mapi/glapi/meson.build index 14ffa68ad0daa06a32ed..470431de33d81a26d367 100644 ---

Re: [Mesa-dev] [PATCH 2/3] radv: Use the suffixed versions of VK_QUEUE_GLOBAL_PRIORITY_*

2017-11-28 Thread Eric Engestrom
On Monday, 2017-11-27 19:08:42 -0800, Jason Ekstrand wrote: > On Mon, Nov 27, 2017 at 7:00 PM, Ian Romanick wrote: > > > I am strongly in favor of this precedent. One thing that has annoyed me > > for years about Mesa's OpenGL code is the use of mixed suffixes through > >

Re: [Mesa-dev] [PATCH mesa 04/16] amd: remove always-true BRAHMA_BUILD define

2017-11-28 Thread Eric Engestrom
On Friday, 2017-11-24 19:20:12 +0100, Marek Olšák wrote: > Reviewed-by: Marek Olšák > > Marek > > On Fri, Nov 24, 2017 at 7:07 PM, Eric Engestrom > wrote: > > Signed-off-by: Eric Engestrom > > --- > >

Re: [Mesa-dev] [PATCH] i965: fix KHR-GL46.enhanced_layouts.varying_* failures

2017-11-28 Thread Emil Velikov
Hi Clayton, On 28 November 2017 at 03:41, Clayton Craft wrote: > This resolves following test failures by partially > reverting "mesa: shrink VERT_ATTRIB bitfields to 32 bits": > KHR-GL46.enhanced_layouts.varying_array_locations >

Re: [Mesa-dev] [PATCH] egl/android: Partially handle HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED

2017-11-28 Thread Tomasz Figa
On Tue, Nov 28, 2017 at 8:49 PM, Emil Velikov wrote: > On 28 November 2017 at 10:45, Tapani Pälli wrote: >> Hi; >> >> >> On 11/27/2017 04:14 PM, Robert Foss wrote: >>> >>> From: Tomasz Figa >>> >>> There is no API available

Re: [Mesa-dev] [PATCH] egl/android: Partially handle HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED

2017-11-28 Thread Tomasz Figa
On Tue, Nov 28, 2017 at 7:12 PM, Eric Engestrom wrote: > On Monday, 2017-11-27 22:00:43 +0100, Robert Foss wrote: >> Hey Rob, >> >> On Mon, 2017-11-27 at 13:42 -0600, Rob Herring wrote: >> > On Mon, Nov 27, 2017 at 8:14 AM, Robert Foss > > om>

Re: [Mesa-dev] [PATCH 11/24] spirv_extensions: add list of extensions and to_string method

2017-11-28 Thread Eric Engestrom
On Tuesday, 2017-11-28 14:01:38 +0100, Alejandro Piñeiro wrote: > On 28/11/17 11:36, Eric Engestrom wrote: > > On Monday, 2017-11-27 13:21:31 +0200, Tapani Pälli wrote: > >> > >> On 11/15/2017 03:22 PM, Eduardo Lima Mitev wrote: > >>> From: Alejandro Piñeiro > >>> > >>>

Re: [Mesa-dev] [PATCH v3 4/4] spirv: add support for images and samplers as function arguments

2017-11-28 Thread Samuel Iglesias Gonsálvez
This patch is still unreviewed. Sam On Wed, 2017-10-18 at 09:54 +0200, Samuel Iglesias Gonsálvez wrote: > Fixes: > > dEQP-VK.spirv_assembly.instruction.*.image_sampler.* > > Signed-off-by: Samuel Iglesias Gonsálvez > --- > src/compiler/spirv/vtn_cfg.c | 19

Re: [Mesa-dev] [PATCH] egl/android: Partially handle HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED

2017-11-28 Thread Emil Velikov
On 28 November 2017 at 10:45, Tapani Pälli wrote: > Hi; > > > On 11/27/2017 04:14 PM, Robert Foss wrote: >> >> From: Tomasz Figa >> >> There is no API available to properly query the IMPLEMENTATION_DEFINED >> format. As a workaround we rely here on

Re: [Mesa-dev] [Mesa-stable] [PATCH 2/5] r600: use DX10_CLAMP bit in shader setup

2017-11-28 Thread Roland Scheidegger
Am 28.11.2017 um 15:11 schrieb Andres Gomez: > On Tue, 2017-11-28 at 16:05 +0200, Andres Gomez wrote: >> Nicolai, this looks like a good candidate to nominate for inclusion in > ^^^ > I meant Roland  :-) Yes I think that makes sense. Albeit 71e630753ebbee82e8f8709da5488296b2c070c8 (doing

[Mesa-dev] [Bug 103732] [swr] often gets stuck in piglit's glx-multi-context-single-window test

2017-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103732 Bruce Cherniak changed: What|Removed |Added Component|Mesa core

Re: [Mesa-dev] [PATCH] mesa: Document ati_fragment_shader::cur_pass

2017-11-28 Thread Roland Scheidegger
Looks alright to me too. And it's shorter :-). Roland Am 28.11.2017 um 11:17 schrieb Miklós Máté: > Hi, > > I've already prepared a patch that documents this, I was going to post > it with the v2 of this series. My version looks like this: > > diff --git a/src/mesa/main/mtypes.h

Re: [Mesa-dev] [PATCH] radeonsi: always initialize max_forced_staging_uploads

2017-11-28 Thread Marek Olšák
On Mon, Nov 27, 2017 at 2:10 PM, Marek Olšák wrote: > On Mon, Nov 27, 2017 at 1:02 PM, Nicolai Hähnle wrote: >> On 24.11.2017 22:32, Marek Olšák wrote: >>> >>> From: Marek Olšák >>> >>> r600_resource is malloc'd. >>> >>> Bugzilla:

[Mesa-dev] [Bug 103732] [swr] often gets stuck in piglit's glx-multi-context-single-window test

2017-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103732 Bruce Cherniak changed: What|Removed |Added Assignee|mesa-dev@lists.freedesktop.

Re: [Mesa-dev] [PATCH 24/29] anv/cmd_buffer: Do subpass image transitions in begin/end_subpass

2017-11-28 Thread Jason Ekstrand
On Tue, Nov 28, 2017 at 10:07 AM, Jason Ekstrand wrote: > This patch causes a perf drop in sascha gears. I'm investigating. > Found it! Read below. > On Mon, Nov 27, 2017 at 7:06 PM, Jason Ekstrand > wrote: > >> --- >>

Re: [Mesa-dev] [PATCH 7/7] meson: fix deps and underlinkage of libGL

2017-11-28 Thread Dylan Baker
Quoting Emil Velikov (2017-11-27 06:31:35) > IIRC Windows mandates binaries with unresolved symbols. > Other platforms allow such behaviour. > > I think we want to set b_lundef=true, to catch these issues as part of > the build process. > We already do so in the autotools, android and at least

Re: [Mesa-dev] [PATCH v4 1/2] glsl: allow any l-value of an input variable as interpolant in interpolateAt*

2017-11-28 Thread Andres Gomez
Nicolai, this looks like a good candidate to nominate for inclusion in all the stable queues. What do you think? On Tue, 2017-10-10 at 14:09 +0200, Nicolai Hähnle wrote: > From: Nicolai Hähnle > > The intended rule has been clarified in GLSL 4.60, Section 8.13.2 >

[Mesa-dev] [Bug 103955] Using array in structure results in wrong GLSL compilation output

2017-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103955 --- Comment #2 from Ilia Mirkin --- Created attachment 135757 --> https://bugs.freedesktop.org/attachment.cgi?id=135757=edit shader_test that repros the issue In the TGSI this comes out as FRAG PROPERTY

Re: [Mesa-dev] [PATCH v2] radeonsi: Adding tiled to linear conversion functionality

2017-11-28 Thread Nicolai Hähnle
On 28.11.2017 09:34, Sahu, Satyajit wrote: [snip] --- a/src/gallium/targets/dri/dri.sym +++ b/src/gallium/targets/dri/dri.sym @@ -4,6 +4,11 @@   __driDriverGetExtensions*;   nouveau_drm_screen_create;   radeon_drm_winsys_create; +    ac_compute_surface; +   

[Mesa-dev] [Bug 103699] Latest mesa breaks firefox on kde plasma with compositing on

2017-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103699 Fredrik Höglund changed: What|Removed |Added Attachment #135512|0 |1 is

Re: [Mesa-dev] [PATCH] egl/android: Partially handle HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED

2017-11-28 Thread Rob Herring
On Tue, Nov 28, 2017 at 8:42 AM, Tomasz Figa wrote: > On Tue, Nov 28, 2017 at 11:27 PM, Rob Herring wrote: >> On Tue, Nov 28, 2017 at 5:49 AM, Emil Velikov >> wrote: >>> On 28 November 2017 at 10:45, Tapani Pälli

Re: [Mesa-dev] [PATCH 24/29] anv/cmd_buffer: Do subpass image transitions in begin/end_subpass

2017-11-28 Thread Jason Ekstrand
This patch causes a perf drop in sascha gears. I'm investigating. On Mon, Nov 27, 2017 at 7:06 PM, Jason Ekstrand wrote: > --- > src/intel/vulkan/genX_cmd_buffer.c | 187 +- > --- > 1 file changed, 65 insertions(+), 122 deletions(-) > >

[Mesa-dev] [Bug 100151] Front buffer drawing mode shows black window with gallium software rasterizers

2017-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100151 Bruce Cherniak changed: What|Removed |Added Assignee|mesa-dev@lists.freedesktop.

Re: [Mesa-dev] [PATCH] st/va: change frame_idx from array to hash table

2017-11-28 Thread Andres Gomez
Forgot to include mesa-stable ... On Tue, 2017-11-28 at 15:32 +0200, Andres Gomez wrote: > Julien, this looks like a good candidate to nominate for inclusion in > the 17.2 stable queue. > > What do you think? > > On Tue, 2017-07-25 at 15:31 +0100, Julien Isorce wrote: > > The picture_is was

Re: [Mesa-dev] [Mesa-stable] [PATCH 2/5] r600: use DX10_CLAMP bit in shader setup

2017-11-28 Thread Andres Gomez
On Tue, 2017-11-28 at 16:05 +0200, Andres Gomez wrote: > Nicolai, this looks like a good candidate to nominate for inclusion in ^^^ I meant Roland  > all the stable queues. > > What do you think? > > On Thu, 2017-11-09 at 20:00 +0100, srol...@vmware.com wrote: > > From: Roland

Re: [Mesa-dev] [PATCH] egl/android: Partially handle HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED

2017-11-28 Thread Tomasz Figa
On Tue, Nov 28, 2017 at 11:27 PM, Rob Herring wrote: > On Tue, Nov 28, 2017 at 5:49 AM, Emil Velikov > wrote: >> On 28 November 2017 at 10:45, Tapani Pälli wrote: >>> Hi; >>> >>> >>> On 11/27/2017 04:14 PM, Robert Foss wrote: >

Re: [Mesa-dev] [PATCH v2] util: hash_table: move NULL assert to string hashing function

2017-11-28 Thread Andres Gomez
On Tue, 2017-11-28 at 11:18 +, Lionel Landwerlin wrote: > Hash maps might use pointer keys (which people surely might want to > use to hash values) in which case a 0 value is perfectly acceptable. > It's only if the hash function needs to deference the pointer that we dereference

Re: [Mesa-dev] [PATCH] egl/android: Partially handle HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED

2017-11-28 Thread Rob Herring
On Tue, Nov 28, 2017 at 5:49 AM, Emil Velikov wrote: > On 28 November 2017 at 10:45, Tapani Pälli wrote: >> Hi; >> >> >> On 11/27/2017 04:14 PM, Robert Foss wrote: [...] >>> + /* HACK: See droid_create_image_from_prime_fd() and b/32077885. */

Re: [Mesa-dev] [PATCH v4 1/2] glsl: allow any l-value of an input variable as interpolant in interpolateAt*

2017-11-28 Thread Nicolai Hähnle
On 28.11.2017 14:58, Andres Gomez wrote: Nicolai, this looks like a good candidate to nominate for inclusion in all the stable queues. What do you think? It's a rare enough use case, but the change is small and there seem to have been no regressions, so sure, go ahead for both of them.

Re: [Mesa-dev] [PATCH 04/29] anv/blorp: Rework HiZ ops to look like MCS and CCS

2017-11-28 Thread Jason Ekstrand
On Tue, Nov 28, 2017 at 5:56 AM, Pohjolainen, Topi < topi.pohjolai...@gmail.com> wrote: > On Mon, Nov 27, 2017 at 07:05:54PM -0800, Jason Ekstrand wrote: > > --- > > src/intel/vulkan/anv_blorp.c | 38 ++ > > > src/intel/vulkan/anv_private.h | 9

Re: [Mesa-dev] [PATCH] egl/android: Partially handle HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED

2017-11-28 Thread Eric Engestrom
On Tuesday, 2017-11-28 21:59:52 +0900, Tomasz Figa wrote: > On Tue, Nov 28, 2017 at 7:12 PM, Eric Engestrom > wrote: > > On Monday, 2017-11-27 22:00:43 +0100, Robert Foss wrote: > >> Hey Rob, > >> > >> On Mon, 2017-11-27 at 13:42 -0600, Rob Herring wrote: > >> > On Mon,

Re: [Mesa-dev] [PATCH v2 4/5] gallium: Make a helper for doing Z32_FLOAT_S8X24_UINT mappings.

2017-11-28 Thread Rob Clark
On Tue, Nov 21, 2017 at 4:13 PM, Eric Anholt wrote: > v2: Remove the callback, leave avoiding the recursion up to the caller > (probably by rewriting the vtbl either in pctx or u_resource_vtbl) hmm, that is still a bit ugly.. and looking at the equiv thing that Ilia

Re: [Mesa-dev] [PATCH 00/29] anv: Rework resolves and fast clears

2017-11-28 Thread Pohjolainen, Topi
On Mon, Nov 27, 2017 at 07:05:50PM -0800, Jason Ekstrand wrote: > This patch series is a major rework of the aux tracking and fast clear code > in our Vulkan driver. It's broken up into three basic pieces: > > 1) Patches 1-13 rework the way layout transitions work and add some > additional

[Mesa-dev] [Bug 103955] Using array in structure results in wrong GLSL compilation output

2017-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103955 --- Comment #1 from Younghun Jang --- (correction) I made a wrong assumption about Chrome's SW renderer. Running Chrome with `LIBGL_ALWAYS_SOFTWARE=1` does not make Chrome default to its own SW renderer. This only happens

[Mesa-dev] [Bug 103955] Using array in structure results in wrong GLSL compilation output

2017-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103955 --- Comment #3 from Ilia Mirkin --- The GLSL IR seems questionable too... : GLSL IR for linked fragment program 3: ( (declare (location=2 shader_out ) vec4 gl_FragColor) (declare (temporary ) vec4 gl_FragColor) (declare

Re: [Mesa-dev] [PATCH] intel/blorp: Fix possible NULL pointer dereferencing

2017-11-28 Thread Andres Gomez
This is: Reviewed-by: Andres Gomez Vadym, let me know if you need someone to push your change. On Mon, 2017-11-27 at 12:15 +0200, vadim.shovkopl...@gmail.com wrote: > From: Vadym Shovkoplias > > Fix incomplete check of input params in

[Mesa-dev] [PATCH mesa] mesa: suppress -Wundef warning for DEBUG_{FP, VP}

2017-11-28 Thread Eric Engestrom
DEBUG_FP & DEBUG_VP were removed in 8c41a14c5ef0b8d2b0f1. Changing #if to #ifdef silences the warnings, but I think one of these options would be better: - the code has been disabled to 12 years, we could just remove it. - if the point is to have it in debug builds, we could s/DEBUG_.P/DEBUG/

Re: [Mesa-dev] [PATCH 01/12] i965/fs: Unpack count argument to 64-bit shift ops on Atom

2017-11-28 Thread Andres Gomez
Matt, this looks like a good candidate to nominate for inclusion in the 17.2 stable queue. What do you think? On Thu, 2017-09-28 at 23:05 -0700, Matt Turner wrote: > 64-bit operations on Atom parts have additional restrictions over their > big-core counterparts (validated by later patches). > >

Re: [Mesa-dev] [PATCH 04/29] anv/blorp: Rework HiZ ops to look like MCS and CCS

2017-11-28 Thread Pohjolainen, Topi
On Mon, Nov 27, 2017 at 07:05:54PM -0800, Jason Ekstrand wrote: > --- > src/intel/vulkan/anv_blorp.c | 38 > ++ > src/intel/vulkan/anv_private.h | 9 + > src/intel/vulkan/genX_cmd_buffer.c | 11 ++- > 3 files changed, 33

Re: [Mesa-dev] [PATCH] mesa/st: glsl_to_tgsi: Dissolve arrays who's elements are only accessed directly

2017-11-28 Thread Gert Wollny
Am Dienstag, den 28.11.2017, 08:45 +1100 schrieb Timothy Arceri: > > > > > > If I understand the comments in opt_array_splitting, arrays of > > arrays are not properly handled there. Curretly, I don't see how I > > can fix this, because I simply didn't look at any code there > > before. > >

[Mesa-dev] [PATCH] radeonsi: move caps, vendor/device name, and disk shader cache to radeonsi folder

2017-11-28 Thread Nicolai Hähnle
From: Nicolai Hähnle --- src/gallium/drivers/radeon/r600_pipe_common.c | 431 --- src/gallium/drivers/radeon/r600_pipe_common.h | 4 - src/gallium/drivers/radeonsi/si_pipe.c | 432

Re: [Mesa-dev] [PATCH] gallium/{r600, radeonsi}: Fix segfault with color format (v2)

2017-11-28 Thread Emil Velikov
On 28 November 2017 at 13:44, Andres Gomez wrote: > Denis, this looks like a good candidate to nominate for inclusion in > the 17.2 stable queue. > > What do you think? > Patch seems safe, but it's a bit meh since it says "segfault" without specifying any usecase. IIRC the only

Re: [Mesa-dev] [PATCH 2/5] r600: use DX10_CLAMP bit in shader setup

2017-11-28 Thread Andres Gomez
Nicolai, this looks like a good candidate to nominate for inclusion in all the stable queues. What do you think? On Thu, 2017-11-09 at 20:00 +0100, srol...@vmware.com wrote: > From: Roland Scheidegger > > The docs are not very concise in what this really does, however both

[Mesa-dev] [Bug 103814] incorrect dust rendering in hl2 without sisched

2017-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103814 --- Comment #4 from Nicolai Hähnle --- Thanks for the report. I cannot reproduce this on VI with latest Mesa and LLVM. Could you please (1) try with latest Mesa and LLVM (e.g. Padoka PPA if you're o on Ubuntu) and (2)

Re: [Mesa-dev] [PATCH 0/7] [RFC] meson: build src/glx/windows

2017-11-28 Thread Eric Engestrom
On Monday, 2017-11-27 13:58:27 +, Jon Turney wrote: > This series lets me build a mesa for Cygwin configured with: > > -Ddri-drivers=swrast -Dgallium-drivers= -Dplatforms=x11,surfaceless > -Dglx=dri -Dvulkan-drivers= > > I'm really not sure about (2/8), the autotools build does something

[Mesa-dev] [PATCH 2/2] radeonsi: always place sparse buffers in VRAM

2017-11-28 Thread Nicolai Hähnle
From: Nicolai Hähnle Together with "radeonsi: fix the R600_RESOURCE_FLAG_UNMAPPABLE check", this ensures that sparse buffers are placed in VRAM. Noticed by an assertion that started triggering with commit d4fac1e1d7 ("gallium/radeon: enable suballocations for VRAM with

[Mesa-dev] [PATCH 1/2] radeonsi: fix the R600_RESOURCE_FLAG_UNMAPPABLE check

2017-11-28 Thread Nicolai Hähnle
From: Nicolai Hähnle The flag is on the pipe_resource, not the r600_resource. I don't see an obvious bug related to this, but it could potentially lead to suboptimal placement of some resources. Fixes: a41587433c4d ("gallium/radeon: add R600_RESOURCE_FLAG_UNMAPPABLE")

Re: [Mesa-dev] [PATCH] gallium/{r600, radeonsi}: Fix segfault with color format (v2)

2017-11-28 Thread Andres Gomez
Denis, this looks like a good candidate to nominate for inclusion in the 17.2 stable queue. What do you think? On Tue, 2017-09-12 at 23:38 +0300, Denis Pauk wrote: > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102552 > > v2: Patch cleanup proposed by Nicolai Hähnle. > * deleted

[Mesa-dev] [Bug 103955] Using array in structure results in wrong GLSL compilation output

2017-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103955 Bug ID: 103955 Summary: Using array in structure results in wrong GLSL compilation output Product: Mesa Version: 17.3 Hardware: All OS: Linux (All)

Re: [Mesa-dev] [PATCH mesa 04/16] amd: remove always-true BRAHMA_BUILD define

2017-11-28 Thread Marek Olšák
Internal addrlib doesn't contain BRAHMA_BUILD, so removing that definition is safe. The assert change is also OK. We'll just discard any new addrlib code that might replace it, because standard C assert is the only think we need. Marek On Tue, Nov 28, 2017 at 12:03 PM, Eric Engestrom

Re: [Mesa-dev] [PATCH mesa 16/16] util: use NDEBUG to guard asserts

2017-11-28 Thread Gert Wollny
Am Dienstag, den 28.11.2017, 10:53 + schrieb Eric Engestrom: > > > The parameters to a preprocessor macro are (basically) just > > text.  They are not evaluated until after the macro is > > expanded.  I'm 93.2% sure removing the guards around the assert() > > should be fine in this case. > >

Re: [Mesa-dev] [PATCH mesa] mesa: suppress -Wundef warning for DEBUG_{FP, VP}

2017-11-28 Thread Ian Romanick
On 11/28/2017 07:49 AM, Eric Engestrom wrote: > DEBUG_FP & DEBUG_VP were removed in 8c41a14c5ef0b8d2b0f1. > > Changing #if to #ifdef silences the warnings, but I think one of these > options would be better: > - the code has been disabled to 12 years, we could just remove it. > - if the point is

Re: [Mesa-dev] [PATCH v2] util: hash_table: move NULL assert to string hashing function

2017-11-28 Thread Ian Romanick
On 11/28/2017 08:04 AM, Andres Gomez wrote: > On Tue, 2017-11-28 at 11:18 +, Lionel Landwerlin wrote: >> Hash maps might use pointer keys (which people surely might want to >> use to hash values) in which case a 0 value is perfectly acceptable. >> It's only if the hash function needs to

Re: [Mesa-dev] [PATCH 05/29] anv/image: Update a comment

2017-11-28 Thread Nanley Chery
On Mon, Nov 27, 2017 at 07:05:55PM -0800, Jason Ekstrand wrote: > This got lost in all of the aspect vs. plane rebasing of YCBCR. > --- > src/intel/vulkan/anv_image.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > This patch is Reviewed-by: Nanley Chery >

Re: [Mesa-dev] [PATCH 01/12] i965/fs: Unpack count argument to 64-bit shift ops on Atom

2017-11-28 Thread Ian Romanick
Also... it looks like only a few patches in this series got reviewed. Did the whole thing actually land? On 11/28/2017 05:54 AM, Andres Gomez wrote: > Matt, this looks like a good candidate to nominate for inclusion in > the 17.2 stable queue. > > What do you think? > > On Thu, 2017-09-28 at

Re: [Mesa-dev] [PATCH 2/2] radeonsi: always place sparse buffers in VRAM

2017-11-28 Thread Marek Olšák
For the series: Reviewed-by: Marek Olšák Marek On Tue, Nov 28, 2017 at 2:44 PM, Nicolai Hähnle wrote: > From: Nicolai Hähnle > > Together with "radeonsi: fix the R600_RESOURCE_FLAG_UNMAPPABLE check", > this ensures that sparse

Re: [Mesa-dev] [PATCH 12/29] anv/cmd_buffer: Drop the genX from get/set_needs_resolve

2017-11-28 Thread Nanley Chery
On Mon, Nov 27, 2017 at 07:06:02PM -0800, Jason Ekstrand wrote: > They are static functions so there's no real need to have the genX and > it just makes the function names longer. > --- > src/intel/vulkan/genX_cmd_buffer.c | 34 +- > 1 file changed, 17

Re: [Mesa-dev] [PATCH 00/24] Initial gl_spirv and spirv_extensions support in Mesa and i965

2017-11-28 Thread Eduardo Lima Mitev
Hi, This is a heads-up that I'm preparing a v2 of this series incorporating all the feedback received so far. I plan to submit it imminently (tomorrow?) and several patches have diverged quite a bit; so please hold on for a few hours on any review you might have planned. Thanks! Eduardo On

[Mesa-dev] [Bug 103699] Latest mesa breaks firefox on kde plasma with compositing on

2017-11-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103699 --- Comment #21 from Germano Massullo --- Hi there my system has - Mesa 17.2.4; - KDE Plasma 5.10 on Fedora 26 and I think I am experiencing this problem. I opened a Firefox bugreport before finding out about this

[Mesa-dev] [PATCH] intel/isl: Improve the documentation on get_default_aux_state

2017-11-28 Thread Jason Ekstrand
Cc: Chad Versace --- src/intel/isl/isl.h | 24 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h index e3acb0e..cf53b5a 100644 --- a/src/intel/isl/isl.h +++ b/src/intel/isl/isl.h @@ -1565,10

Re: [Mesa-dev] [PATCH] radeonsi: move caps, vendor/device name, and disk shader cache to radeonsi folder

2017-11-28 Thread Marek Olšák
Can we use this instead? https://cgit.freedesktop.org/~mareko/mesa/commit/?h=master=65f55ddb4b0140f0beb0868381be5edac64b5137 Marek On Tue, Nov 28, 2017 at 3:45 PM, Nicolai Hähnle wrote: > From: Nicolai Hähnle > > --- >

Re: [Mesa-dev] [PATCH 21/24] mesa/glspirv: Create gl_linked_shader objects for a SPIR-V program

2017-11-28 Thread Eduardo Lima Mitev
On 11/27/2017 03:20 AM, Timothy Arceri wrote: > On 16/11/17 00:22, Eduardo Lima Mitev wrote: >> --- >>   src/mesa/main/glspirv.c | 51 >> ++--- >>   1 file changed, 48 insertions(+), 3 deletions(-) >> >> diff --git a/src/mesa/main/glspirv.c

Re: [Mesa-dev] [PATCH 2/4] i965/tex_image: Reference the renderbuffer miptree in setTexBuffer2

2017-11-28 Thread Jason Ekstrand
On Tue, Nov 21, 2017 at 3:05 PM, Chad Versace wrote: > On Wed 08 Nov 2017, Jason Ekstrand wrote: > > The old code made a new miptree that referenced the same BO as the > > renderbuffer and just trusted in the memory aliasing to work. There are > > only two ways in

Re: [Mesa-dev] [PATCH mesa 0/7] remove upstreamed specs

2017-11-28 Thread Ian Romanick
On 11/28/2017 03:55 AM, Emil Velikov wrote: > On 28 November 2017 at 02:56, Ian Romanick wrote: >> On 11/23/2017 05:32 AM, Emil Velikov wrote: >>> Hi Eric, >>> >>> On 22 November 2017 at 17:59, Eric Engestrom >>> wrote: A recent thread [1]

Re: [Mesa-dev] [PATCH v2] util: hash_table: move NULL assert to string hashing function

2017-11-28 Thread Eric Anholt
Lionel Landwerlin writes: > Hash maps might use pointer keys (which people surely might want to > use to hash values) in which case a 0 value is perfectly acceptable. > It's only if the hash function needs to deference the pointer that we > want to be sure it's not

Re: [Mesa-dev] [PATCH v2] anv: fix bug when using component qualifier in FS outputs

2017-11-28 Thread Ian Romanick
Based on my (weak) understanding things in this part of the code, I think this is ok. There are a couple minor nits below. With those addressed and unless Jason has (time to give) some objections, this patch is Reviewed-by: Ian Romanick On 11/28/2017 02:06 AM, Samuel

Re: [Mesa-dev] [PATCH] mesa: deal with vs_inputs as 64-bit unsigned integer

2017-11-28 Thread Ian Romanick
On 11/28/2017 02:01 AM, Iago Toral wrote: > > On Mon, 2017-11-27 at 18:37 +0100, Juan A. Suarez Romero wrote: >> Commit 78942e ("mesa: shrink VERT_ATTRIB bitfields to 32 bits") uses >> vs_prog_data->vs_inputs as if it were a 32-bit unsigned integer. >> >> But actually it is a 64-bit integer, and

Re: [Mesa-dev] [PATCH v2] anv: fix bug when using component qualifier in FS outputs

2017-11-28 Thread Jason Ekstrand
On Tue, Nov 14, 2017 at 10:39 PM, Samuel Iglesias Gonsálvez < sigles...@igalia.com> wrote: > We can write to the same output but in different components, like > in this example: > > layout(location = 0, component = 0) out ivec2 dEQP_FragColor_0; > layout(location = 0, component = 2) out ivec2

Re: [Mesa-dev] [PATCH 2/2] spirv: fix bug when OpSpecConstantOp calls a conversion

2017-11-28 Thread Ian Romanick
On 11/20/2017 10:25 PM, Samuel Iglesias Gonsálvez wrote: > In that case, nir_eval_const_opcode() will evaluate the conversion > but as it was using destination's bit_size, the resulting > value was just a cast of the source constant value. By passing the > source's bit size, it does the conversion

[Mesa-dev] [PATCH 11/23] radeonsi: move all get functions to si_get.c; disk_cache_create to si_pipe.c

2017-11-28 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeon/r600_pipe_common.c | 411 + src/gallium/drivers/radeonsi/Makefile.sources | 1 + src/gallium/drivers/radeonsi/meson.build | 1 + src/gallium/drivers/radeonsi/si_get.c | 852

[Mesa-dev] [PATCH 19/23] radeonsi: move shader debug helpers out of r600_pipe_common.c

2017-11-28 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeon/r600_pipe_common.c | 11 --- src/gallium/drivers/radeon/r600_pipe_common.h | 4 src/gallium/drivers/radeonsi/si_compute.c | 2 +- src/gallium/drivers/radeonsi/si_pipe.h | 13

Re: [Mesa-dev] [PATCH 00/24] RadeonSI huge cleanup

2017-11-28 Thread Marek Olšák
Oh and BTW, there is no patch 24 (typo). Marek On Tue, Nov 28, 2017 at 10:38 PM, Marek Olšák wrote: > Hi, > > Most of this series deals with the dissolution of the drivers/radeon > directory, but this is just one small iteration of that. > > Patch 7 should be the only

[Mesa-dev] [PATCH 23/23] r300, r600, radeonsi: replace RADEON_FLUSH_* with PIPE_FLUSH_*

2017-11-28 Thread Marek Olšák
From: Marek Olšák and handle PIPE_FLUSH_HINT_FINISH in r300. --- src/gallium/drivers/r300/r300_blit.c| 2 +- src/gallium/drivers/r300/r300_flush.c | 7 --- src/gallium/drivers/r300/r300_query.c | 2 +-

[Mesa-dev] [PATCH 08/23] radeonsi: remove some definitions and helpers from r600_pipe_common.h

2017-11-28 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeon/r600_pipe_common.h | 102 -- src/gallium/drivers/radeonsi/si_blit.c| 6 +- src/gallium/drivers/radeonsi/si_clear.c | 2 +- src/gallium/drivers/radeonsi/si_compute.c |

[Mesa-dev] [PATCH 16/23] radeonsi: set all pipe buffer functions in r600_buffer_common.c

2017-11-28 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeon/r600_buffer_common.c | 48 +++-- src/gallium/drivers/radeon/r600_pipe_common.c | 19 -- src/gallium/drivers/radeon/r600_pipe_common.h | 19 +++--- src/gallium/drivers/radeonsi/si_pipe.c

[Mesa-dev] [PATCH 17/23] radeonsi: document our vendor string situation

2017-11-28 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeonsi/si_get.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index 9d38636..56030f7 100644 --- a/src/gallium/drivers/radeonsi/si_get.c +++

[Mesa-dev] [PATCH 15/23] radeonsi/uvd: don't call ws->query_info

2017-11-28 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeon/radeon_uvd.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/gallium/drivers/radeon/radeon_uvd.c b/src/gallium/drivers/radeon/radeon_uvd.c index 3e060e2..cd58c66 100644 ---

[Mesa-dev] [PATCH 10/23] radeonsi: remove R600_CONTEXT_* flags

2017-11-28 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeon/r600_pipe_common.h | 7 - src/gallium/drivers/radeon/r600_query.c | 2 +- src/gallium/drivers/radeonsi/si_hw_context.c | 2 +- src/gallium/drivers/radeonsi/si_pipe.h| 32

[Mesa-dev] [PATCH 21/23] radeonsi: remove r600_pipe_common::barrier_flags::compute_to_L2

2017-11-28 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeon/r600_pipe_common.h | 5 - src/gallium/drivers/radeon/r600_query.c | 2 +- src/gallium/drivers/radeonsi/si_pipe.c| 2 -- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git

[Mesa-dev] [PATCH 06/23] radeonsi: unify code setting dirty_level_mask for fast clear

2017-11-28 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeonsi/si_clear.c | 25 +++-- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_clear.c b/src/gallium/drivers/radeonsi/si_clear.c index 29e63c7..00589ca 100644 ---

Re: [Mesa-dev] [PATCH 00/24] RadeonSI huge cleanup

2017-11-28 Thread Marek Olšák
Patch 22 is too large and you can find it here: https://cgit.freedesktop.org/~mareko/mesa/commit/?h=master=201f43780ba1d0bd3b99936799b6bc35798e1185 Whole series: https://cgit.freedesktop.org/~mareko/mesa/log/?h=master Marek On Tue, Nov 28, 2017 at 10:40 PM, Marek Olšák wrote:

Re: [Mesa-dev] [PATCH] st/va: change frame_idx from array to hash table

2017-11-28 Thread Andres Gomez
Julien, this looks like a good candidate to nominate for inclusion in the 17.2 stable queue. What do you think? On Tue, 2017-07-25 at 15:31 +0100, Julien Isorce wrote: > The picture_is was assumed to be a frame number so in 0-31. > But the vaapi client gstreamer-vaapi uses the surfaces handles >

  1   2   3   4   >