Re: [Mesa-dev] [PATCH 4/5] mesa: add scissor() and scissor_array() helpers

2017-06-07 Thread Samuel Pitoiset
On 06/07/2017 01:45 AM, Timothy Arceri wrote: On 07/06/17 05:58, Samuel Pitoiset wrote: Signed-off-by: Samuel Pitoiset --- src/mesa/main/scissor.c | 57 - 1 file changed, 37 insertions(+), 20 deletions(-) diff --git a/src/mesa/main/scissor

Re: [Mesa-dev] [PATCH v2 56/64] radeonsi: decompress resident textures/images before graphics/compute

2017-06-07 Thread Samuel Pitoiset
On 06/07/2017 01:46 AM, Marek Olšák wrote: On Wed, Jun 7, 2017 at 1:27 AM, Marek Olšák wrote: On Tue, May 30, 2017 at 10:36 PM, Samuel Pitoiset wrote: Similar to the existing decompression code path except that it loops over the list of resident textures/images. v2: - store pipe_sampler_vi

Re: [Mesa-dev] [PATCH v2 58/64] radeonsi: track use of bindless samplers/images from tgsi_shader_info

2017-06-07 Thread Samuel Pitoiset
On 06/07/2017 01:49 AM, Marek Olšák wrote: On Tue, May 30, 2017 at 10:36 PM, Samuel Pitoiset wrote: This adds some new helper functions to know if the current draw call (or dispatch compute) is using bindless samplers/images, based on TGSI analysis. Signed-off-by: Samuel Pitoiset --- src/

