Re: [Mesa-dev] EGL/android: pbuffer implementation.

2016-11-21 Thread Tapani Pälli
On 11/22/2016 09:15 AM, Xu, Randy wrote: Hi, Tapani Can you share your detailed CTS result summary and logs? We will double check it. Btw, we do the CTS test on SKL GT2 and android-ia. Sure, I'll send you the log file. I'm running on Android-IA as well. Thanks, Randy -Original Messa

[Mesa-dev] [PATCH] mesa/glsl: remove unused uses_builtin_functions field

2016-11-21 Thread Timothy Arceri
This has been unused since 943b69cddd --- src/compiler/glsl/glsl_parser_extras.cpp | 1 - src/mesa/main/ff_fragment_shader.cpp | 1 - src/mesa/main/mtypes.h | 1 - 3 files changed, 3 deletions(-) diff --git a/src/compiler/glsl/glsl_parser_extras.cpp b/src/compiler/glsl/glsl

Re: [Mesa-dev] [PATCH 1/4] radv/meta: cleanup resolve vertex state emission

2016-11-21 Thread Bas Nieuwenhuizen
For the series: Reviewed-by: Bas Nieuwenhuizen On Tue, Nov 22, 2016 at 7:34 AM, Dave Airlie wrote: > From: Dave Airlie > > For the hw resolve there is no need to emit any sort > of texture coordinates, so drop them all in the meta path. > > Signed-off-by: Dave Airlie > --- > src/amd/vulkan/ra

Re: [Mesa-dev] [PATCH] radv: add support for shader stats dump

2016-11-21 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Tue, Nov 22, 2016 at 5:44 AM, Dave Airlie wrote: > From: Dave Airlie > > I've started working on a shader-db alike for Vulkan, > it's based on vktrace and it records pipelines, this > adds support to dump the shader stats exactly like > radeonsi does, so I can

Re: [Mesa-dev] EGL/android: pbuffer implementation.

