Re: [Mesa-dev] [PATCH] mesa: fix memory leak in arb_fragment_program

2017-04-11 Thread Bartosz Tomczyk
Could you push it for me? On Mon, Apr 10, 2017 at 4:06 AM, Timothy Arceri wrote: > Thanks. > > Reviewed-by: Timothy Arceri > > > On 10/04/17 02:37, Bartosz Tomczyk wrote: > >> --- >> src/mesa/program/arbprogparse.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/src/mesa/program/ar

Re: [Mesa-dev] [PATCH 13/15] radeon: remove duplicate 'const' specifier

2017-04-11 Thread Nils Wallménius
Den 11 apr. 2017 20:00 skrev "Samuel Pitoiset" : Fixes the following Clang warning. In file included from radeon_debug.c:32: ./radeon_common_context.h:500:19: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] extern const char const *radeonVendorString; Signed-off-by:

Re: [Mesa-dev] [PATCH v4] glsl/blob: avoid NULL ptr in prog parameter name

2017-04-11 Thread Timothy Arceri
I've pushed this. Thanks for getting to the bottom of the problem :) ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [RFC PATCH 1/3] gallium: decrease the size of pipe_vertex_buffer - 24 -> 16 bytes

2017-04-11 Thread Brian Paul
On 04/11/2017 02:15 PM, Marek Olšák wrote: From: Marek Olšák New interface: union pipe_buffer_binding { struct pipe_resource *buffer; /**< the actual buffer */ const void *user_buffer; /**< pointer to a user buffer */ }; struct pipe_vertex_buffer { uint16_t stride;/**< strid

Re: [Mesa-dev] [RFC PATCH 26/26] glsl: fix up an assertion in glsl_type::sampler_index()

2017-04-11 Thread Timothy Arceri
On 12/04/17 02:48, Samuel Pitoiset wrote: Used by glsl_to_tgsi. Signed-off-by: Samuel Pitoiset --- src/compiler/glsl_types.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compiler/glsl_types.cpp b/src/compiler/glsl_types.cpp index cf0fe71d1a..6854169646 100644 -

Re: [Mesa-dev] [RFC PATCH 24/26] glsl: link bindless layout qualifiers

2017-04-11 Thread Timothy Arceri
Reviewed-by: Timothy Arceri ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [RFC PATCH 20/26] glsl: use fully_specified_type rule with ast_function_expression

2017-04-11 Thread Timothy Arceri
On 12/04/17 02:48, Samuel Pitoiset wrote: Only ast_fully_specified_type is able to know if the underlying type is bindless or not. Because type_specifier is a subrule of fully_specified_type this shouldn't break anything. This will help for handling explicit conversions like 'sampler2D tex = sam

Re: [Mesa-dev] [RFC PATCH 19/26] glsl: reject bindless samplers/images frag inputs without 'flat'

2017-04-11 Thread Timothy Arceri
On 12/04/17 02:48, Samuel Pitoiset wrote: The ARB_bindless_texture spec says: "Modify Section 4.3.4, Inputs, p. 34" "(modify last paragraph, p. 35, allowing samplers and images as fragment shader inputs) ... Fragment inputs can only be signed and unsigned integers and integer vect

[Mesa-dev] [PATCH 1/2] egl_dri2: Add support for Tizen

2017-04-11 Thread Mun Gwan-gyeong
From: "Mun, Gwan-gyeong" Add platform_tizen.c that supports _EGL_PLATFORM_TIZEN. It works with libtpl-egl (Tizen Porting Layer for egl), libtbm(Tizen Buffer Manager) where back buffers of windows are backed by GEM objects. In Tizen a native window has a queue (tbm_surface_queue) of back buffers

[Mesa-dev] [PATCH 2/2] configure.ac: Add tizen to supported egl platforms

2017-04-11 Thread Mun Gwan-gyeong
From: "Mun, Gwan-gyeong" It checks tpl-egl/libtbm/libtdm packages and defines HAVE_EGL_PLATFORM_TIZEN. This feature is enabled by the config option '--with-egl-platforms=tizen' Signed-off-by: Mun Gwan-gyeong --- configure.ac | 5 + 1 file changed, 5 insertions(+) diff --git a/configure.ac

[Mesa-dev] [PATCH 0/2] Introduce supporting of Tizen to mesa's egl platform

2017-04-11 Thread Mun Gwan-gyeong
Hello, these commit series introduce supporting of Tizen to mesa's egl platform. It is tested on rpi3 with Tizen Platform. Below repository includes packaging info for tizen. https://github.com/elongbug/mesa/tree/tizen_work (this file includes build option for vc4 - https://github.com/elongbu

[Mesa-dev] [PATCH 0/2] Introduce supporting of Tizen to mesa's egl platform

2017-04-11 Thread Mun Gwan-gyeong
Hello, these commit series introduce supporting of Tizen to mesa's egl platform. It is tested on rpi3 with Tizen Platform. Below repository includes packaging info for tizen. https://github.com/elongbug/mesa/tree/tizen_work (this file includes build option for vc4 - https://github.com/elongbu

Re: [Mesa-dev] [RFC PATCH 18/26] glsl: allow bindless samplers/images as vertex shader inputs

2017-04-11 Thread Timothy Arceri
Reviewed-by: Timothy Arceri ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [RFC PATCH 17/26] glsl: allow bindless samplers/images as varying variables

2017-04-11 Thread Timothy Arceri
Reviewed-by: Timothy Arceri ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [Bug 99618] AVX Intrinsics Run in GUI thread only

2017-04-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99618 Bruce Cherniak changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

Re: [Mesa-dev] [RFC PATCH 16/26] glsl: allow image qualifiers inside structures

2017-04-11 Thread Timothy Arceri
Reviewed-by: Timothy Arceri ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [RFC PATCH 15/26] glsl: allow input memory qualifiers for images

2017-04-11 Thread Timothy Arceri
On 12/04/17 02:48, Samuel Pitoiset wrote: The GL_ARB_bindless_texture spec allows images to be declared as shader inputs. Signed-off-by: Samuel Pitoiset --- src/compiler/glsl/ast_type.cpp | 11 +++ 1 file changed, 11 insertions(+) diff --git a/src/compiler/glsl/ast_type.cpp b/src/co

Re: [Mesa-dev] [RFC PATCH 14/26] glsl: do not make bindless image read-only variables

2017-04-11 Thread Timothy Arceri
On 12/04/17 02:48, Samuel Pitoiset wrote: Bindless images can be explicitely converted to and from uvec2 using scalar constructors. Signed-off-by: Samuel Pitoiset --- src/compiler/glsl/ast_to_hir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/glsl/ast_to_h

Re: [Mesa-dev] [RFC PATCH 13/26] glsl: apply image qualifiers to bindless images

2017-04-11 Thread Timothy Arceri
On 12/04/17 02:48, Samuel Pitoiset wrote: The ARB_bindless_texture spec says: "Replace Section 4.1.X, (Images)" "Images may be declared as shader inputs and outputs, as uniform variables, as temporary variables, and as function parameters." Signed-off-by: Samuel Pitoiset --- src/

Re: [Mesa-dev] [RFC PATCH 11/26] glsl: fix up an assertion in ir_texture::set_sampler()

2017-04-11 Thread Timothy Arceri
Patches 10-11: Reviewed-by: Timothy Arceri ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 1/2] radv: Use an offset instead of pointers for immutable samplers.

2017-04-11 Thread Dave Airlie
On 12 April 2017 at 09:16, Bas Nieuwenhuizen wrote: > Makes more sense when we hash the layout for the pipeline cache. For the series: Reviewed-by: Dave Airlie > > Signed-off-by: Bas Nieuwenhuizen > --- > src/amd/common/ac_nir_to_llvm.c | 12 ++- > src/amd/vulkan/radv_descriptor_

Re: [Mesa-dev] [PATCH] radv: Stop shadowing the result in radv_GetQueryPoolResults.

2017-04-11 Thread Dave Airlie
On 12 April 2017 at 08:48, Bas Nieuwenhuizen wrote: > The outer result was referred to, which meant bugs. > > Signed-off-by: Bas Nieuwenhuizen Oops, Reviewed-by: Dave Airlie > --- > src/amd/vulkan/radv_query.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/s

Re: [Mesa-dev] [RFC PATCH 08/26] glsl: select bindless sampler/image types on the fly

2017-04-11 Thread Timothy Arceri
On 12/04/17 02:48, Samuel Pitoiset wrote: At this point, there is enough information to take the decision to replace a sampler/image type by the corresponding bindless one. Signed-off-by: Samuel Pitoiset --- src/compiler/glsl/ast.h | 10 - src/compiler/glsl/ast_to_hir.cpp | 93 +

Re: [Mesa-dev] [RFC PATCH 05/26] glsl: add new glsl_type helpers for bindless sampler/image types

2017-04-11 Thread Timothy Arceri
Patches 2-5: Reviewed-by: Timothy Arceri ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [RFC PATCH 07/26] glsl: process bindless/bound layout qualifiers

2017-04-11 Thread Timothy Arceri
On 12/04/17 02:48, Samuel Pitoiset wrote: This adds bindless_sampler and bound_sampler (and respectively bindless_image and bound_image) to the parser. Signed-off-by: Samuel Pitoiset --- src/compiler/glsl/ast.h | 8 + src/compiler/glsl/ast_to_hir.cpp | 55 ++

Re: [Mesa-dev] [PATCH] sync_file: get rid of internal reference count.

2017-04-11 Thread Dave Airlie
On 12 April 2017 at 09:27, Dave Airlie wrote: > From: Dave Airlie > > sync_file uses the reference count of the file, the internal > kref was never getting moved past 1. oops typoed my send script, thanks Bas for pointing it out. Wrong list. Dave. __

Re: [Mesa-dev] [PATCH 15/15] i965: add missing ir_unop_*/ir_binop_* in visit_leave()

2017-04-11 Thread Timothy Arceri
Reviewed-by: Timothy Arceri On 12/04/17 03:58, Samuel Pitoiset wrote: Fixes the following Clang warnings. brw_fs_channel_expressions.cpp:219:12: warning: enumeration values 'ir_unop_ballot', 'ir_unop_read_first_invocation', and 'ir_binop_read_invocation' not handled in switch [-Wswitch] s

Re: [Mesa-dev] [PATCH 02/15] mesa: remove unused _mesa_unmarshal_BindBufferBase()

2017-04-11 Thread Timothy Arceri
Reviewed-by: Timothy Arceri On 12/04/17 03:58, Samuel Pitoiset wrote: Fixes the following Clang warning. main/marshal.c:209:1: warning: unused function '_mesa_unmarshal_BindBufferBase' [-Wunused-function] _mesa_unmarshal_BindBufferBase(struct gl_context *ctx, const struct marshal_cmd_BindBuf

[Mesa-dev] [PATCH] sync_file: get rid of internal reference count.

2017-04-11 Thread Dave Airlie
From: Dave Airlie sync_file uses the reference count of the file, the internal kref was never getting moved past 1. We can reintroduce this if we decide we need it later. Signed-off-by: Dave Airlie --- drivers/dma-buf/sync_file.c | 13 ++--- include/linux/sync_file.h | 1 - 2 files

[Mesa-dev] [PATCH 2/2] radv: Hash the immutable samplers.

2017-04-11 Thread Bas Nieuwenhuizen
Since the shader code can include them. Signed-off-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_descriptor_set.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/amd/vulkan/radv_descriptor_set.c b/src/amd/vulkan/radv_descriptor_set.c index ba5d5eb75e5..c048a4c7f53 100644 --- a/src/am

[Mesa-dev] [PATCH 1/2] radv: Use an offset instead of pointers for immutable samplers.

2017-04-11 Thread Bas Nieuwenhuizen
Makes more sense when we hash the layout for the pipeline cache. Signed-off-by: Bas Nieuwenhuizen --- src/amd/common/ac_nir_to_llvm.c | 12 ++- src/amd/vulkan/radv_descriptor_set.c | 42 src/amd/vulkan/radv_descriptor_set.h | 10 +++-- src/am

Re: [Mesa-dev] [PATCH 00/15] Clang compiler warning fixes

2017-04-11 Thread Mike Lothian
When trying to test these I notice that even without the patches clover isn't compiling /var/tmp/portage/media-libs/mesa-/work/mesa-/src/gallium/state_trackers/clover/llvm/codegen/common.cpp:132:54: error: ‘Offset’ is not a member of ‘clang::LangAS’

Re: [Mesa-dev] [PATCH 2/9] radv: simplify if statement

2017-04-11 Thread Bas Nieuwenhuizen
On Wed, Apr 12, 2017 at 12:48 AM, Dave Airlie wrote: > On 12 April 2017 at 08:19, Bas Nieuwenhuizen wrote: >> On Wed, Apr 12, 2017 at 12:04 AM, Thomas Hindoe Paaboel Andersen >> wrote: >>> --- >>> src/amd/vulkan/radv_wsi.c | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff -

[Mesa-dev] [PATCH] radv: Stop shadowing the result in radv_GetQueryPoolResults.

2017-04-11 Thread Bas Nieuwenhuizen
The outer result was referred to, which meant bugs. Signed-off-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_query.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/amd/vulkan/radv_query.c b/src/amd/vulkan/radv_query.c index bd293b58e69..fa5a3b6df24 100644 --- a/s

Re: [Mesa-dev] [PATCH 2/9] radv: simplify if statement

2017-04-11 Thread Dave Airlie
On 12 April 2017 at 08:19, Bas Nieuwenhuizen wrote: > On Wed, Apr 12, 2017 at 12:04 AM, Thomas Hindoe Paaboel Andersen > wrote: >> --- >> src/amd/vulkan/radv_wsi.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/src/amd/vulkan/radv_wsi.c b/src/amd/vulkan/radv_wsi.c >>

Re: [Mesa-dev] [RFC PATCH 3/3] gallium: remove pipe_index_buffer and set_index_buffer

2017-04-11 Thread Marek Olšák
On Wed, Apr 12, 2017 at 12:27 AM, Roland Scheidegger wrote: > As mentioned before, I'm not exactly thrilled by this (as I just happen > to like the old interface), but could live with it for GL's performance > sake, if others like that. I suppose though you'd have quite some code > to adapt... > A

Re: [Mesa-dev] [RFC PATCH 3/3] gallium: remove pipe_index_buffer and set_index_buffer

2017-04-11 Thread Roland Scheidegger
As mentioned before, I'm not exactly thrilled by this (as I just happen to like the old interface), but could live with it for GL's performance sake, if others like that. I suppose though you'd have quite some code to adapt... Are those performance numbers with just this patch or all 3? Roland A

Re: [Mesa-dev] [PATCH 1/9] radv: remove redundant returns

2017-04-11 Thread Bas Nieuwenhuizen
Patches 1 & 6 are Reviewed-by: Bas Nieuwenhuizen On Wed, Apr 12, 2017 at 12:03 AM, Thomas Hindoe Paaboel Andersen wrote: > From 1811ccf1 > --- > src/amd/vulkan/radv_device.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c >

Re: [Mesa-dev] [PATCH 2/9] radv: simplify if statement

2017-04-11 Thread Bas Nieuwenhuizen
On Wed, Apr 12, 2017 at 12:04 AM, Thomas Hindoe Paaboel Andersen wrote: > --- > src/amd/vulkan/radv_wsi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/amd/vulkan/radv_wsi.c b/src/amd/vulkan/radv_wsi.c > index b8999f4..37cb322 100644 > --- a/src/amd/vulkan/radv_wsi.

[Mesa-dev] [PATCH 7/9] intel: remove null check before free

2017-04-11 Thread Thomas Hindoe Paaboel Andersen
--- src/intel/tools/aubinator_error_decode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/intel/tools/aubinator_error_decode.c b/src/intel/tools/aubinator_error_decode.c index 2e62369..5df8aaf 100644 --- a/src/intel/tools/aubinator_error_decode.c +++ b/src/intel/tools

[Mesa-dev] [PATCH 5/9] i965: remove unused context

2017-04-11 Thread Thomas Hindoe Paaboel Andersen
--- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 2 -- src/mesa/drivers/dri/i965/intel_pixel_draw.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index 81e2d6e..5d5c77f 100644 --- a/src/mesa/

[Mesa-dev] [PATCH 8/9] st/mesa: remove null check before free

2017-04-11 Thread Thomas Hindoe Paaboel Andersen
--- src/mesa/state_tracker/st_cb_texture.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index 99c59f7..73f784d 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/

[Mesa-dev] [PATCH 4/9] mesa: fix misleading indentation

2017-04-11 Thread Thomas Hindoe Paaboel Andersen
--- src/mesa/main/shaderapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 187475f..9efb2e0 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -1110,7 +1110,7 @@ _mesa_link_program(struct gl_c

[Mesa-dev] [PATCH 9/9] util/disk_cache: remove null check before free

2017-04-11 Thread Thomas Hindoe Paaboel Andersen
--- src/util/disk_cache.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/util/disk_cache.c b/src/util/disk_cache.c index d9de8ef..93fb1f5 100644 --- a/src/util/disk_cache.c +++ b/src/util/disk_cache.c @@ -891,10 +891,8 @@ cache_put(void *job, int thread_in

[Mesa-dev] [PATCH 3/9] anv/image: indentation fix

2017-04-11 Thread Thomas Hindoe Paaboel Andersen
--- src/intel/vulkan/anv_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index cf34dbe..9bf446a 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -183,7 +183,7 @@ make_surface(cons

[Mesa-dev] [PATCH 6/9] radv: remove null check before free

2017-04-11 Thread Thomas Hindoe Paaboel Andersen
--- src/amd/vulkan/radv_pipeline.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index cf11362..e3eacf3 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -585,8 +585,7 @

[Mesa-dev] [PATCH 1/9] radv: remove redundant returns

2017-04-11 Thread Thomas Hindoe Paaboel Andersen
From 1811ccf1 --- src/amd/vulkan/radv_device.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 5f14394..9138a00 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -749,7 +749,6 @@ void radv_GetPhysi

[Mesa-dev] [PATCH 2/9] radv: simplify if statement

2017-04-11 Thread Thomas Hindoe Paaboel Andersen
--- src/amd/vulkan/radv_wsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_wsi.c b/src/amd/vulkan/radv_wsi.c index b8999f4..37cb322 100644 --- a/src/amd/vulkan/radv_wsi.c +++ b/src/amd/vulkan/radv_wsi.c @@ -210,7 +210,7 @@ radv_wsi_image_create(VkDevice d

[Mesa-dev] Trivial code cleanups

2017-04-11 Thread Thomas Hindoe Paaboel Andersen
A mix of fixes for static analysis warnings, recent indentation mistakes, and unnecessary null checks before free. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 1/2] radv: Set query availability bit even if we don't wait.

2017-04-11 Thread Bas Nieuwenhuizen
Signed-off-by: Bas Nieuwenhuizen Fixes: 8475a14302e ("radv: Implement pipeline statistics queries.") --- src/amd/vulkan/radv_query.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/amd/vulkan/radv_query.c b/src/amd/vulkan/radv_query.c index 07cb6404149..9f54287c363

[Mesa-dev] [PATCH 2/2] radv: Return VK_NOT_READY if the query results are not available.

2017-04-11 Thread Bas Nieuwenhuizen
Signed-off-by: Bas Nieuwenhuizen Fixes: 8475a14302e ("radv: Implement pipeline statistics queries.") --- src/amd/vulkan/radv_query.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/amd/vulkan/radv_query.c b/src/amd/vulkan/radv_query.c index 9f54287c363..bd293b58e69 100644 --- a/src/

Re: [Mesa-dev] [PATCH 8/8] i965/drm: Make brw_emit_reloc take a uint64_t target_offset.

2017-04-11 Thread Jason Ekstrand
On Tue, Apr 11, 2017 at 12:59 PM, Daniel Vetter wrote: > On Tue, Apr 11, 2017 at 07:59:18PM +0100, Chris Wilson wrote: > > On Tue, Apr 11, 2017 at 09:02:51AM -0700, Kenneth Graunke wrote: > > > If we have buffers larger than 4GB, then target_offset will need to > > > become a 64-bit value. Delta

Re: [Mesa-dev] [PATCH 8/8] i965/drm: Make brw_emit_reloc take a uint64_t target_offset.

2017-04-11 Thread Kenneth Graunke
On Tuesday, April 11, 2017 11:59:18 AM PDT Chris Wilson wrote: > On Tue, Apr 11, 2017 at 09:02:51AM -0700, Kenneth Graunke wrote: > > If we have buffers larger than 4GB, then target_offset will need to > > become a 64-bit value. Delta is only a __u32 though, so we downcast. > > > > Suggested by C

Re: [Mesa-dev] [RFC PATCH 2/3] gallium: separate indirect stuff from pipe_draw_info - 80 -> 56 bytes

2017-04-11 Thread Roland Scheidegger
I suppose why not... Though if you're really concerned about a couple bytes here for the simple case, you could probably make streamout part of the indirect case too (or call it "extended" then) and save another 8 bytes even... Roland Am 11.04.2017 um 22:15 schrieb Marek Olšák: > From: Marek Olšá

Re: [Mesa-dev] [RFC PATCH 1/3] gallium: decrease the size of pipe_vertex_buffer - 24 -> 16 bytes

2017-04-11 Thread Roland Scheidegger
This looks ok to me (though I hope uint16_t for stride isn't a problem). Although it doesn't save all that much... Roland Am 11.04.2017 um 22:15 schrieb Marek Olšák: > From: Marek Olšák > > New interface: > > union pipe_buffer_binding { >struct pipe_resource *buffer; /**< the actual buffe

Re: [Mesa-dev] [PATCH v2 06/15] draw: remove unused wideline_stage()

2017-04-11 Thread Roland Scheidegger
You could remove the half_line_width in the struct wideline_stage too while you're at it - I think the whole reason why the wideline_stage() function existed in the first place was to have easy access to that variable. But either way, Reviewed-by: Roland Scheidegger Am 11.04.2017 um 21:58 schrieb

Re: [Mesa-dev] [PATCH v2 11/15] llvmpipe: remove unused subpixel_snap() and fixed_to_float()

2017-04-11 Thread Roland Scheidegger
Reviewed-by: Roland Scheidegger Am 11.04.2017 um 21:59 schrieb Samuel Pitoiset: > Fixes the following Clang warnings. > > lp_setup_tri.c:55:1: warning: unused function 'subpixel_snap' > [-Wunused-function] > subpixel_snap(float a) > ^ > lp_setup_tri.c:61:1: warning: unused function 'fixed_to_fl

Re: [Mesa-dev] [PATCH] radv: Disable primitive restart for non-indexed draws

2017-04-11 Thread Bas Nieuwenhuizen
So I think we need to reset both command buffer states (the enable and the index) when we call a secondary command buffer. With that fixed, this patch is Reviewed-by: Bas Nieuwenhuizen On Tue, Apr 11, 2017 at 3:30 PM, Alex Smith wrote: > According to the Vulkan spec, VkPipelineInputAssemblySta

Re: [Mesa-dev] [RFC PATCH 06/26] glsl: add new 'bindless' parameter to get_{sampler, image}_instance()

2017-04-11 Thread Samuel Pitoiset
On 04/11/2017 07:28 PM, Ilia Mirkin wrote: On Tue, Apr 11, 2017 at 12:48 PM, Samuel Pitoiset wrote: For replacing sampler/image types to the corresponding bindless type, it's convenient to re-use get_{sampler,image}_instance() instead of doing a one-by-one comparison. Signed-off-by: Samuel P

[Mesa-dev] [PATCH v4] glsl/blob: avoid NULL ptr in prog parameter name

2017-04-11 Thread Gregory Hainaut
Context: _mesa_add_parameter is sometimes[0] called with a NULL name as a mean of an unnamed parameter. Allowing NULL pointer as a name means that it must be NULL checked each access. So far it isn't always[1] true. Parameter name is only used for debug purpose (printf) and to lookup the index/lo

[Mesa-dev] [RFC PATCH 3/3] gallium: remove pipe_index_buffer and set_index_buffer

2017-04-11 Thread Marek Olšák
From: Marek Olšák pipe_draw_info::indexed is replaced with index_size. index_size == 0 means non-indexed. Instead of pipe_index_buffer::offset, pipe_draw_info::start is used. For indexed indirect draws, pipe_draw_info::start is added to the indirect start. This is the only case when "start" affe

[Mesa-dev] [RFC PATCH 2/3] gallium: separate indirect stuff from pipe_draw_info - 80 -> 56 bytes

2017-04-11 Thread Marek Olšák
From: Marek Olšák For faster initialization of non-indirect draws. --- src/gallium/include/pipe/p_state.h | 67 -- 1 file changed, 35 insertions(+), 32 deletions(-) diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h index 95

[Mesa-dev] [RFC PATCH 1/3] gallium: decrease the size of pipe_vertex_buffer - 24 -> 16 bytes

2017-04-11 Thread Marek Olšák
From: Marek Olšák New interface: union pipe_buffer_binding { struct pipe_resource *buffer; /**< the actual buffer */ const void *user_buffer; /**< pointer to a user buffer */ }; struct pipe_vertex_buffer { uint16_t stride;/**< stride to same attrib in next vertex, in bytes */

[Mesa-dev] [PATCH 1/2] st/mesa: minor optimization in st_DrawBuffers()

2017-04-11 Thread Brian Paul
We only do on-demand renderbuffer allocation for window-system FBOs, not user-created FBOs. So put the loop inside a conditional. Plus, add some comments. No piglit regressions. --- src/mesa/state_tracker/st_cb_fbo.c | 24 1 file changed, 16 insertions(+), 8 deletions(-

[Mesa-dev] [PATCH 2/2] st/mesa: add some _mesa_is_winsys_fbo() assertions

2017-04-11 Thread Brian Paul
A few functions related to FBOs/renderbuffers should only be used with window-system buffers, not user-created FBOs. Assert for that. Add additional comments. No piglit regressions. --- src/mesa/state_tracker/st_cb_fbo.c | 1 + src/mesa/state_tracker/st_manager.c | 10 -- 2 files chang

Re: [Mesa-dev] [PATCH 11/15] llvmpipe: remove unused subpixel_snap() and fixed_to_float()

2017-04-11 Thread Samuel Pitoiset
You are right, my fault. On 04/11/2017 08:31 PM, Roland Scheidegger wrote: subpixel_snap is very much used (fixed_to_float, not so much), so you can't get rid of it. If you want you can place it into a #if !defined(PIPE_ARCH_SSE) clause though... Roland Am 11.04.2017 um 19:58 schrieb Samuel Pi

[Mesa-dev] [PATCH v2 11/15] llvmpipe: remove unused subpixel_snap() and fixed_to_float()

2017-04-11 Thread Samuel Pitoiset
Fixes the following Clang warnings. lp_setup_tri.c:55:1: warning: unused function 'subpixel_snap' [-Wunused-function] subpixel_snap(float a) ^ lp_setup_tri.c:61:1: warning: unused function 'fixed_to_float' [-Wunused-function] fixed_to_float(int a) ^ v2: - do not remove subpixel_snap() (use !PIP

Re: [Mesa-dev] [PATCH 8/8] i965/drm: Make brw_emit_reloc take a uint64_t target_offset.

2017-04-11 Thread Daniel Vetter
On Tue, Apr 11, 2017 at 07:59:18PM +0100, Chris Wilson wrote: > On Tue, Apr 11, 2017 at 09:02:51AM -0700, Kenneth Graunke wrote: > > If we have buffers larger than 4GB, then target_offset will need to > > become a 64-bit value. Delta is only a __u32 though, so we downcast. > > > > Suggested by Ch

[Mesa-dev] [PATCH v2 06/15] draw: remove unused wideline_stage()

2017-04-11 Thread Samuel Pitoiset
Fixes the following Clang warning. draw/draw_pipe_wide_line.c:48:38: warning: unused function 'wideline_stage' [-Wunused-function] static inline struct wideline_stage *wideline_stage( struct draw_stage *stage ) ^ 1 warning generated. v2: - remove commented co

Re: [Mesa-dev] [PATCH 00/12] swr: update rasterizer

2017-04-11 Thread Cherniak, Bruce
Entire set Reviewed-by: Bruce Cherniak > On Apr 10, 2017, at 11:45 AM, Tim Rowley wrote: > > Highlights; compile time fix, simd16 work, code cleanup. > > Tim Rowley (12): > swr: [rasterizer core] Reduce templates to speed compile > swr: [rasterizer core] Multisample sample position setup cha

Re: [Mesa-dev] [PATCH] anv: Limit VkDeviceMemory objects to 2GB

2017-04-11 Thread Jason Ekstrand
On Tue, Apr 11, 2017 at 11:27 AM, Chris Wilson wrote: > On Tue, Apr 11, 2017 at 10:58:41AM -0700, Jason Ekstrand wrote: > > Cc: "Juan A. Suárez" > > --- > > src/intel/vulkan/anv_device.c | 17 + > > 1 file changed, 17 insertions(+) > > > > diff --git a/src/intel/vulkan/anv_devic

Re: [Mesa-dev] [PATCH 4/4] radv: Implement pipeline statistics queries.

2017-04-11 Thread Michael Schellenberger Costa
Hi Bas, it seems like this junk + nir_intrinsic_instr *store = nir_intrinsic_instr_create(b.shader, nir_intrinsic_store_ssbo); + store->src[0] = nir_src_for_ssa(available); + store->src[1] = nir_src_for_ssa(&dst_buf->dest.ssa); + store->src[2] = nir_src_for_ssa(nir_iadd(

Re: [Mesa-dev] [PATCH 8/8] i965/drm: Make brw_emit_reloc take a uint64_t target_offset.

2017-04-11 Thread Chris Wilson
On Tue, Apr 11, 2017 at 09:02:51AM -0700, Kenneth Graunke wrote: > If we have buffers larger than 4GB, then target_offset will need to > become a 64-bit value. Delta is only a __u32 though, so we downcast. > > Suggested by Chris Wilson. > --- > src/mesa/drivers/dri/i965/intel_batchbuffer.c | 4 +

Re: [Mesa-dev] [PATCH 06/15] draw: remove unused wideline_stage()

2017-04-11 Thread Roland Scheidegger
Note there's commented out code which uses it. So either get rid of that too, plus whatever was in that stage (half_line_width), or keep it, otherwise it's just less obvious these things aren't used. Roland Am 11.04.2017 um 19:58 schrieb Samuel Pitoiset: > Fixes the following Clang warning. > >

Re: [Mesa-dev] [PATCH 11/15] llvmpipe: remove unused subpixel_snap() and fixed_to_float()

2017-04-11 Thread Roland Scheidegger
subpixel_snap is very much used (fixed_to_float, not so much), so you can't get rid of it. If you want you can place it into a #if !defined(PIPE_ARCH_SSE) clause though... Roland Am 11.04.2017 um 19:58 schrieb Samuel Pitoiset: > Fixes the following Clang warnings. > > lp_setup_tri.c:55:1: warnin

Re: [Mesa-dev] [PATCH 05/15] draw: remove unused overflow()

2017-04-11 Thread Roland Scheidegger
Reviewed-by: Roland Scheidegger Am 11.04.2017 um 19:58 schrieb Samuel Pitoiset: > Fixes the following Clang warning. > > draw/draw_pipe_vbuf.c:102:1: warning: unused function 'overflow' > [-Wunused-function] > overflow( void *map, void *ptr, unsigned bytes, unsigned bufsz ) > ^ > 1 warning gene

Re: [Mesa-dev] [PATCH] anv: Limit VkDeviceMemory objects to 2GB

2017-04-11 Thread Chris Wilson
On Tue, Apr 11, 2017 at 10:58:41AM -0700, Jason Ekstrand wrote: > Cc: "Juan A. Suárez" > --- > src/intel/vulkan/anv_device.c | 17 + > 1 file changed, 17 insertions(+) > > diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c > index 35ef4c4..b24c739 100644 >

[Mesa-dev] [PATCH v3] anv: Limit VkDeviceMemory objects to 2GB

2017-04-11 Thread Jason Ekstrand
v2 (Jason Ekstrand): - Limit to 2GB instead of 4GB v3 (Jason Ekstrand): - Fix the build by using pAllocateInfo instead of pAllocationInfo (not sure how that happened). - Return vK_ERROR_OUT_OF_DEVICE_MEMORY (Thanks Ilia!) Cc: "Juan A. Suárez" --- src/intel/vulkan/anv_device.c | 20 +++

Re: [Mesa-dev] [PATCH 00/15] Clang compiler warning fixes

2017-04-11 Thread Brian Paul
On 04/11/2017 11:58 AM, Samuel Pitoiset wrote: Noticed while building my whole ARB_bindless_texture work to avoid missing switch cases, etc. This series doesn't fix all warnings, just the easy ones. Please, review! Thanks. For 1-14, Reviewed-by: Brian Paul -Brian Samuel Pitoiset (15):

Re: [Mesa-dev] [PATCH] anv: Limit VkDeviceMemory objects to 2GB

2017-04-11 Thread Jason Ekstrand
On Tue, Apr 11, 2017 at 11:03 AM, Ilia Mirkin wrote: > On Tue, Apr 11, 2017 at 1:58 PM, Jason Ekstrand > wrote: > > Cc: "Juan A. Suárez" > > --- > > src/intel/vulkan/anv_device.c | 17 + > > 1 file changed, 17 insertions(+) > > > > diff --git a/src/intel/vulkan/anv_device.c > b

Re: [Mesa-dev] [PATCH] anv: Limit VkDeviceMemory objects to 2GB

2017-04-11 Thread Ilia Mirkin
On Tue, Apr 11, 2017 at 1:58 PM, Jason Ekstrand wrote: > Cc: "Juan A. Suárez" > --- > src/intel/vulkan/anv_device.c | 17 + > 1 file changed, 17 insertions(+) > > diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c > index 35ef4c4..b24c739 100644 > --- a/sr

[Mesa-dev] [PATCH] anv: Limit VkDeviceMemory objects to 2GB

2017-04-11 Thread Jason Ekstrand
Cc: "Juan A. Suárez" --- src/intel/vulkan/anv_device.c | 17 + 1 file changed, 17 insertions(+) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 35ef4c4..4aa0340 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -153

Re: [Mesa-dev] [PATCH v2 2/4] egl, dri: Propagate context priority hint to driver->CreateContext

2017-04-11 Thread Ben Widawsky
On 17-04-11 17:11:55, Chris Wilson wrote: Jump through the layers of abstraction between egl and dri in order to feed the context priority attribute through to the backend. This requires us to read the value from the base _egl_context, convert it to a DRI attribute, parse it again in the generic

[Mesa-dev] [PATCH 13/15] radeon: remove duplicate 'const' specifier

2017-04-11 Thread Samuel Pitoiset
Fixes the following Clang warning. In file included from radeon_debug.c:32: ./radeon_common_context.h:500:19: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] extern const char const *radeonVendorString; Signed-off-by: Samuel Pitoiset --- src/mesa/drivers/dri/radeo

[Mesa-dev] [PATCH 14/15] st/mesa: fix wrong comparison in update_framebuffer_state()

2017-04-11 Thread Samuel Pitoiset
state_tracker/st_atom_framebuffer.c:208:27: warning: comparison of constant 4294967295 with expression of type 'uint16_t' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare] if (framebuffer->width == UINT_MAX) ~~ ^ state_tracke

[Mesa-dev] [PATCH 11/15] llvmpipe: remove unused subpixel_snap() and fixed_to_float()

2017-04-11 Thread Samuel Pitoiset
Fixes the following Clang warnings. lp_setup_tri.c:55:1: warning: unused function 'subpixel_snap' [-Wunused-function] subpixel_snap(float a) ^ lp_setup_tri.c:61:1: warning: unused function 'fixed_to_float' [-Wunused-function] fixed_to_float(int a) ^ Signed-off-by: Samuel Pitoiset --- src/gall

[Mesa-dev] [PATCH 05/15] draw: remove unused overflow()

2017-04-11 Thread Samuel Pitoiset
Fixes the following Clang warning. draw/draw_pipe_vbuf.c:102:1: warning: unused function 'overflow' [-Wunused-function] overflow( void *map, void *ptr, unsigned bytes, unsigned bufsz ) ^ 1 warning generated. Signed-off-by: Samuel Pitoiset --- src/gallium/auxiliary/draw/draw_pipe_vbuf.c | 8 ---

[Mesa-dev] [PATCH 15/15] i965: add missing ir_unop_*/ir_binop_* in visit_leave()

2017-04-11 Thread Samuel Pitoiset
Fixes the following Clang warnings. brw_fs_channel_expressions.cpp:219:12: warning: enumeration values 'ir_unop_ballot', 'ir_unop_read_first_invocation', and 'ir_binop_read_invocation' not handled in switch [-Wswitch] switch (expr->operation) { ^ 1 warning generated. Signed-off-by

[Mesa-dev] [PATCH 12/15] svga: remove unused vmw_dri1_intersect_src_bbox()

2017-04-11 Thread Samuel Pitoiset
Fixes the following Clang warning. vmw_screen_dri.c:130:1: warning: unused function 'vmw_dri1_intersect_src_bbox' [-Wunused-function] vmw_dri1_intersect_src_bbox(struct drm_clip_rect *dst, ^ 1 warning generated. Signed-off-by: Samuel Pitoiset --- src/gallium/winsys/svga/drm/vmw_screen_dri.c |

[Mesa-dev] [PATCH 10/15] softpipe: remove unused sp_exec_fragment_shader()

2017-04-11 Thread Samuel Pitoiset
Fixes the following Clang warning. sp_fs_exec.c:56:1: warning: unused function 'sp_exec_fragment_shader' [-Wunused-function] sp_exec_fragment_shader(const struct sp_fragment_shader_variant *var) ^ 1 warning generated. Signed-off-by: Samuel Pitoiset --- src/gallium/drivers/softpipe/sp_fs_exec.c

[Mesa-dev] [PATCH 07/15] trace: remove some unused trace_dump_tag*() functions

2017-04-11 Thread Samuel Pitoiset
Fixes the following Clang warnings. tr_dump.c:137:1: warning: unused function 'trace_dump_tag' [-Wunused-function] trace_dump_tag(const char *name) ^ tr_dump.c:168:1: warning: unused function 'trace_dump_tag_begin2' [-Wunused-function] trace_dump_tag_begin2(const char *name, ^ tr_dump.c:187:1: wa

[Mesa-dev] [PATCH 08/15] softpipe: remove unused get_texel_quad_2d()

2017-04-11 Thread Samuel Pitoiset
Fixes the following Clang warning. sp_tex_sample.c:802:1: warning: unused function 'get_texel_quad_2d' [-Wunused-function] get_texel_quad_2d(const struct sp_sampler_view *sp_sview, ^ CC sp_tile_cache.lo 1 warning generated. Signed-off-by: Samuel Pitoiset --- src/gallium/drivers/softpip

[Mesa-dev] [PATCH 09/15] softpipe: remove unused quad_shade_stage()

2017-04-11 Thread Samuel Pitoiset
Fixes the following Clang warning. sp_quad_fs.c:60:1: warning: unused function 'quad_shade_stage' [-Wunused-function] quad_shade_stage(struct quad_stage *qs) ^ 1 warning generated. Signed-off-by: Samuel Pitoiset --- src/gallium/drivers/softpipe/sp_quad_fs.c | 8 1 file changed, 8 dele

[Mesa-dev] [PATCH 01/15] virgl: add missing PIPE_CAP_DOUBLES

2017-04-11 Thread Samuel Pitoiset
Fixes the following Clang warning. virgl_screen.c:60:12: warning: enumeration value 'PIPE_CAP_DOUBLES' not handled in switch [-Wswitch] switch (param) { ^ 1 warning generated. Signed-off-by: Samuel Pitoiset --- src/gallium/drivers/virgl/virgl_screen.c | 1 + 1 file changed, 1 ins

[Mesa-dev] [PATCH 04/15] mesa: remove some unused functions in the perf monitor area

2017-04-11 Thread Samuel Pitoiset
Fixes the following Clang warnings. main/performance_monitor.c:157:1: warning: unused function 'index_to_queryid' [-Wunused-function] index_to_queryid(GLuint index) ^ main/performance_monitor.c:163:1: warning: unused function 'queryid_valid' [-Wunused-function] queryid_valid(const struct gl_cont

[Mesa-dev] [PATCH 06/15] draw: remove unused wideline_stage()

2017-04-11 Thread Samuel Pitoiset
Fixes the following Clang warning. draw/draw_pipe_wide_line.c:48:38: warning: unused function 'wideline_stage' [-Wunused-function] static inline struct wideline_stage *wideline_stage( struct draw_stage *stage ) ^ 1 warning generated. Signed-off-by: Samuel Pit

[Mesa-dev] [PATCH 03/15] mesa: remove unused clamp_float_to_uint() and clamp_half_to_uint()

2017-04-11 Thread Samuel Pitoiset
Fixes the following Clang warnings. main/pack.c:470:1: warning: unused function 'clamp_float_to_uint' [-Wunused-function] clamp_float_to_uint(GLfloat f) ^ main/pack.c:477:1: warning: unused function 'clamp_half_to_uint' [-Wunused-function] clamp_half_to_uint(GLhalfARB h) ^ 2 warnings generated.

[Mesa-dev] [PATCH 02/15] mesa: remove unused _mesa_unmarshal_BindBufferBase()

2017-04-11 Thread Samuel Pitoiset
Fixes the following Clang warning. main/marshal.c:209:1: warning: unused function '_mesa_unmarshal_BindBufferBase' [-Wunused-function] _mesa_unmarshal_BindBufferBase(struct gl_context *ctx, const struct marshal_cmd_BindBufferBase *cmd) ^ 1 warning generated. Signed-off-by: Samuel Pitoiset ---

[Mesa-dev] [PATCH 00/15] Clang compiler warning fixes

2017-04-11 Thread Samuel Pitoiset
Noticed while building my whole ARB_bindless_texture work to avoid missing switch cases, etc. This series doesn't fix all warnings, just the easy ones. Please, review! Thanks. Samuel Pitoiset (15): virgl: add missing PIPE_CAP_DOUBLES mesa: remove unused _mesa_unmarshal_BindBufferBase() mesa

[Mesa-dev] [PATCH] anv: Limit VkDeviceMemory objects to 2GB

2017-04-11 Thread Jason Ekstrand
Cc: "Juan A. Suárez" --- src/intel/vulkan/anv_device.c | 17 + 1 file changed, 17 insertions(+) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 35ef4c4..b24c739 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -153

  1   2   >