[Mesa-dev] [Bug 101199] nouveau_screen.c: undefined reference to `nouveau_drm_del'

2017-06-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101199 Andrey changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

Re: [Mesa-dev] [PATCH 4/8] mesa: stop passing state bitfield to UpdateState()

2017-06-07 Thread Samuel Pitoiset
That would be very surprising. You have some little indentation issues, with these fixed, patch is: Reviewed-by: Samuel Pitoiset On 06/07/2017 08:02 AM, Timothy Arceri wrote: The code comment which seems to have been added in cab974cf6c2db (from year 2000) says: "Set ctx->NewState to zer

Re: [Mesa-dev] [PATCH 3/8] st/mesa: add st_invalidate_buffers() helper

2017-06-07 Thread Samuel Pitoiset
Reviewed-by: Samuel Pitoiset On 06/07/2017 08:02 AM, Timothy Arceri wrote: --- src/mesa/state_tracker/st_cb_fbo.c | 5 +++-- src/mesa/state_tracker/st_context.c | 15 +++ src/mesa/state_tracker/st_context.h | 16 +++- src/mesa/state_tracker/st_manager.c | 2 +-

Re: [Mesa-dev] [PATCH 5/8] mesa: rework vbo_exec_init()

2017-06-07 Thread Samuel Pitoiset
Reviewed-by: Samuel Pitoiset On 06/07/2017 08:02 AM, Timothy Arceri wrote: Here we make some assumptions about the AEcontext and set the recalculate bools directly. Some formating fixes are also made while we are here. --- src/mesa/main/api_arrayelt.c | 6 ++ src/mesa/main/api_arrayelt

Re: [Mesa-dev] [PATCH 7/8] mesa: remove redundant _ae_invalidate_state() call

2017-06-07 Thread Samuel Pitoiset
How? On 06/07/2017 08:02 AM, Timothy Arceri wrote: The FLUSH_VERTICES(ctx, _NEW_ARRAY) above this will already cause this to be called. --- src/mesa/main/enable.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index ef278a3..00d672f 10064

Re: [Mesa-dev] [PATCH 6/8] mesa: inline vbo_exec_invalidate_state() and call from mesa core

2017-06-07 Thread Samuel Pitoiset
Nice cleanup! Reviewed-by: Samuel Pitoiset On 06/07/2017 08:02 AM, Timothy Arceri wrote: Rather than calling it indirectly in each driver. --- src/mesa/drivers/dri/i915/i915_context.c | 1 - src/mesa/drivers/dri/i915/intel_context.c| 1 - src/mesa/drivers/dri/i965/brw_context.c

[Mesa-dev] [Bug 100948] Please add an ssh account, fdo username: rantogno

2017-06-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100948 Daniel Stone changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

Re: [Mesa-dev] [RFC] - Rewrite mesa website in Sphinx

2017-06-07 Thread Jean Hertel
Hello Emil, I've updated the website with the new release notes template. Please take a look at: http://mesa2.jeanhertel.com.br/relnotes.html What about rebasing my current work on top of mesa-master? (Remembering that github comments referencing directly the commit will be loss) The reposito

[Mesa-dev] [Bug 101326] gallium/wgl: Allow context creation without prior SetPixelFormat()

2017-06-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101326 Bug ID: 101326 Summary: gallium/wgl: Allow context creation without prior SetPixelFormat() Product: Mesa Version: 17.1 Hardware: Other OS: Windows (All)

Re: [Mesa-dev] Mesa (fdo_master): dri3/GLX: Fix drawable invalidation v2

2017-06-07 Thread Michel Dänzer
On 07/06/17 06:34 PM, Thomas Hellstrom wrote: > Module: Mesa > Branch: fdo_master Oops? :) -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ mesa-de

Re: [Mesa-dev] Mesa (fdo_master): dri3/GLX: Fix drawable invalidation v2

2017-06-07 Thread Thomas Hellstrom
On 06/07/2017 11:45 AM, Michel Dänzer wrote: On 07/06/17 06:34 PM, Thomas Hellstrom wrote: Module: Mesa Branch: fdo_master Oops? :) Indeed. New branch removed /Thomas ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedes

Re: [Mesa-dev] [PATCH 3/4] radeonsi: fix gl_PrimitiveID in tessellation with instanced draws on SI

2017-06-07 Thread Nicolai Hähnle
On 02.06.2017 15:01, Marek Olšák wrote: On Wed, May 3, 2017 at 3:58 PM, Nicolai Hähnle wrote: From: Nicolai Hähnle Cc: mesa-sta...@lists.freedesktop.org --- src/gallium/drivers/radeonsi/si_state_draw.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/gallium/drivers/

Re: [Mesa-dev] [PATCH 3/4] radeonsi: fix gl_PrimitiveID in tessellation with instanced draws on SI

2017-06-07 Thread Marek Olšák
On Wed, Jun 7, 2017 at 12:14 PM, Nicolai Hähnle wrote: > On 02.06.2017 15:01, Marek Olšák wrote: >> >> On Wed, May 3, 2017 at 3:58 PM, Nicolai Hähnle wrote: >>> >>> From: Nicolai Hähnle >>> >>> Cc: mesa-sta...@lists.freedesktop.org >>> --- >>> src/gallium/drivers/radeonsi/si_state_draw.c | 14

Re: [Mesa-dev] [PATCH 1/3] Fix missing initializer warning in sid_tables.h by adding appropriate default fields in sid_tables.py

2017-06-07 Thread Nicolai Hähnle
On 04.06.2017 09:45, Benedikt Schemmer wrote: Fix missing initializer warning in sid_tables.h by adding appropriate default fields in sid_tables.py I thought this was fine? Which compiler / compiler settings complains about this? That should be added to the commit message. The change itself

Re: [Mesa-dev] [PATCH 4/4] st_glsl_to_tgsi: replace variables tracking list with a hash table

2017-06-07 Thread Timothy Arceri
On 01/06/17 23:42, Samuel Pitoiset wrote On 05/30/2017 07:52 AM, Dave Airlie wrote: From: Dave Airlie This removes the linear search which is fail when number of variables goes up to 3 or so. --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 44 +- 1 file ch

Re: [Mesa-dev] [PATCH 4/5] gallium/u_blitter: use TXF if possible

2017-06-07 Thread Nicolai Hähnle
On 31.05.2017 01:15, Marek Olšák wrote: On Wed, May 31, 2017 at 12:59 AM, Roland Scheidegger wrote: Am 31.05.2017 um 00:46 schrieb Marek Olšák: From: Marek Olšák This fixes piglit: arb_texture_view-rendering-r32ui TEX (image_sample) flushes denorms to 0 with FP32 textures on GCN, but s

Re: [Mesa-dev] [PATCH 01/11] util/u_queue: add a way to remove a job when we just want to destroy it

2017-06-07 Thread Nicolai Hähnle
On 01.06.2017 20:18, Marek Olšák wrote: From: Marek Olšák --- src/util/u_queue.c | 50 -- src/util/u_queue.h | 2 ++ 2 files changed, 46 insertions(+), 6 deletions(-) diff --git a/src/util/u_queue.c b/src/util/u_queue.c index 8db09b0..3834b6

Re: [Mesa-dev] [PATCH 7/8] mesa: remove redundant _ae_invalidate_state() call

2017-06-07 Thread Timothy Arceri
On 07/06/17 18:16, Samuel Pitoiset wrote: How? _mesa_update_state() will call vbo_exec_invalidate_state() which calls _ae_invalidate_state() because _NEW_ARRAY is passed to FLUSH_VERTICES() On 06/07/2017 08:02 AM, Timothy Arceri wrote: The FLUSH_VERTICES(ctx, _NEW_ARRAY) above this will al

Re: [Mesa-dev] [PATCH 5/5] st/mesa: use texture_barrier before CopyPixels blits where src == dst

2017-06-07 Thread Nicolai Hähnle
On 06.06.2017 11:34, Marek Olšák wrote: On Tue, Jun 6, 2017 at 4:28 AM, Michel Dänzer wrote: On 06/06/17 01:50 AM, Marek Olšák wrote: From: Marek Olšák radeonsi won't flush caches if set_framebuffer_state doesn't change anything. --- src/mesa/state_tracker/st_cb_drawpixels.c | 7 +++

Re: [Mesa-dev] [PATCH 7/8] mesa: remove redundant _ae_invalidate_state() call

2017-06-07 Thread Samuel Pitoiset
On 06/07/2017 01:14 PM, Timothy Arceri wrote: On 07/06/17 18:16, Samuel Pitoiset wrote: How? _mesa_update_state() will call vbo_exec_invalidate_state() which calls _ae_invalidate_state() because _NEW_ARRAY is passed to FLUSH_VERTICES() Right, missed that. Reviewed-by: Samuel Pitoiset

Re: [Mesa-dev] [PATCH 8/8] mesa: rework _ae_invalidate_state() so that it just sets a dirty flag

2017-06-07 Thread Samuel Pitoiset
Reviewed-by: Samuel Pitoiset On 06/07/2017 08:02 AM, Timothy Arceri wrote: --- src/mesa/main/api_arrayelt.c | 26 +- src/mesa/main/api_arrayelt.h | 2 +- src/mesa/vbo/vbo_context.h | 9 + 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/s

Re: [Mesa-dev] [PATCH 3/5] radeonsi: disable the patch ID workaround on SI when the patch ID isn't used

2017-06-07 Thread Nicolai Hähnle
On 06.06.2017 16:30, Marek Olšák wrote: From: Marek Olšák The workaround causes a massive performance decrease on 1-SE parts. (Cape Verde, Hainan, Oland) The performance regression is already part of 17.0 and 17.1. Cc: 17.0 17.1 --- src/gallium/drivers/radeonsi/si_state_draw.c | 2 +- 1 f

Re: [Mesa-dev] [PATCH 5/5] radeonsi: clean up decompress blend state names

2017-06-07 Thread Nicolai Hähnle
Assuming no regressions, patches 1,2,4,5 are: Reviewed-by: Nicolai Hähnle On 06.06.2017 16:30, Marek Olšák wrote: From: Marek Olšák --- src/gallium/drivers/radeonsi/si_blit.c | 4 ++-- src/gallium/drivers/radeonsi/si_pipe.c | 8 src/gallium/drivers/radeonsi/si_pipe.h | 4 ++-

Re: [Mesa-dev] [PATCH 3/5] radeonsi: disable the patch ID workaround on SI when the patch ID isn't used

2017-06-07 Thread Nicolai Hähnle
On 07.06.2017 13:36, Nicolai Hähnle wrote: On 06.06.2017 16:30, Marek Olšák wrote: From: Marek Olšák The workaround causes a massive performance decrease on 1-SE parts. (Cape Verde, Hainan, Oland) The performance regression is already part of 17.0 and 17.1. Cc: 17.0 17.1 --- src/gallium/d

Re: [Mesa-dev] [PATCH 4/8] radeonsi: add a fast path for sRGB enable and no-op framebuffer changes

2017-06-07 Thread Nicolai Hähnle
On 05.06.2017 18:50, Marek Olšák wrote: From: Marek Olšák --- src/gallium/drivers/radeon/r600_pipe_common.h | 1 + src/gallium/drivers/radeon/r600_texture.c | 1 + src/gallium/drivers/radeonsi/si_state.c | 65 ++- 3 files changed, 55 insertions(+), 12 de

Re: [Mesa-dev] [PATCH 8/8] radeonsi: don't update dependent states if it has no effect

2017-06-07 Thread Nicolai Hähnle
On 06.06.2017 21:16, Samuel Pitoiset wrote: I really like the idea. :-) Seconded! Though, I have two general comments: 1) I think it would be better to introduce some sort of compare helper functions for the different state changes. Also, for correctness it might be safer to do the opposi

Re: [Mesa-dev] [PATCH 7/8] radeonsi: update clip_regs on shader state changes only when it's needed

2017-06-07 Thread Nicolai Hähnle
I've sent out comments on patches #4 and #8, the rest are: Reviewed-by: Nicolai Hähnle On 05.06.2017 18:51, Marek Olšák wrote: From: Marek Olšák --- src/gallium/drivers/radeonsi/si_state_shaders.c | 35 ++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --gi

[Mesa-dev] [PATCH 1/2] mesa: add DECL_GLAPIENTRY macro

2017-06-07 Thread Samuel Pitoiset
To declare both errors and no errors GL prototypes. Signed-off-by: Samuel Pitoiset --- src/mesa/main/glheader.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/main/glheader.h b/src/mesa/main/glheader.h index 3f2a923782..1976ed 100644 --- a/src/mesa/main/glheader.h +++ b/src/

[Mesa-dev] [PATCH 2/2] mesa: use DECL_GLAPIENTRY macro

2017-06-07 Thread Samuel Pitoiset
Signed-off-by: Samuel Pitoiset --- src/mesa/main/blend.h | 22 ++- src/mesa/main/blit.h| 38 --- src/mesa/main/bufferobj.h | 148 - src/mesa/main/compute.h | 31 +++-- src/mesa/main/copyimage.h | 20 ++ src/mesa

Re: [Mesa-dev] [PATCH 0/3] Fix missing initializer errors in generated tables

2017-06-07 Thread Emil Velikov
Hi Chih-Wei, On 6 June 2017 at 06:16, Chih-Wei Huang wrote: > Making the code warning-free is the responsibility > of the one who wrote the code instead of > the one who builds the code. > if you look closer you'll see that particular warning will be triggered at almost any point. That is using

Re: [Mesa-dev] [PATCH 3/3] mesa: make use of NewScissorTest driver flags

2017-06-07 Thread Nicolai Hähnle
For the series: Reviewed-by: Nicolai Hähnle On 06.06.2017 21:59, Samuel Pitoiset wrote: Signed-off-by: Samuel Pitoiset --- src/mesa/main/enable.c | 2 ++ src/mesa/state_tracker/st_context.c | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/main

Re: [Mesa-dev] [PATCH] Android: define PIPE_OS_BSD

2017-06-07 Thread Emil Velikov
On 6 June 2017 at 07:30, Chih-Wei Huang wrote: > 2017-06-06 13:06 GMT+08:00 Chih-Wei Huang : >> 2017-06-05 21:04 GMT+08:00 Emil Velikov : >>> On 4 June 2017 at 04:31, Chih-Wei Huang wrote: Android bionic is derived from OpenBSD. So the logics of BSD almost apply to Android as well.

Re: [Mesa-dev] [PATCH v2 53/64] radeonsi: add all resident buffers to the current CS

2017-06-07 Thread Marek Olšák
On Tue, May 30, 2017 at 10:36 PM, Samuel Pitoiset wrote: > Resident buffers have to be added to every new command stream. > Though, this could be slightly improved when current shaders > don't use any bindless textures/images but usually applications > tend to use bindless for almost every draw ca

Re: [Mesa-dev] [PATCH v2 52/64] radeonsi: implement ARB_bindless_texture

2017-06-07 Thread Marek Olšák
On Tue, May 30, 2017 at 10:36 PM, Samuel Pitoiset wrote: > This implements the Gallium interface. Decompression of resident > textures/images will follow in the next patches. > > v2: - fix a memleak related to util_copy_image_view() > - remove "texture" parameter from create_texture_handle() >

Re: [Mesa-dev] [PATCH] Android: define PIPE_OS_BSD

2017-06-07 Thread Jonathan Gray
On Wed, Jun 07, 2017 at 02:45:15PM +0100, Emil Velikov wrote: > On 6 June 2017 at 07:30, Chih-Wei Huang wrote: > > 2017-06-06 13:06 GMT+08:00 Chih-Wei Huang : > >> 2017-06-05 21:04 GMT+08:00 Emil Velikov : > >>> On 4 June 2017 at 04:31, Chih-Wei Huang wrote: > Android bionic is derived from

Re: [Mesa-dev] [PATCH v2 60/64] radeonsi: upload new descriptors when resident buffers are invalidated

2017-06-07 Thread Marek Olšák
On Tue, May 30, 2017 at 10:36 PM, Samuel Pitoiset wrote: > When texture buffers are invalidated the addr in the resident > descriptor has to be updated but we can't create a new descriptor > because the resident handle has to be the same. > > Instead, use the WRITE_DATA packet which allows to upda

Re: [Mesa-dev] [PATCH 2/2] RFC: radeon/compute: Limit allocations for VRAM-based chips to 3/4 VRAM

2017-06-07 Thread Aaron Watry
On Mon, Jun 5, 2017 at 3:07 PM, Marek Olšák wrote: > Hi Aaron, > > Can you make the change in radeon_drm_winsys.c instead? Something like the following? diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c index a485615ae4..44948f49ef

Re: [Mesa-dev] [PATCH] Android: define PIPE_OS_BSD

2017-06-07 Thread Chih-Wei Huang
2017-06-07 21:54 GMT+08:00 Jonathan Gray : > On Wed, Jun 07, 2017 at 02:45:15PM +0100, Emil Velikov wrote: >> On 6 June 2017 at 07:30, Chih-Wei Huang wrote: >> >>> These are are due to program_invocation_short_name/getprogname. How >> >>> about updating the file alike xmlconfig.c? >> >> >> >> Oh..

Re: [Mesa-dev] [PATCH v2 60/64] radeonsi: upload new descriptors when resident buffers are invalidated

2017-06-07 Thread Samuel Pitoiset
On 06/07/2017 03:59 PM, Marek Olšák wrote: On Tue, May 30, 2017 at 10:36 PM, Samuel Pitoiset wrote: When texture buffers are invalidated the addr in the resident descriptor has to be updated but we can't create a new descriptor because the resident handle has to be the same. Instead, use the

Re: [Mesa-dev] [PATCH] Android: define PIPE_OS_BSD

2017-06-07 Thread Jonathan Gray
On Wed, Jun 07, 2017 at 10:30:49PM +0800, Chih-Wei Huang wrote: > 2017-06-07 21:54 GMT+08:00 Jonathan Gray : > > On Wed, Jun 07, 2017 at 02:45:15PM +0100, Emil Velikov wrote: > >> On 6 June 2017 at 07:30, Chih-Wei Huang wrote: > >> >>> These are are due to program_invocation_short_name/getprogname

Re: [Mesa-dev] [PATCH 5/8] mesa: rework vbo_exec_init()

2017-06-07 Thread Brian Paul
On 06/07/2017 12:02 AM, Timothy Arceri wrote: Here we make some assumptions about the AEcontext and set the recalculate bools directly. Some formating fixes are also made while we are here. --- src/mesa/main/api_arrayelt.c | 6 ++ src/mesa/main/api_arrayelt.h | 1 + src/mesa/vbo/vbo_ex

Re: [Mesa-dev] [PATCH v2 60/64] radeonsi: upload new descriptors when resident buffers are invalidated

2017-06-07 Thread Marek Olšák
On Wed, Jun 7, 2017 at 4:47 PM, Samuel Pitoiset wrote: > > > On 06/07/2017 03:59 PM, Marek Olšák wrote: >> >> On Tue, May 30, 2017 at 10:36 PM, Samuel Pitoiset >> wrote: >>> >>> When texture buffers are invalidated the addr in the resident >>> descriptor has to be updated but we can't create a ne

Re: [Mesa-dev] [PATCH 2/8] osmesa: remove useless osmesa_update_state() call

2017-06-07 Thread Brian Paul
On 06/07/2017 12:01 AM, Timothy Arceri wrote: As far as I can tell this shouldn't do anything as we were just passing a state of 0. --- src/mesa/drivers/osmesa/osmesa.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c inde

Re: [Mesa-dev] [PATCH 3/8] st/mesa: add st_invalidate_buffers() helper

2017-06-07 Thread Brian Paul
It would be great if you could put a comment on the new function explaining what it's doing. Many readers would not know why invalidating framebuffer state requires invalidating all that other state. Thanks. -Brian On 06/07/2017 12:02 AM, Timothy Arceri wrote: --- src/mesa/state_tracker/

Re: [Mesa-dev] [PATCH 6/8] mesa: inline vbo_exec_invalidate_state() and call from mesa core

2017-06-07 Thread Brian Paul
For 6-8, Reviewed-by: Brian Paul On 06/07/2017 12:02 AM, Timothy Arceri wrote: Rather than calling it indirectly in each driver. --- src/mesa/drivers/dri/i915/i915_context.c | 1 - src/mesa/drivers/dri/i915/intel_context.c| 1 - src/mesa/drivers/dri/i965/brw_context.c | 1 -

Re: [Mesa-dev] [PATCH v2 00/64] ARB_bindless_texture for RadeonSI

2017-06-07 Thread Marek Olšák
For patch 37: Reviewed-by: Marek Olšák Patches 25 - 31 and 37 (gallium interface etc.) can land now as far as I'm concerned. --- I sent comments on patches 49, 51, 52 (two comments), 53, 56 (just the small cleanup), 58, 60. With my comments applied, patches 49-51, 53-57, 59-64 are: Reviewed-

Re: [Mesa-dev] [PATCH v2 00/64] ARB_bindless_texture for RadeonSI

2017-06-07 Thread Samuel Pitoiset
On 06/07/2017 05:14 PM, Marek Olšák wrote: For patch 37: Reviewed-by: Marek Olšák Patches 25 - 31 and 37 (gallium interface etc.) can land now as far as I'm concerned. --- I sent comments on patches 49, 51, 52 (two comments), 53, 56 (just the small cleanup), 58, 60. With my comments appli

Re: [Mesa-dev] [PATCH] Android: define PIPE_OS_BSD

2017-06-07 Thread Chih-Wei Huang
2017-06-07 22:47 GMT+08:00 Jonathan Gray : > On Wed, Jun 07, 2017 at 10:30:49PM +0800, Chih-Wei Huang wrote: >> 2017-06-07 21:54 GMT+08:00 Jonathan Gray : >> > On Wed, Jun 07, 2017 at 02:45:15PM +0100, Emil Velikov wrote: >> >> On 6 June 2017 at 07:30, Chih-Wei Huang wrote: >> >> >>> These are are

Re: [Mesa-dev] [PATCH 1/2] mesa: add DECL_GLAPIENTRY macro

2017-06-07 Thread Brian Paul
On Wed, Jun 7, 2017 at 7:29 AM, Samuel Pitoiset wrote: > To declare both errors and no errors GL prototypes. > > Signed-off-by: Samuel Pitoiset > --- > src/mesa/main/glheader.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/src/mesa/main/glheader.h b/src/mesa/main/glheader.h > inde

Re: [Mesa-dev] [PATCH] Android: define PIPE_OS_BSD

2017-06-07 Thread Jonathan Gray
On Wed, Jun 07, 2017 at 11:18:53PM +0800, Chih-Wei Huang wrote: > 2017-06-07 22:47 GMT+08:00 Jonathan Gray : > > On Wed, Jun 07, 2017 at 10:30:49PM +0800, Chih-Wei Huang wrote: > >> 2017-06-07 21:54 GMT+08:00 Jonathan Gray : > >> > On Wed, Jun 07, 2017 at 02:45:15PM +0100, Emil Velikov wrote: > >>

Re: [Mesa-dev] [PATCH v2 03/64] mesa: implement ARB_bindless_texture

2017-06-07 Thread Nicolai Hähnle
On 30.05.2017 22:35, Samuel Pitoiset wrote: v2: - s/GLboolean/bool for HandleAllocated - fix _mesa_has_ARB_shader_image_load_store() checks - use u_vector for texture/image handles - fix use of 64-bit handles on 32-bit systems - some cleanups Signed-off-by: Samuel Pitoiset -

Re: [Mesa-dev] [PATCH v2 08/64] mesa: refuse to change textures when a handle is allocated

2017-06-07 Thread Nicolai Hähnle
Patches 1, 2, and 6-8: Reviewed-by: Nicolai Hähnle On 30.05.2017 22:35, Samuel Pitoiset wrote: The ARB_bindless_texture spec says: "The error INVALID_OPERATION is generated by TexImage*, CopyTexImage*, CompressedTexImage*, TexBuffer*, TexParameter*, as well as other functions d

Re: [Mesa-dev] [PATCH v2 24/64] mesa: fix setting uniform variables for bindless samplers/images

2017-06-07 Thread Nicolai Hähnle
On 30.05.2017 22:35, Samuel Pitoiset wrote: This fixes a 64-bit vs 32-bit mismatch when setting an array of bindless samplers. Also, we need to unconditionally set size_mul to 2 when the underlying uniform is bindless. Signed-off-by: Samuel Pitoiset --- src/mesa/main/uniform_query.cpp | 29 ++

[Mesa-dev] [PATCH v4] egl/android: support for EGL_KHR_partial_update

2017-06-07 Thread Harish Krupo
This patch adds support for the EGL_KHR_partial_update extension for android platform. It passes 36/37 tests in dEQP for EGL_KHR_partial_update. 1 test not supported. v2: add fallback for eglSetDamageRegionKHR (Tapani) v3: The native_window_set_surface_damage call is available only from Andro

Re: [Mesa-dev] [PATCH v2 27/64] gallium/util: add new util_dynarray_{shrink, delete} helpers

2017-06-07 Thread Nicolai Hähnle
On 30.05.2017 22:35, Samuel Pitoiset wrote: These helpers will be used for handling dynamic arrays of resident texture/image handles. Signed-off-by: Samuel Pitoiset --- src/gallium/auxiliary/util/u_dynarray.h | 20 1 file changed, 20 insertions(+) diff --git a/src/galli

Re: [Mesa-dev] [PATCH v2 32/64] st/glsl_to_tgsi: add support for bindless samplers

2017-06-07 Thread Nicolai Hähnle
Patches 25, 26, and 28 - 32: Reviewed-by: Nicolai Hähnle On 30.05.2017 22:36, Samuel Pitoiset wrote: v2: - rebased (is_bindless() -> contains_bindless()) - removed dead inst->bindless assignment Signed-off-by: Samuel Pitoiset Reviewed-by: Nicolai Hähnle (v1) Reviewed-by: Marek Olšák

Re: [Mesa-dev] [PATCH v2 33/64] st/glsl_to_tgsi: add support for bindless images

2017-06-07 Thread Nicolai Hähnle
On 30.05.2017 22:36, Samuel Pitoiset wrote: v2: - rebased (is_bindless() -> contains_bindless()) - remove dead inst->bindless assignment - add missing comment Signed-off-by: Samuel Pitoiset Reviewed-by: Marek Olšák (v1) --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 75 ++

Re: [Mesa-dev] [PATCH v2 33/64] st/glsl_to_tgsi: add support for bindless images

2017-06-07 Thread Nicolai Hähnle
On 07.06.2017 18:25, Nicolai Hähnle wrote: On 30.05.2017 22:36, Samuel Pitoiset wrote: v2: - rebased (is_bindless() -> contains_bindless()) - remove dead inst->bindless assignment - add missing comment Signed-off-by: Samuel Pitoiset Reviewed-by: Marek Olšák (v1) --- src/mesa/state

Re: [Mesa-dev] [PATCH v2 00/64] ARB_bindless_texture for RadeonSI

2017-06-07 Thread Marek Olšák
For patches 32 - 36 and 38 - 48: Reviewed-by: Marek Olšák That means all patches from 25 up have been reviewed now, and only two need v3. Marek On Wed, Jun 7, 2017 at 5:14 PM, Marek Olšák wrote: > For patch 37: > > Reviewed-by: Marek Olšák > > Patches 25 - 31 and 37 (gallium interface etc.)

Re: [Mesa-dev] [PATCH 2/8] radeonsi: do EarlyCSEMemSSA LLVM pass

2017-06-07 Thread Marek Olšák
On Mon, Jun 5, 2017 at 10:32 PM, Samuel Pitoiset wrote: > > > On 06/05/2017 06:50 PM, Marek Olšák wrote: >> >> From: Marek Olšák >> >> so that LLVM IR looks like CSE has been run on it. It's also recommended >> by the instruction combining pass. >> >> This also fixes: >> - GL45-CTS.arrays_of_arra

Re: [Mesa-dev] [PATCH 5/8] radeonsi: add a new helper si_get_vs

2017-06-07 Thread Marek Olšák
On Mon, Jun 5, 2017 at 10:32 PM, Samuel Pitoiset wrote: > > > On 06/05/2017 06:50 PM, Marek Olšák wrote: >> >> From: Marek Olšák >> >> --- >> src/gallium/drivers/radeonsi/si_pipe.h | 30 >> ++--- >> src/gallium/drivers/radeonsi/si_state_shaders.c | 6 ++--- >> 2

Re: [Mesa-dev] [PATCH 2/2] radeonsi: move PSIZE and CLIPDIST unique IO indices after GENERIC

2017-06-07 Thread Marek Olšák
Ping On Sat, Jun 3, 2017 at 6:04 PM, Marek Olšák wrote: > From: Marek Olšák > > Heaven LDS usage for LS+HS is below. The masks are "outputs_written" > for LS and HS. Note that 32K is the maximum size. > > Before: > heaven_x64: ls=1f1 tcs=1f1, lds=32K > heaven_x64: ls=31 tcs=31, lds=24K > h

Re: [Mesa-dev] [PATCH 5/5] st/mesa: use texture_barrier before CopyPixels blits where src == dst

2017-06-07 Thread Marek Olšák
On Wed, Jun 7, 2017 at 1:29 PM, Nicolai Hähnle wrote: > On 06.06.2017 11:34, Marek Olšák wrote: >> >> On Tue, Jun 6, 2017 at 4:28 AM, Michel Dänzer wrote: >>> >>> On 06/06/17 01:50 AM, Marek Olšák wrote: From: Marek Olšák radeonsi won't flush caches if set_framebuffer_state d

Re: [Mesa-dev] [PATCH 23/30] i965: Move depth to the new resolve functions

2017-06-07 Thread Jason Ekstrand
On Tue, Jun 6, 2017 at 11:26 PM, Chad Versace wrote: > On Fri 26 May 2017, Jason Ekstrand wrote: > > --- > > src/mesa/drivers/dri/i965/brw_clear.c | 12 ++-- > > src/mesa/drivers/dri/i965/brw_context.c | 7 --- > > src/mesa/drivers/dri/i965/brw_draw.c | 17 +++

Re: [Mesa-dev] [PATCH 2/2] radeonsi: move PSIZE and CLIPDIST unique IO indices after GENERIC

2017-06-07 Thread Nicolai Hähnle
On 07.06.2017 18:44, Marek Olšák wrote: Ping Ah, missed that since I saw you pushed patch #1 already. This one looks good, too. Reviewed-by: Nicolai Hähnle On Sat, Jun 3, 2017 at 6:04 PM, Marek Olšák wrote: From: Marek Olšák Heaven LDS usage for LS+HS is below. The masks are "output

Re: [Mesa-dev] [PATCH 4/8] radeonsi: add a fast path for sRGB enable and no-op framebuffer changes

2017-06-07 Thread Marek Olšák
On Wed, Jun 7, 2017 at 2:09 PM, Nicolai Hähnle wrote: > On 05.06.2017 18:50, Marek Olšák wrote: >> >> From: Marek Olšák >> >> --- >> src/gallium/drivers/radeon/r600_pipe_common.h | 1 + >> src/gallium/drivers/radeon/r600_texture.c | 1 + >> src/gallium/drivers/radeonsi/si_state.c

Re: [Mesa-dev] [PATCH 5/5] st/mesa: use texture_barrier before CopyPixels blits where src == dst

2017-06-07 Thread Nicolai Hähnle
On 07.06.2017 19:32, Marek Olšák wrote: On Wed, Jun 7, 2017 at 1:29 PM, Nicolai Hähnle wrote: On 06.06.2017 11:34, Marek Olšák wrote: On Tue, Jun 6, 2017 at 4:28 AM, Michel Dänzer wrote: On 06/06/17 01:50 AM, Marek Olšák wrote: From: Marek Olšák radeonsi won't flush caches if set_frame

Re: [Mesa-dev] [PATCH 5/5] st/mesa: use texture_barrier before CopyPixels blits where src == dst

2017-06-07 Thread Marek Olšák
On Wed, Jun 7, 2017 at 8:16 PM, Nicolai Hähnle wrote: > On 07.06.2017 19:32, Marek Olšák wrote: >> >> On Wed, Jun 7, 2017 at 1:29 PM, Nicolai Hähnle wrote: >>> >>> On 06.06.2017 11:34, Marek Olšák wrote: On Tue, Jun 6, 2017 at 4:28 AM, Michel Dänzer wrote: > > > O

Re: [Mesa-dev] [PATCH 8/8] radeonsi: don't update dependent states if it has no effect

2017-06-07 Thread Marek Olšák
On Wed, Jun 7, 2017 at 2:34 PM, Nicolai Hähnle wrote: > On 06.06.2017 21:16, Samuel Pitoiset wrote: >> >> I really like the idea. :-) > > > Seconded! > > >> Though, I have two general comments: >> >> 1) I think it would be better to introduce some sort of compare helper >> functions for the differ

Re: [Mesa-dev] [PATCH 2/2] RFC: radeon/compute: Limit allocations for VRAM-based chips to 3/4 VRAM

2017-06-07 Thread Marek Olšák
On Wed, Jun 7, 2017 at 4:10 PM, Aaron Watry wrote: > On Mon, Jun 5, 2017 at 3:07 PM, Marek Olšák wrote: >> Hi Aaron, >> >> Can you make the change in radeon_drm_winsys.c instead? > > Something like the following? > > diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c > b/src/gallium/w

Re: [Mesa-dev] [PATCH] intel: Fix broxton 2x6 way size computation

2017-06-07 Thread Anuj Phogat
On Tue, Jun 6, 2017 at 4:51 PM, Kenneth Graunke wrote: > On Tuesday, June 6, 2017 4:34:36 PM PDT Anuj Phogat wrote: >> This patch is undoing the changes to way size computation >> in broxton 2x6, made by below commit: >> >> Commit: 0d576fbfbe912cf3fb9ab594bb31eb58bccf2138 >> Author: Anuj Phoga

Re: [Mesa-dev] [PATCH 2/8] radeonsi: do EarlyCSEMemSSA LLVM pass

2017-06-07 Thread Samuel Pitoiset
On 06/07/2017 06:31 PM, Marek Olšák wrote: On Mon, Jun 5, 2017 at 10:32 PM, Samuel Pitoiset wrote: On 06/05/2017 06:50 PM, Marek Olšák wrote: From: Marek Olšák so that LLVM IR looks like CSE has been run on it. It's also recommended by the instruction combining pass. This also fixes: -

Re: [Mesa-dev] [PATCH 8/8] radeonsi: don't update dependent states if it has no effect

2017-06-07 Thread Samuel Pitoiset
On 06/07/2017 02:34 PM, Nicolai Hähnle wrote: On 06.06.2017 21:16, Samuel Pitoiset wrote: I really like the idea. :-) Seconded! Though, I have two general comments: 1) I think it would be better to introduce some sort of compare helper functions for the different state changes. Also, fo

Re: [Mesa-dev] [PATCH 7/7] util: Add extern c to u_dynarray.h

2017-06-07 Thread Thomas Helland
2017-06-06 12:38 GMT+02:00 Marek Olšák : > On Tue, Jun 6, 2017 at 12:07 PM, Thomas Helland > wrote: >> 2017-06-05 23:27 GMT+02:00 Marek Olšák : >>> For the series: >>> >>> Reviewed-by: Marek Olšák >>> >>> Marek >>> >> >> As-is? Or with Eric's suggestions of splitting patch 6? >> If it is OK as it

Re: [Mesa-dev] [PATCH 7/7] util: Add extern c to u_dynarray.h

2017-06-07 Thread Marek Olšák
Pushed, thanks! Marek On Wed, Jun 7, 2017 at 8:59 PM, Thomas Helland wrote: > 2017-06-06 12:38 GMT+02:00 Marek Olšák : >> On Tue, Jun 6, 2017 at 12:07 PM, Thomas Helland >> wrote: >>> 2017-06-05 23:27 GMT+02:00 Marek Olšák : For the series: Reviewed-by: Marek Olšák Mar

[Mesa-dev] [PATCH 2/7] radeonsi: disable the patch ID workaround on SI when the patch ID isn't used (v2)

2017-06-07 Thread Marek Olšák
From: Marek Olšák The workaround causes a massive performance decrease on 1-SE parts. (Cape Verde, Hainan, Oland) The performance regression is already part of 17.0 and 17.1. v2: check tess_uses_prim_id Cc: 17.0 17.1 --- src/gallium/drivers/radeonsi/si_pipe.h | 1 + src/gallium/driver

[Mesa-dev] [PATCH 3/7] radeonsi: rename is_compressed_colortex -> color_needs_decompression

2017-06-07 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeonsi/si_descriptors.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c index 7a2b71d..6955b9d 100644 --- a/src/gallium/driver

[Mesa-dev] [PATCH 1/7] radeonsi: don't update dependent states if it has no effect (v2)

2017-06-07 Thread Marek Olšák
From: Marek Olšák This and the previous commit decrease IB sizes and the number of si_update_shaders invocations as follows: IB size si_update_shaders calls Borderlands 2 -10%-27% Deus Ex: MD -5%-11% Talos Principle -8%-30%

[Mesa-dev] [PATCH 5/7] radeonsi: rename depth decompress functions

2017-06-07 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeonsi/si_blit.c | 31 +++ 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_blit.c b/src/gallium/drivers/radeonsi/si_blit.c index 20b08b6..e39ba62 100644 --- a/src/gallium/driv

[Mesa-dev] [PATCH 6/7] gallium/radeon: don't allocate HTILE in a separate buffer

2017-06-07 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/r600/evergreen_state.c| 6 +-- src/gallium/drivers/r600/r600_blit.c | 2 +- src/gallium/drivers/r600/r600_state.c | 6 +-- src/gallium/drivers/radeon/r600_pipe_common.h | 2 +- src/gallium/drivers/radeon/r600_texture.c | 57 +

[Mesa-dev] [PATCH 4/7] radeonsi: rename shader resource decompress masks to their true meaning

2017-06-07 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeonsi/si_blit.c| 12 - src/gallium/drivers/radeonsi/si_descriptors.c | 38 +-- src/gallium/drivers/radeonsi/si_pipe.h| 6 ++--- 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/src/galli

[Mesa-dev] [PATCH 7/7] r600g: set pipe_context::priv = NULL

2017-06-07 Thread Marek Olšák
From: Marek Olšák Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101254 --- src/gallium/drivers/r600/r600_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index 957431a..b938208 100644

[Mesa-dev] [PATCH] vl, omx, va, vdpau, xvmc: don't set the priv pointer in context_create

2017-06-07 Thread Marek Olšák
From: Marek Olšák Unused and radeonsi ignores it anyway. --- src/gallium/auxiliary/vl/vl_winsys_dri3.c | 2 +- src/gallium/state_trackers/omx/vid_dec.c | 2 +- src/gallium/state_trackers/omx/vid_enc.c | 4 ++-- src/gallium/state_trackers/va/context.c | 2 +- src/gallium/state_trackers/vdpau/

Re: [Mesa-dev] [PATCH v2 1/1] radeonsi: Use libdrm to get chipset name

2017-06-07 Thread Marek Olšák
I had noticed you don't have commit access probably, so I pushed the patch. Marek On Wed, Jun 7, 2017 at 2:07 AM, Marek Olšák wrote: > Reviewed-by: Marek Olšák > > Marek > > On Wed, Jun 7, 2017 at 12:21 AM, Samuel Li wrote: >> v2: Add a func pointer to radeon_winsys to support radeon later. >>

[Mesa-dev] [Bug 101334] Any vulkan app seems to freeze the system

2017-06-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101334 Bug ID: 101334 Summary: Any vulkan app seems to freeze the system Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severit

[Mesa-dev] [PATCH 2/2] st/mesa: simplify returning GL_VENDOR

2017-06-07 Thread Marek Olšák
From: Marek Olšák --- src/mesa/state_tracker/st_cb_strings.c | 4 +--- src/mesa/state_tracker/st_context.h| 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_strings.c b/src/mesa/state_tracker/st_cb_strings.c index 99d93a7..85fe5a7 100644 --- a

[Mesa-dev] [PATCH 1/2] st/mesa: remove the "Gallium 0.4 on" prefix from GL_RENDERER

2017-06-07 Thread Marek Olšák
From: Marek Olšák If you want to keep it for your driver, please raise your hand. The prefix will probably have to be added into the driver instead of here. I cringe when I look at my long renderer string: Gallium 0.4 on AMD Radeon R9 Fury Series (DRM 3.17.0 / 4.11.0-staging-01277-gab25a9e, L

Re: [Mesa-dev] [PATCH 2/2] st/mesa: simplify returning GL_VENDOR

2017-06-07 Thread Ilia Mirkin
This creates string lifetime issues... should probably document that the pointer returned by get_vendor and get_name are supposed to last for the lifetime of the screen. On Wed, Jun 7, 2017 at 4:09 PM, Marek Olšák wrote: > From: Marek Olšák > > --- > src/mesa/state_tracker/st_cb_strings.c | 4 +

Re: [Mesa-dev] [PATCH 6/7] gallium/radeon: don't allocate HTILE in a separate buffer

2017-06-07 Thread Samuel Pitoiset
Yeah, this will help bindless a little bit because the winsys overhead becomes high with a huge buffers list. Though, there is not a ton of HTILE buffers. A little comment on patch 4. Patches 3-6 are: Reviewed-by: Samuel Pitoiset On 06/07/2017 09:50 PM, Marek Olšák wrote: From: Marek Olšák

Re: [Mesa-dev] [PATCH 1/7] radeonsi: don't update dependent states if it has no effect (v2)

2017-06-07 Thread Samuel Pitoiset
You don't want to have a static verifier or something for correctness? :) On 06/07/2017 09:50 PM, Marek Olšák wrote: From: Marek Olšák This and the previous commit decrease IB sizes and the number of si_update_shaders invocations as follows: IB size si_update_shaders calls

Re: [Mesa-dev] [PATCH 4/7] radeonsi: rename shader resource decompress masks to their true meaning

2017-06-07 Thread Samuel Pitoiset
On 06/07/2017 09:50 PM, Marek Olšák wrote: From: Marek Olšák --- src/gallium/drivers/radeonsi/si_blit.c| 12 - src/gallium/drivers/radeonsi/si_descriptors.c | 38 +-- src/gallium/drivers/radeonsi/si_pipe.h| 6 ++--- 3 files changed, 28 ins

Re: [Mesa-dev] [PATCH 2/2] st/mesa: simplify returning GL_VENDOR

2017-06-07 Thread Marek Olšák
On Wed, Jun 7, 2017 at 10:12 PM, Ilia Mirkin wrote: > This creates string lifetime issues... should probably document that > the pointer returned by get_vendor and get_name are supposed to last > for the lifetime of the screen. Was the lifetime of the string not always guaranteed? Most drivers u

Re: [Mesa-dev] [PATCH 1/7] radeonsi: don't update dependent states if it has no effect (v2)

2017-06-07 Thread Marek Olšák
On Wed, Jun 7, 2017 at 10:21 PM, Samuel Pitoiset wrote: > You don't want to have a static verifier or something for correctness? :) I don't know how to have a static verifier. The risk of breaking something is high, but it should also be obvious (hopefully). Marek ___

Re: [Mesa-dev] [PATCH 4/7] radeonsi: rename shader resource decompress masks to their true meaning

2017-06-07 Thread Marek Olšák
On Wed, Jun 7, 2017 at 10:22 PM, Samuel Pitoiset wrote: > > > On 06/07/2017 09:50 PM, Marek Olšák wrote: >> >> From: Marek Olšák >> >> --- >> src/gallium/drivers/radeonsi/si_blit.c| 12 - >> src/gallium/drivers/radeonsi/si_descriptors.c | 38 >> +-- >>

Re: [Mesa-dev] [PATCH 2/2] st/mesa: simplify returning GL_VENDOR

2017-06-07 Thread Ilia Mirkin
On Wed, Jun 7, 2017 at 4:22 PM, Marek Olšák wrote: > On Wed, Jun 7, 2017 at 10:12 PM, Ilia Mirkin wrote: >> This creates string lifetime issues... should probably document that >> the pointer returned by get_vendor and get_name are supposed to last >> for the lifetime of the screen. > > Was the l

Re: [Mesa-dev] [PATCH 1/7] radeonsi: don't update dependent states if it has no effect (v2)

2017-06-07 Thread Samuel Pitoiset
On 06/07/2017 10:23 PM, Marek Olšák wrote: On Wed, Jun 7, 2017 at 10:21 PM, Samuel Pitoiset wrote: You don't want to have a static verifier or something for correctness? :) I don't know how to have a static verifier. The risk of breaking something is high, but it should also be obvious (hop

Re: [Mesa-dev] [PATCH 2/2] st/mesa: simplify returning GL_VENDOR

2017-06-07 Thread Marek Olšák
On Wed, Jun 7, 2017 at 10:28 PM, Ilia Mirkin wrote: > On Wed, Jun 7, 2017 at 4:22 PM, Marek Olšák wrote: >> On Wed, Jun 7, 2017 at 10:12 PM, Ilia Mirkin wrote: >>> This creates string lifetime issues... should probably document that >>> the pointer returned by get_vendor and get_name are suppose

  1   2   >