2016-11-21 Thread Tomasz Figa
On Tue, Nov 22, 2016 at 3:15 PM, Liu, Zhiquan wrote: > Hi Tomasz, > > Thanks for you commends. >> > >> >> Looks like this patch has already landed, but please let me try to >> confirm some things here anyway. Would you mind keeping me on CC for >> any future patches for the EGL/Android module? (I

Re: [Mesa-dev] EGL/android: pbuffer implementation.

2016-11-21 Thread Tapani Pälli
On 11/22/2016 08:39 AM, Xu, Randy wrote: Hi ,Tapani With this pbuffer patch, only three EGL dEQP failure remained on Android platform , they are under investigation now dEQP-EGL.functional.image.create#gles2_renderbuffer_depth16_depth_buffer fail due to "=== with config {glformat=rgbad2

[Mesa-dev] [PATCH 3/4] radv/ac: add implementation of load_sample_pos intrinsic.

2016-11-21 Thread Dave Airlie
From: Dave Airlie This fixes a bunch of crashes in CTS tests looking for this. Signed-off-by: Dave Airlie --- src/amd/common/ac_nir_to_llvm.c | 12 1 file changed, 12 insertions(+) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index 17cefea..741a0

[Mesa-dev] [PATCH 1/4] radv/meta: cleanup resolve vertex state emission

2016-11-21 Thread Dave Airlie
From: Dave Airlie For the hw resolve there is no need to emit any sort of texture coordinates, so drop them all in the meta path. Signed-off-by: Dave Airlie --- src/amd/vulkan/radv_meta_resolve.c | 49 ++ 1 file changed, 2 insertions(+), 47 deletions(-) dif

[Mesa-dev] [PATCH 4/4] radv: fix sample id loading

2016-11-21 Thread Dave Airlie
From: Dave Airlie The sample id is packed into bits 8-12, so adjust things properly. Signed-off-by: Dave Airlie --- src/amd/common/ac_nir_to_llvm.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to

[Mesa-dev] [PATCH 2/4] radv/ac: cleanup ddxy emission

2016-11-21 Thread Dave Airlie
From: Dave Airlie This cleans up the ddxy emission along the same lines as radeonsi. It also means we don't use LDS on VI chips we use the dspermute interface, it also removes some duplicated code. Signed-off-by: Dave Airlie --- src/amd/common/ac_nir_to_llvm.c | 136 +--

Re: [Mesa-dev] EGL/android: pbuffer implementation.

2016-11-21 Thread Tapani Pälli
On 11/22/2016 08:08 AM, Tapani Pälli wrote: On 11/22/2016 08:02 AM, Tomasz Figa wrote: On Tue, Nov 22, 2016 at 2:44 PM, Tapani Pälli wrote: On 11/21/2016 04:15 PM, Emil Velikov wrote: On 21 November 2016 at 07:23, Tomasz Figa wrote: Hi, On Wed, Nov 16, 2016 at 11:11 AM, Liu Zhiquan

Re: [Mesa-dev] EGL/android: pbuffer implementation.

2016-11-21 Thread Liu, Zhiquan
Hi Tomasz, Thanks for you commends. > > > > Looks like this patch has already landed, but please let me try to > confirm some things here anyway. Would you mind keeping me on CC for > any future patches for the EGL/Android module? (I believe > scripts/get_reviewer.pl should already include me

Re: [Mesa-dev] EGL/android: pbuffer implementation.

2016-11-21 Thread Tapani Pälli
On 11/22/2016 08:02 AM, Tomasz Figa wrote: On Tue, Nov 22, 2016 at 2:44 PM, Tapani Pälli wrote: On 11/21/2016 04:15 PM, Emil Velikov wrote: On 21 November 2016 at 07:23, Tomasz Figa wrote: Hi, On Wed, Nov 16, 2016 at 11:11 AM, Liu Zhiquan wrote: @@ -775,14 +837,6 @@ droid_add_config

Re: [Mesa-dev] EGL/android: pbuffer implementation.

2016-11-21 Thread Tomasz Figa
On Tue, Nov 22, 2016 at 2:44 PM, Tapani Pälli wrote: > > > On 11/21/2016 04:15 PM, Emil Velikov wrote: >> >> On 21 November 2016 at 07:23, Tomasz Figa wrote: >>> >>> Hi, >>> >>> On Wed, Nov 16, 2016 at 11:11 AM, Liu Zhiquan >>> wrote: @@ -775,14 +837,6 @@ droid_add_configs_for_visuals(_EGLD

Re: [Mesa-dev] EGL/android: pbuffer implementation.

2016-11-21 Thread Tapani Pälli
On 11/21/2016 04:15 PM, Emil Velikov wrote: On 21 November 2016 at 07:23, Tomasz Figa wrote: Hi, On Wed, Nov 16, 2016 at 11:11 AM, Liu Zhiquan wrote: mesa android path didn't support pbuffer, so add pbuffer support to fix most deqp and cts pbuffer test cases fail; add single buffer config

Re: [Mesa-dev] [PATCH 1/4] anv/cmd_buffer: Align push constants to 64 bytes

2016-11-21 Thread Jason Ekstrand
Jordan pointed out that this patch is bogus. Please disregard. On Mon, Nov 21, 2016 at 8:26 PM, Jason Ekstrand wrote: > This is required by compute shaders. > > Cc: "13.0" > Cc: Jordan Justen > --- > src/intel/vulkan/anv_cmd_buffer.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

[Mesa-dev] [PATCH] radv: add support for shader stats dump

2016-11-21 Thread Dave Airlie
From: Dave Airlie I've started working on a shader-db alike for Vulkan, it's based on vktrace and it records pipelines, this adds support to dump the shader stats exactly like radeonsi does, so I can reuse the shader-db scripts it uses. Signed-off-by: Dave Airlie --- src/amd/vulkan/radv_device

[Mesa-dev] [PATCH 1/4] anv/cmd_buffer: Align push constants to 64 bytes

2016-11-21 Thread Jason Ekstrand
This is required by compute shaders. Cc: "13.0" Cc: Jordan Justen --- src/intel/vulkan/anv_cmd_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_cmd_buffer.c b/src/intel/vulkan/anv_cmd_buffer.c index d882c18..c6122db 100644 --- a/src/intel/vulkan

[Mesa-dev] [PATCH 4/4] anv/cmd_buffer: Emit a CS stall before setting a CS pipeline

2016-11-21 Thread Jason Ekstrand
Cc: "13.0" Cc: Jordan Justen --- src/intel/vulkan/genX_cmd_buffer.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index eded1c9..6af2a18 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +

[Mesa-dev] [PATCH 3/4] anv/cmd_buffer: Re-emit MEDIA_CURBE_LOAD when CS push constants are dirty

2016-11-21 Thread Jason Ekstrand
This can happen even if the binding table isn't changed. For instance, you could have dynamic offsets with your descriptor set. This fixes the new stress.lots-of-surface-state.cs.dynamic cricible test. Cc: "13.0" Cc: Jordan Justen --- src/intel/vulkan/genX_cmd_buffer.c | 23 +-

[Mesa-dev] [PATCH 2/4] anv/cmd_buffer: Handle running out of binding tables in compute shaders

2016-11-21 Thread Jason Ekstrand
If we try to allocate a binding table and fail, we have to get a new binding table block, re-emit STATE_BASE_ADDRESS, and then try again. We already handle this correctly for 3D and blorp but it never got handled for CS. This fixes the new stress.lots-of-surface-state.cs.static crucible test. Cc

Re: [Mesa-dev] [PATCH 3/4] glsl: add gl_linked_shader::SourceChecksum

2016-11-21 Thread Timothy Arceri
IMO we should wrap all these with: #ifdef DEBUG Including the existing SourceChecksum declaration of SourceChecksum in gl_shader. With those changes series is: Reviewed-by: Timothy Arceri On Tue, 2016-11-22 at 02:20 +0100, Marek Olšák wrote: > From: Marek Olšák > > for debugging > --- >  sr

[Mesa-dev] [PATCH] intel/aubinator: Use the correct length for MEDIA commands

2016-11-21 Thread Jason Ekstrand
--- src/intel/tools/decoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/tools/decoder.c b/src/intel/tools/decoder.c index 6bd02bf..55488eb 100644 --- a/src/intel/tools/decoder.c +++ b/src/intel/tools/decoder.c @@ -612,8 +612,8 @@ gen_group_get_length(struct

Re: [Mesa-dev] [PATCH 1/3] radv: Store UUID in physical device.

2016-11-21 Thread Edward O'Callaghan
This series is, Acked-by: Edward O'Callaghan On 11/22/2016 12:19 PM, Bas Nieuwenhuizen wrote: > No sense in repeatedly determining it. Also, it might be dependent > on the device as shaders get compiled differently for SI/CIK/VI etc. > > Signed-off-by: Bas Nieuwenhuizen > --- > src/amd/vulkan/

[Mesa-dev] [PATCH 4/4] mesa: use special checksums for unset checksums and fixed-func shaders

2016-11-21 Thread Marek Olšák
From: Marek Olšák for debugging --- src/mesa/main/ff_fragment_shader.cpp | 1 + src/mesa/main/shaderobj.c| 1 + 2 files changed, 2 insertions(+) diff --git a/src/mesa/main/ff_fragment_shader.cpp b/src/mesa/main/ff_fragment_shader.cpp index e00eac5..2497108 100644 --- a/src/mesa/mai

[Mesa-dev] [PATCH 3/4] glsl: add gl_linked_shader::SourceChecksum

2016-11-21 Thread Marek Olšák
From: Marek Olšák for debugging --- src/compiler/glsl/linker.cpp | 8 src/mesa/main/mtypes.h | 1 + 2 files changed, 9 insertions(+) diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp index 61a029c..9678a74 100644 --- a/src/compiler/glsl/linker.cpp +++ b/src

[Mesa-dev] [PATCH 2/4] mesa: use util_hash_crc32 instead of _mesa_str_checksum

2016-11-21 Thread Marek Olšák
From: Marek Olšák --- src/mesa/main/imports.c | 22 -- src/mesa/main/imports.h | 3 --- src/mesa/main/shaderapi.c | 3 ++- 3 files changed, 2 insertions(+), 26 deletions(-) diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c index 808b8f6..de4dd0e 100644 ---

[Mesa-dev] [PATCH 1/4] util: import CRC32 implementation from gallium

2016-11-21 Thread Marek Olšák
From: Marek Olšák --- src/gallium/auxiliary/Makefile.sources| 2 -- src/gallium/drivers/radeonsi/si_state_shaders.c | 2 +- src/util/Makefile.sources | 2 ++ src/{gallium/auxiliary/util/u_hash.c => util/crc32.c} | 4 ++-- src/{gallium/auxilia

[Mesa-dev] [PATCH 3/3] radv: Incorporate GPU family into cache UUID.

2016-11-21 Thread Bas Nieuwenhuizen
Invalidates the cache when someone switches cards. Signed-off-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_device.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 04c0bdc..8595973 100644 --- a/src/amd

[Mesa-dev] [PATCH 2/3] radv: Use library mtime for cache UUID.

2016-11-21 Thread Bas Nieuwenhuizen
We want to also invalidate the cache when LLVM gets changed. As the specific LLVM revision is not fixed at build time, we will need to check at runtime. Computing a checksum for LLVM is going to be very expensive, so just use the mtime. Tested on my computer that the returned DSO for the LLVM symb

[Mesa-dev] [PATCH 1/3] radv: Store UUID in physical device.

2016-11-21 Thread Bas Nieuwenhuizen
No sense in repeatedly determining it. Also, it might be dependent on the device as shaders get compiled differently for SI/CIK/VI etc. Signed-off-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_device.c | 18 ++ src/amd/vulkan/radv_pipeline_cache.c | 8 src/amd/v

Re: [Mesa-dev] [PATCH 1/2] radeonsi: add a debug flag that disables optimized shader variants

2016-11-21 Thread Edward O'Callaghan
This series is, Reviewed-by: Edward O'Callaghan On 11/22/2016 08:41 AM, Marek Olšák wrote: > From: Marek Olšák > > --- > src/gallium/drivers/radeon/r600_pipe_common.c | 1 + > src/gallium/drivers/radeon/r600_pipe_common.h | 1 + > src/gallium/drivers/radeonsi/si_state_shaders.c | 5 + >

Re: [Mesa-dev] [PATCH] swr: don't claim to allow setting layer/viewport from VS

2016-11-21 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley mailto:timothy.o.row...@intel.com>> On Nov 20, 2016, at 12:20 PM, Ilia Mirkin mailto:imir...@alum.mit.edu>> wrote: This may ultimately be possible to support, but for now it's not hooked up and the swr core only supports this output from GS. This normally wouldn't matte

Re: [Mesa-dev] [PATCH v3] swr: calculate viewport width/height based on the scale

2016-11-21 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley mailto:timothy.o.row...@intel.com>> On Nov 20, 2016, at 10:32 AM, Ilia Mirkin mailto:imir...@alum.mit.edu>> wrote: The former calculations were for min/max y. The width/height don't take translate into account. Signed-off-by: Ilia Mirkin mailto:imir...@alum.mit.edu>> --

[Mesa-dev] clover: OpenCL image support

2016-11-21 Thread Edward O'Callaghan
The following series implements what is needed on clover's side for OpenCL image support. This seems to work with some basic applications with radeonsi. Although, I have not yet included the patch to enable by default until the LLVM bugs this can potentially trigger with more complex kernels are re

[Mesa-dev] [PATCH 3/4] clover: Implement 'CL_MEM_OBJECT_IMAGE1D_BUFFER'

2016-11-21 Thread Edward O'Callaghan
Signed-off-by: Edward O'Callaghan --- src/gallium/state_trackers/clover/api/memory.cpp | 9 - src/gallium/state_trackers/clover/core/memory.cpp | 13 + src/gallium/state_trackers/clover/core/memory.hpp | 10 ++ 3 files changed, 31 insertions(+), 1 deletion(-) diff -

[Mesa-dev] [PATCH 4/4] clover: Implement 'CL_MEM_OBJECT_IMAGE1D_ARRAY'

2016-11-21 Thread Edward O'Callaghan
Signed-off-by: Edward O'Callaghan --- src/gallium/state_trackers/clover/api/memory.cpp | 13 + src/gallium/state_trackers/clover/core/memory.cpp | 14 ++ src/gallium/state_trackers/clover/core/memory.hpp | 11 +++ 3 files changed, 34 insertions(+), 4 deletions(-)

[Mesa-dev] [PATCH 2/4] clover: Implement 'CL_MEM_OBJECT_IMAGE1D'

2016-11-21 Thread Edward O'Callaghan
Signed-off-by: Edward O'Callaghan --- src/gallium/state_trackers/clover/api/memory.cpp | 9 - src/gallium/state_trackers/clover/core/memory.cpp | 13 + src/gallium/state_trackers/clover/core/memory.hpp | 10 ++ 3 files changed, 31 insertions(+), 1 deletion(-) diff -

[Mesa-dev] [PATCH 1/4] clover: Implement 'CL_MEM_OBJECT_IMAGE2D_ARRAY'

2016-11-21 Thread Edward O'Callaghan
Signed-off-by: Edward O'Callaghan --- src/gallium/state_trackers/clover/api/memory.cpp | 17 - src/gallium/state_trackers/clover/core/memory.cpp | 14 ++ src/gallium/state_trackers/clover/core/memory.hpp | 11 +++ 3 files changed, 41 insertions(+), 1 deletion(

Re: [Mesa-dev] [PATCH] swr: call swr_update_derived unconditionally when drawing/clearing

2016-11-21 Thread Cherniak, Bruce
Reviewed-by: Bruce Cherniak > On Nov 19, 2016, at 11:09 PM, Ilia Mirkin wrote: > > Currently a sequence like draw/map/draw/map will cause the second map to > not wait for the second draw. This is because the first map will clear > the resource business bit, and the second draw won't reset it si

Re: [Mesa-dev] [PATCH] swr: allocate all scratch space in one go for vertex buffers

2016-11-21 Thread Cherniak, Bruce
Reviewed-by: Bruce Cherniak > On Nov 20, 2016, at 4:25 PM, Ilia Mirkin wrote: > > Multiple buffers may reference client arrays. When this happens, we > might reach for scratch space multiple times, which could cause later > arrays to invalidate the pointers allocated for the earlier ones. > >

Re: [Mesa-dev] [PATCH] swr: report a reasonable max lod bias

2016-11-21 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley mailto:timothy.o.row...@intel.com>> On Nov 19, 2016, at 10:11 AM, Ilia Mirkin mailto:imir...@alum.mit.edu>> wrote: This is the same value that llvmpipe uses. Since swr uses the same sampler logic, makes sense for this value to also be the same. Most applications don't ca

Re: [Mesa-dev] [PATCH] docs/submitting patches: mention get_reviewers.pl

2016-11-21 Thread tournier.elie
Nice, Reviewed-by: Elie Tournier 2016-11-21 18:56 GMT+01:00 Emil Velikov : > From: Emil Velikov > > Mention the script - why/how to use alongside a useful trick to make it > work interactively (thanks Rob!). > > Signed-off-by: Emil Velikov > --- > Based on top of the "git tips" from earlier

Re: [Mesa-dev] [PATCH 1/2] intel/common: Add an is_kabylake field to gen_device_info

2016-11-21 Thread Matt Turner
On Tue, Nov 8, 2016 at 1:21 PM, Jason Ekstrand wrote: > Most of the 3-D engine Kaby Lake is identical to Sky Lake. However, there > are a few small differences that we need to be able to detect. > > Signed-off-by: Jason Ekstrand I noticed this patch has never landed. ___

Re: [Mesa-dev] [PATCH] docs/submitting patches: add git tips

2016-11-21 Thread Timothy Arceri
On 22 November 2016 3:37:32 am AEDT, Emil Velikov wrote: >From: Timothy Arceri > >v2: [Emil Velikov] > - Add the shorthand git send-email -vX > - Move to submittingpatches.html > - Add to the TOC. > >Cc: Timothy Arceri >Signed-off-by: Emil Velikov >Reviewed-by: Brian Paul (v1) >--- >Tim any

[Mesa-dev] [PATCH 2/2] st/va: fix gop size for rate control

2016-11-21 Thread boyuan.zhang
From: Boyuan Zhang The gop_size in rate control is the budget window for internal rate control calculation, and shouldn't always equal to idr period. Define a coefficient to let budget window contains a number of idr period for proper rate control calculation. Adjust the number of i/p frame remai

[Mesa-dev] [PATCH 1/2] st/va: force to submit two consecutive single jobs

2016-11-21 Thread boyuan.zhang
From: Boyuan Zhang The gop_size in rate control is the budget window for internal rate control calculation, and shouldn't always equal to idr period. Define a coefficient to let budget window contains a number of idr period for proper rate control calculation. Adjust the number of i/p frame remai

Re: [Mesa-dev] list.h vs. simple_list.h

2016-11-21 Thread Eric Anholt
Brian Paul writes: > [resending, original msg didn't appear on list] > > It seems a bit silly to have two linked list utilities. > > git-grep indicates that list.h is used more than simple_list.h so maybe > we can switch uses of the later to the former. In fact, I've already > found a few file

[Mesa-dev] [PATCH 2/2] radeonsi: print new opt flags in si_dump_shader_key

2016-11-21 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeonsi/si_shader.c | 9 + 1 file changed, 9 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index abe30e5..6228a68 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/

[Mesa-dev] [PATCH 1/2] radeonsi: add a debug flag that disables optimized shader variants

2016-11-21 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeon/r600_pipe_common.c | 1 + src/gallium/drivers/radeon/r600_pipe_common.h | 1 + src/gallium/drivers/radeonsi/si_state_shaders.c | 5 + 3 files changed, 7 insertions(+) diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/galli

Re: [Mesa-dev] [PATCH v2] radeonsi: Add missing error-checking to si_create_compute_state (v2)

2016-11-21 Thread Marek Olšák
Pushed, thanks. Marek On Mon, Nov 21, 2016 at 3:24 PM, Edward O'Callaghan wrote: > Reviewed-by: Edward O'Callaghan > > On 11/22/2016 01:20 AM, Mun Gwan-gyeong wrote: >> When the uploading of shader fails on si_shader_binary_upload(), >> it returns -ENOMEM. We should handle si_shader_binary_uplo

Re: [Mesa-dev] [PATCH v2 1/6] swr: [rasterizer memory] minify original sizes for block formats

2016-11-21 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley mailto:timothy.o.row...@intel.com>> On Nov 17, 2016, at 10:56 PM, Ilia Mirkin mailto:imir...@alum.mit.edu>> wrote: There's no guarantee that mip width/height will be a multiple of the compressed block size. Doing a divide by the block size first yields different results

Re: [Mesa-dev] [PATCH v2 2/6] swr: [rasterizer memory] minify texture width before alignment

2016-11-21 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley mailto:timothy.o.row...@intel.com>> On Nov 17, 2016, at 10:56 PM, Ilia Mirkin mailto:imir...@alum.mit.edu>> wrote: The minification should happen before alignment, not after. See similar logic on ComputeLODOffsetY. The current logic requires unnecessarily large textures

Re: [Mesa-dev] [PATCH 0/7] anv: Add support for fast clears

2016-11-21 Thread Jason Ekstrand
Do you want to review input attachments too? This series relies on it. On Nov 21, 2016 9:55 AM, "Jordan Justen" wrote: > Series Reviewed-by: Jordan Justen > > On 2016-11-19 11:40:02, Jason Ekstrand wrote: > > This little series builds on top of the input attachment series I sent > out > > earl

Re: [Mesa-dev] [PATCH 10/20] radeonsi: fix culling if clip & cull distances are used at the same time

2016-11-21 Thread Marek Olšák
On Mon, Nov 21, 2016 at 9:01 AM, Nicolai Hähnle wrote: > On 16.11.2016 19:38, Marek Olšák wrote: >> >> From: Marek Olšák >> >> Fixed piglits: >> - arb_cull_distance/clip-cull-3 >> - arb_cull_distance/clip-cull-4 > > > Cc: stable for this and the previous patch? It won't apply without some of the

[Mesa-dev] [PATCH] docs/submitting patches: mention get_reviewers.pl

2016-11-21 Thread Emil Velikov
From: Emil Velikov Mention the script - why/how to use alongside a useful trick to make it work interactively (thanks Rob!). Signed-off-by: Emil Velikov --- Based on top of the "git tips" from earlier. --- docs/submittingpatches.html | 18 ++ 1 file changed, 18 insertions(+) d

Re: [Mesa-dev] [PATCH 00/20] RadeonSI: Optimized shader variants and other improvements

2016-11-21 Thread Marek Olšák
On Mon, Nov 21, 2016 at 9:32 AM, Nicolai Hähnle wrote: > On 16.11.2016 19:38, Marek Olšák wrote: >> >> Patches 1-10 are random improvements. >> >> Patches 11-14 are cleanups. >> >> Patches 15-20 add support for optimized shader variants compiled >> asynchronously (without stalling rendering). >> >

Re: [Mesa-dev] [PATCH 0/7] anv: Add support for fast clears

2016-11-21 Thread Jordan Justen
Series Reviewed-by: Jordan Justen On 2016-11-19 11:40:02, Jason Ekstrand wrote: > This little series builds on top of the input attachment series I sent out > earlier this week and adds support for fast clears in Vulkan. I've tested > it on both Sky Lake and Haswell and it has no regressions ove

[Mesa-dev] [PATCH 5/5] swr: color interpolation is also supposed to get perspective division

2016-11-21 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- src/gallium/drivers/swr/swr_shader.cpp | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/swr/swr_shader.cpp b/src/gallium/drivers/swr/swr_shader.cpp index 428c9b3..294a568 100644 --- a/src/gallium/drivers/swr/swr_shader.c

[Mesa-dev] [PATCH 4/5] swr: add sprite coord enable mask to fs key

2016-11-21 Thread Ilia Mirkin
This fixes gl-coord-replace-doesnt-eliminate-frag-tex-coords Signed-off-by: Ilia Mirkin --- src/gallium/drivers/swr/swr_shader.cpp | 3 ++- src/gallium/drivers/swr/swr_shader.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/swr/swr_shader.cpp b/src/ga

[Mesa-dev] [PATCH 2/5] swr: flatshading makes color outputs flat, it doesn't affect others

2016-11-21 Thread Ilia Mirkin
We were previously not marking the "regular" flat outputs as flat when flatshading was enabled. Signed-off-by: Ilia Mirkin --- src/gallium/drivers/swr/swr_state.cpp | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/swr/swr_state.cpp b/src/gallium/driv

[Mesa-dev] [PATCH 3/5] swr: rework vert <-> frag shader linkage logic

2016-11-21 Thread Ilia Mirkin
Fixes a few things: - sprite coords only apply to generic varyings, and are a bitmask - back color only applies in 2-sided lighting mode - handle some odd situations between only some front/back colors being there. This is only semi-legal in GL, but we shouldn't start crashing. Signed-off

[Mesa-dev] [PATCH 1/5] swr: only broadcast color0 value, not all color values

2016-11-21 Thread Ilia Mirkin
The way that dual-source blending is described for GLES2 is very odd, and we end up with a shader that both has this property set *and* has a color1 value to be used as the second source. While changing the state tracker is an option, it seems more reliable to verify that the broadcast is only done

Re: [Mesa-dev] [PATCH 6/7] anv: Add support for fast clears on gen9

2016-11-21 Thread Jordan Justen
On 2016-11-19 11:40:08, Jason Ekstrand wrote: > --- > src/intel/vulkan/anv_blorp.c | 102 > - > src/intel/vulkan/anv_private.h | 3 ++ > src/intel/vulkan/genX_cmd_buffer.c | 100 ++-- > 3 files changed, 176 insertions

[Mesa-dev] [PATCH 6/7] anv: descriptorSet: write sampler border colors on update

2016-11-21 Thread Lionel Landwerlin
When writing texture or sampler information into descriptor sets, also store the related information for border color workaround on Gen7.5. Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/anv_descriptor_set.c | 60 ++- 1 file changed, 59 insertions(+), 1 del

[Mesa-dev] [PATCH 2/7] anv: sampler: store border color & wrapping modes on Gen7.5

2016-11-21 Thread Lionel Landwerlin
--- src/intel/vulkan/anv_private.h | 4 +++- src/intel/vulkan/genX_state.c | 21 + 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 7d7380a..8231f6b 100644 --- a/src/intel/vulkan/anv_private.h

[Mesa-dev] [PATCH 5/7] anv: descriptorSet: allocate hidden ubo for border colors

2016-11-21 Thread Lionel Landwerlin
This additional buffer stores workaround border colors & mask based of the format's number of channels for integer formats on Gen7.5. Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/anv_descriptor_set.c | 16 src/intel/vulkan/anv_private.h| 13 + 2 file

[Mesa-dev] [PATCH 1/7] anv: Fix border colors with normalized formats on gen7/gen75

2016-11-21 Thread Lionel Landwerlin
This replicates the following commit from our GL driver : commit c25e5300cba7628b58df93ead14ebc3cc32f338c Author: Kenneth Graunke Date: Fri Jan 20 03:33:40 2012 -0800 i965: Fix border color on Sandybridge and Ivybridge. On Haswell, it fixes: dEQP-VK.pipeline.sampler.view_type.*.format

[Mesa-dev] [PATCH 3/7] anv: descriptorSetLayout: allocate additional space for a hidden ubo

2016-11-21 Thread Lionel Landwerlin
This additional buffer will store workaround border colors for integer formats on Gen7.5. Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/anv_descriptor_set.c | 42 +++ src/intel/vulkan/anv_private.h| 9 2 files changed, 51 insertions(+) d

[Mesa-dev] [PATCH 7/7] anv: add nir pass to insert border color workaround

2016-11-21 Thread Lionel Landwerlin
This pass wraps sampler instructions with some logic to deal with border colors with integer formats on Gen7.5. Fixes most of : dEQP-VK.pipeline.sampler.view_type.*.format.*int.address_modes.all_mode_clamp_to_border_* Remaining 11 failures : HSW: dEQP-VK.pipeline.sampler.view_type.*

[Mesa-dev] [PATCH 0/7] Anv: Border color fixes for Haswell

2016-11-21 Thread Lionel Landwerlin
Hi, This is another attempt at fixing the border colors on Haswell. Patch 1 is probably a genuine fix, the rest implements a workaround for the integer formats. The idea is the following, store the border colors and wrapping information for all the samplers as well as some additional information

[Mesa-dev] [PATCH 4/7] anv: descriptorPool: allocate additional space for a hidden ubo

2016-11-21 Thread Lionel Landwerlin
This additional buffer will store workaround border colors for integer formats on Gen7.5. Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/anv_descriptor_set.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/src/intel/vulkan/anv_descriptor_set.c b/src/intel/vulkan/a

Re: [Mesa-dev] [PATCH] docs/submitting patches: add git tips

2016-11-21 Thread Emil Velikov
On 21 November 2016 at 17:21, Nicolai Hähnle wrote: > On 21.11.2016 17:37, Emil Velikov wrote: >> >> From: Timothy Arceri >> >> v2: [Emil Velikov] >> - Add the shorthand git send-email -vX >> - Move to submittingpatches.html >> - Add to the TOC. >> >> Cc: Timothy Arceri >> Signed-off-by: Emil

Re: [Mesa-dev] [PATCH v5 00/20] configure.ac and llvm the 5th

2016-11-21 Thread Emil Velikov
On 19 November 2016 at 01:38, Tobias Droste wrote: > Patches 1-11 and 13-16 are only rebased, no change in functionality and have > a reviewed by. > > Patch 12 is changed based on review of Emil (I used "HAVE_GALLIUM_LLVM" > instead of "USE_MESA_LLVM"). > Patch 17 is changed based on review of E

Re: [Mesa-dev] [PATCH 2/4] swr: [rasterizer core] clear data now comes in as float

2016-11-21 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley mailto:timothy.o.row...@intel.com>> On Nov 17, 2016, at 6:51 PM, Ilia Mirkin mailto:imir...@alum.mit.edu>> wrote: The non-fast-clear path was never updated after clear colors were passed in as floats. Remove the now-harmful conversion from unorm8. Signed-off-by: Ilia Mi

Re: [Mesa-dev] [PATCH] docs/submitting patches: add git tips

2016-11-21 Thread Nicolai Hähnle
On 21.11.2016 17:37, Emil Velikov wrote: From: Timothy Arceri v2: [Emil Velikov] - Add the shorthand git send-email -vX - Move to submittingpatches.html - Add to the TOC. Cc: Timothy Arceri Signed-off-by: Emil Velikov Reviewed-by: Brian Paul (v1) --- Tim any objections on merging this ?

[Mesa-dev] [PATCH] docs/submitting patches: add git tips

2016-11-21 Thread Emil Velikov
From: Timothy Arceri v2: [Emil Velikov] - Add the shorthand git send-email -vX - Move to submittingpatches.html - Add to the TOC. Cc: Timothy Arceri Signed-off-by: Emil Velikov Reviewed-by: Brian Paul (v1) --- Tim any objections on merging this ? IMHO these are quite useful. --- docs/subm

Re: [Mesa-dev] [PATCH v4 09/10] gallium: swr: Added swr build for windows

2016-11-21 Thread Emil Velikov
On 18 November 2016 at 19:49, Kyriazis, George wrote: > > >> -Original Message- >> From: mesa-dev [mailto:mesa-dev-boun...@lists.freedesktop.org] On >> Behalf Of Emil Velikov >> Sent: Friday, November 18, 2016 5:24 AM >> To: Kyriazis, George >> Cc: ML mesa-dev >> Subject: Re: [Mesa-dev]

Re: [Mesa-dev] [PATCH 05/13] glsl: simplifies the merge of the default in layout qualifier

2016-11-21 Thread Andres Gomez
On Thu, 2016-11-17 at 16:17 +1100, Timothy Arceri wrote: > On Mon, 2016-11-14 at 19:15 +0200, Andres Gomez wrote: ... > > diff --git a/src/compiler/glsl/ast_type.cpp > > b/src/compiler/glsl/ast_type.cpp > > index 803d952..064c63b 100644 > > --- a/src/compiler/glsl/ast_type.cpp > > +++ b/src/compile

Re: [Mesa-dev] [PATCH 04/13] glsl: Split default in layout qualifier merge

2016-11-21 Thread Andres Gomez
On Thu, 2016-11-17 at 16:56 +1100, Timothy Arceri wrote: > On Mon, 2016-11-14 at 19:15 +0200, Andres Gomez wrote: ...  > > diff --git a/src/compiler/glsl/glsl_parser.yy > > b/src/compiler/glsl/glsl_parser.yy > > index 50f7097..9f18c15 100644 > > --- a/src/compiler/glsl/glsl_parser.yy > > +++ b/src/

Re: [Mesa-dev] [PATCH 07/13] glsl: Add comments for the point mode layout-id-qualifier validation

2016-11-21 Thread Andres Gomez
On Thu, 2016-11-17 at 16:47 +1100, Timothy Arceri wrote: > On Mon, 2016-11-14 at 19:15 +0200, Andres Gomez wrote: > > The point mode value in an ast_type_qualifier can only be true if the > > flag is already set since this layout-id-qualifier can only be or not > > be present in a shader. > > > >

Re: [Mesa-dev] [PATCH 04/13] glsl: Split default in layout qualifier merge

2016-11-21 Thread Andres Gomez
On Thu, 2016-11-17 at 16:45 +1100, Timothy Arceri wrote: > I might have asked you this before. Is there a reason why we can't call > merge_qualifier from merge_into_in_qualifier() like we do > in merge_into_out_qualifier() to take care of some of these for us? > Since there is duplicate code. Ans

Re: [Mesa-dev] [PATCH] Revert "wayland: Block for the frame callback in get_back_bo not dri2_swap_buffers"

2016-11-21 Thread Daniel Stone
Hi Jonas, On 21 November 2016 at 05:56, Jonas Ådahl wrote: > On Thu, Nov 10, 2016 at 10:38:51AM +, Daniel Stone wrote: >> On 10 November 2016 at 06:08, Jonas Ådahl wrote: >> > On Mon, Oct 24, 2016 at 08:42:59PM +0100, Daniel Stone wrote: >> That relies on the compositor releasing buffers in

Re: [Mesa-dev] EGL/android: pbuffer implementation.

2016-11-21 Thread Rob Herring
On Mon, Nov 21, 2016 at 8:15 AM, Emil Velikov wrote: > On 21 November 2016 at 07:23, Tomasz Figa wrote: >> Hi, >> >> On Wed, Nov 16, 2016 at 11:11 AM, Liu Zhiquan wrote: >>> mesa android path didn't support pbuffer, so add pbuffer support to >>> fix most deqp and cts pbuffer test cases fail; >>>

[Mesa-dev] [PATCH v2] util/disk_cache: close a previously opened handle in disk_cache_put (v2)

2016-11-21 Thread Mun Gwan-gyeong
We're missing the close() to the matching open(). CID 1373407 v2: Fixes from Emil Velikov's review Update the teardown in reverse order of the setup/init. Signed-off-by: Mun Gwan-gyeong --- src/util/disk_cache.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git

Re: [Mesa-dev] [PATCH v5 09/11] swr: Modify gen_knobs.{cpp|h} creation script

2016-11-21 Thread Kyriazis, George
Thank you for the reviews, Emil. Tim will check-in the series, since he has check-in privileges. George > -Original Message- > From: Emil Velikov [mailto:emil.l.veli...@gmail.com] > Sent: Saturday, November 19, 2016 4:23 PM > To: Kyriazis, George > Cc: ML mesa-dev > Subject: Re: [Mesa-

Re: [Mesa-dev] [PATCH] util/disk_cache: close a previously opened handle in disk_cache_put

2016-11-21 Thread Emil Velikov
On 20 November 2016 at 13:59, Mun Gwan-gyeong wrote: > We're missing the close() to the matching open(). > > CID 1373407 > > Signed-off-by: Mun Gwan-gyeong > --- > src/util/disk_cache.c | 11 +-- > 1 file changed, 5 insertions(+), 6 deletions(-) > > diff --git a/src/util/disk_cache.c b/s

Re: [Mesa-dev] EGL/android: pbuffer implementation.

2016-11-21 Thread Emil Velikov
On 21 November 2016 at 14:36, Tomasz Figa wrote: > On Mon, Nov 21, 2016 at 11:15 PM, Emil Velikov > wrote: >> On 21 November 2016 at 07:23, Tomasz Figa wrote: >>> Hi, >>> >>> On Wed, Nov 16, 2016 at 11:11 AM, Liu Zhiquan wrote: mesa android path didn't support pbuffer, so add pbuffer supp

Re: [Mesa-dev] EGL/android: pbuffer implementation.

2016-11-21 Thread Tomasz Figa
On Mon, Nov 21, 2016 at 11:15 PM, Emil Velikov wrote: > On 21 November 2016 at 07:23, Tomasz Figa wrote: >> Hi, >> >> On Wed, Nov 16, 2016 at 11:11 AM, Liu Zhiquan wrote: >>> mesa android path didn't support pbuffer, so add pbuffer support to >>> fix most deqp and cts pbuffer test cases fail; >>

Re: [Mesa-dev] [PATCH] util/disk_cache: close a previously opened handle in disk_cache_put

2016-11-21 Thread Iago Toral
Reviewed-by: Iago Toral Quiroga On Sun, 2016-11-20 at 22:59 +0900, Mun Gwan-gyeong wrote: > We're missing the close() to the matching open(). > > CID 1373407 > > Signed-off-by: Mun Gwan-gyeong > --- >  src/util/disk_cache.c | 11 +-- >  1 file changed, 5 insertions(+), 6 deletions(-) >

[Mesa-dev] [PATCH v2] radeonsi: Add missing error-checking to si_create_compute_state (v2)

2016-11-21 Thread Mun Gwan-gyeong
When the uploading of shader fails on si_shader_binary_upload(), it returns -ENOMEM. We should handle si_shader_binary_upload() failure path on si_create_compute_state(). CID 1394027 v2: Fixes from Edward O'Callaghan's review a) Update explicitly return value check with "si_shader_binary_upload(

Re: [Mesa-dev] [PATCH v2] radeonsi: Add missing error-checking to si_create_compute_state (v2)

2016-11-21 Thread Edward O'Callaghan
Reviewed-by: Edward O'Callaghan On 11/22/2016 01:20 AM, Mun Gwan-gyeong wrote: > When the uploading of shader fails on si_shader_binary_upload(), > it returns -ENOMEM. We should handle si_shader_binary_upload() failure path > on si_create_compute_state(). > > CID 1394027 > > v2: Fixes from Edwa

Re: [Mesa-dev] EGL/android: pbuffer implementation.

2016-11-21 Thread Emil Velikov
On 21 November 2016 at 07:23, Tomasz Figa wrote: > Hi, > > On Wed, Nov 16, 2016 at 11:11 AM, Liu Zhiquan wrote: >> mesa android path didn't support pbuffer, so add pbuffer support to >> fix most deqp and cts pbuffer test cases fail; >> add single buffer config to support pbuffer, and create image

Re: [Mesa-dev] [PATCH v2 2/2] egl/android: Use gralloc::lock_ycbcr for resolving YUV formats (v2)

2016-11-21 Thread Tomasz Figa
On Mon, Nov 21, 2016 at 10:39 PM, Emil Velikov wrote: > On 21 November 2016 at 06:50, Tomasz Figa wrote: >> On Thu, Nov 10, 2016 at 5:48 PM, Tapani Pälli wrote: >>> >>> >>> On 11/10/2016 09:55 AM, Tomasz Figa wrote: There is an interface that can be used to query YUV buffers for their

Re: [Mesa-dev] [PATCH 2/3] egl/x11: store xcb_screen_t *screen instead of int screen

2016-11-21 Thread Emil Velikov
On 17 November 2016 at 13:59, Eric Engestrom wrote: > On Friday, 2016-11-11 16:31:16 +, Emil Velikov wrote: >> From: Emil Velikov >> >> Just fetch and store it once, rather than doing the >> xcb_setup_roots_iterator + get_xcb_screen dance five times. >> >> Signed-off-by: Emil Velikov >> ---

[Mesa-dev] [PATCH v2 3/3] auxiliary/vl/dri: call get_xcb_screen() only once

2016-11-21 Thread Emil Velikov
From: Emil Velikov Signed-off-by: Emil Velikov Reviewed-by: Eric Engestrom --- src/gallium/auxiliary/vl/vl_winsys_dri.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/vl/vl_winsys_dri.c b/src/gallium/auxiliary/vl/vl_winsys_dri.c index 9ecc216

[Mesa-dev] [PATCH v2 2/3] egl/x11: store xcb_screen_t *screen instead of int screen

2016-11-21 Thread Emil Velikov
From: Emil Velikov Just fetch and store it once, rather than doing the xcb_setup_roots_iterator + get_xcb_screen dance five times. v2: Call xcb_disconnect() on error (Eric) Signed-off-by: Emil Velikov Reviewed-by: Eric Engestrom (v1) --- src/egl/drivers/dri2/egl_dri2.h | 2 +- src/

[Mesa-dev] [PATCH v2 1/3] egl/x11: factor out dri2_get_xcb_connection()

2016-11-21 Thread Emil Velikov
From: Emil Velikov Identical throughout dri2, dri3 and drisw. Next patch will add more common code, so rather than duplicating it factor out the function. Note: this also sets eglError on failure. Something that's quite inconsistent throughout the codebase. v2: Call xcb_disconnect() on error (E

Re: [Mesa-dev] [PATCH v2 2/2] egl/android: Use gralloc::lock_ycbcr for resolving YUV formats (v2)

2016-11-21 Thread Emil Velikov
On 21 November 2016 at 06:50, Tomasz Figa wrote: > On Thu, Nov 10, 2016 at 5:48 PM, Tapani Pälli wrote: >> >> >> On 11/10/2016 09:55 AM, Tomasz Figa wrote: >>> >>> There is an interface that can be used to query YUV buffers for their >>> internal format. Specifically, if gralloc:lock_ycbcr() is g

Re: [Mesa-dev] [PATCH] intel: aubinator: Fix resource leak in gen_spec_load_from_path

2016-11-21 Thread Mun, Gwan-gyeong
Hi, Lionel Landwerlin Thanks for reviewing. As I do not have the permission of mesa git, I can not push it. If you have permission for git push, can you push this patch? Best regards, Gwan-gyeong. 2016-11-21 20:20 GMT+09:00 Lionel Landwerlin : > Thanks! > > Reviewed-by: Lionel Landwerlin > >

  1   2   >