[Mesa-dev] [PATCH] mesa: Factor out _mesa_disable_vertex_array_attrib.

2018-02-05 Thread Mathias . Froehlich
From: Mathias Fröhlich Hi, Simple code deduplication and factoring out a function that will be usefull soon. please review thanks!! Mathias And use it in the enable code path. Move _mesa_update_attribute_map_mode into its only remaining file. Signed-off-by:

[Mesa-dev] [PATCH] mesa: Use atomics for buffer objects reference counts.

2018-02-05 Thread Mathias . Froehlich
From: Mathias Fröhlich Hi all, please review best Mathias The mutex is currently used for reference counting and updating the minmax index cache. The change uses atomics directly for reference counting and the mutex for the minmax cache. This is safe since the

[Mesa-dev] [PATCH] vbo: Move vbo_rebase into its only caller module tnl.

2018-02-05 Thread Mathias . Froehlich
From: Mathias Fröhlich Hi all, The change move vbo_rebase_prims into the tnl module. The tnl module is the only user of this function. please review best Mathias Signed-off-by: Mathias Fröhlich --- src/mesa/Makefile.sources

Re: [Mesa-dev] [PATCH] r600/atomic: fix ATOMCAS instruction.

2018-02-05 Thread Roland Scheidegger
Am 05.02.2018 um 07:47 schrieb Dave Airlie: > From: Dave Airlie > > This has 3 srcs. Depends on how you count :-). Reviewed-by: Roland Scheidegger > > This fixes: > KHR-GL45.shader_atomic_counter_ops_tests.ShaderAtomicCounterOpsExchangeTestCase > >

Re: [Mesa-dev] [PATCH 3/9] r600: overhaul buffer resource query.

2018-02-05 Thread Roland Scheidegger
Am 06.02.2018 um 06:04 schrieb Dave Airlie: > On 6 February 2018 at 14:12, Roland Scheidegger wrote: >> Am 05.02.2018 um 05:29 schrieb Dave Airlie: >>> From: Dave Airlie >>> >>> This cleans up and fixes the previous fix even more. >>> >>> Buffers from

Re: [Mesa-dev] [PATCH] r600/sb/cayman: fix indirect ubo access on cayman

2018-02-05 Thread Roland Scheidegger
Am 05.02.2018 um 07:05 schrieb Dave Airlie: > From: Dave Airlie > > With sb enabled on cayman, this was overwriting the proper > cf index value with random ones if the dst gpr was 2 or 3, > only save the value for a MOVA instruction. > > Fixes: >

Re: [Mesa-dev] [PATCH 1/3] mesa: add xbgr support adjacent to xrgb

2018-02-05 Thread Ilia Mirkin
On Mon, Feb 5, 2018 at 6:42 AM, Ilia Mirkin wrote: > On Mon, Feb 5, 2018 at 6:24 AM, Daniel Stone wrote: >> Hi Ilia, >> >> On 4 February 2018 at 19:09, Ilia Mirkin wrote: >>> One might have split this up into multiple patches,

Re: [Mesa-dev] [PATCH] r600: fixup sparse color exports.

2018-02-05 Thread Roland Scheidegger
Am 05.02.2018 um 05:58 schrieb Dave Airlie: > From: Dave Airlie > > If we have gaps in the shader mask we have to have 0x1 in them > according to a comment in radeonsi, and this is required to fix > the test at least on cayman. > > We also need to record the highest one

Re: [Mesa-dev] [PATCH 3/9] r600: overhaul buffer resource query.

2018-02-05 Thread Dave Airlie
On 6 February 2018 at 14:12, Roland Scheidegger wrote: > Am 05.02.2018 um 05:29 schrieb Dave Airlie: >> From: Dave Airlie >> >> This cleans up and fixes the previous fix even more. >> >> Buffers from textures start at max const, >> buffers from

[Mesa-dev] [PATCH 4/4] ac: add 64bit support to ac_find_lsb()

2018-02-05 Thread Timothy Arceri
--- src/amd/common/ac_llvm_build.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c index 08c488775e..0764d8c7f9 100644 --- a/src/amd/common/ac_llvm_build.c +++

[Mesa-dev] [PATCH 1/4] ac: create ac_unpack_64_2x32_split_x() helper

2018-02-05 Thread Timothy Arceri
This will be used in the following commits. --- src/amd/common/ac_llvm_build.c | 8 src/amd/common/ac_llvm_build.h | 3 +++ src/amd/common/ac_nir_to_llvm.c | 6 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/amd/common/ac_llvm_build.c

[Mesa-dev] [PATCH 3/4] ac: move get_elem_bits() to ac_llvm_build.c

2018-02-05 Thread Timothy Arceri
--- src/amd/common/ac_llvm_build.c | 19 +++ src/amd/common/ac_llvm_build.h | 3 +++ src/amd/common/ac_nir_to_llvm.c | 34 -- 3 files changed, 30 insertions(+), 26 deletions(-) diff --git a/src/amd/common/ac_llvm_build.c

[Mesa-dev] [PATCH 2/4] ac: add 64bit bitCount support

2018-02-05 Thread Timothy Arceri
--- src/amd/common/ac_nir_to_llvm.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index ac4af12b3e..e06a22f8a9 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@

Re: [Mesa-dev] [PATCH 9/9] r600: work out target mask at framebuffer bind.

2018-02-05 Thread Roland Scheidegger
For 7-9/9 Reviewed-by: Roland Scheidegger Am 05.02.2018 um 05:29 schrieb Dave Airlie: > From: Dave Airlie > > If we only get 1,2,3,6 framebuffers we want a sparse target mask. > > Signed-off-by: Dave Airlie > --- >

[Mesa-dev] [Bug 102032] nir_op_imod is incorrectly implemented as LLVM's srem

2018-02-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102032 --- Comment #2 from programmerj...@gmail.com --- (In reply to Bas Nieuwenhuizen from comment #1) > I went looking to why there were no good CTS tests for this and found this > in the vulkan spec: > > For the OpSRem and OpSMod instructions, if

Re: [Mesa-dev] [PATCH 8/9] r600: work out shader export mask at shader build time

2018-02-05 Thread Roland Scheidegger
Am 05.02.2018 um 05:29 schrieb Dave Airlie: > From: Dave Airlie > > Since enhanced layouts allows setting specific MRT outputs, we > can get sparse outputs, so we have to calculate the shader > mask earlier. > > Signed-off-by: Dave Airlie > --- >

Re: [Mesa-dev] [PATCH 6/9] r600/compute: only mark buffer/image state dirty for fragment shaders

2018-02-05 Thread Roland Scheidegger
Am 05.02.2018 um 05:29 schrieb Dave Airlie: > From: Dave Airlie > > The compute emission path always emits this currently, and emitting > it on the fragment path breaks the blitter. > > This fixes gpu hangs in KHR-GL45.compute_shader.resource-texture > > Signed-off-by: Dave

Re: [Mesa-dev] [PATCH] Haiku: convert to autotools

2018-02-05 Thread kallisti5
On 2018-02-05 18:13, Dylan Baker wrote: Pretty close. I lied, apparently the pthreads fix is in 0.44 https://github.com/mesonbuild/meson/commit/fc547ad05e5a8e650ae5bc2ecc7d40e4dbcc9f0f Here's my branch, but it needs rebase pretty bad, there's also a patch to use shared glapi that I added

Re: [Mesa-dev] [PATCH 3/9] r600: overhaul buffer resource query.

2018-02-05 Thread Roland Scheidegger
Am 05.02.2018 um 05:29 schrieb Dave Airlie: > From: Dave Airlie > > This cleans up and fixes the previous fix even more. > > Buffers from textures start at max const, > buffers from buffers/images come in from the 168 offset. > > This fixes a bunch of: >

[Mesa-dev] [PATCH] nir: remove the abs call in is_neg_power_of_two

2018-02-05 Thread Vlad Golovkin
val->i32[swizzle[i]] is guaranteed to have non-positive value before the __is_power_of_two call, so unary minus is equivalent to abs in this case. --- src/compiler/nir/nir_search_helpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_search_helpers.h

Re: [Mesa-dev] [PATCH v2 20/24] anv/cmd_buffer: Rework aux tracking

2018-02-05 Thread Nanley Chery
On Mon, Feb 05, 2018 at 06:05:59PM -0800, Jason Ekstrand wrote: > On Mon, Feb 5, 2018 at 5:41 PM, Nanley Chery wrote: > > > On Fri, Jan 19, 2018 at 03:47:37PM -0800, Jason Ekstrand wrote: > > > This commit completely reworks aux tracking. This includes a number of > > >

[Mesa-dev] [PATCH v3 20/24] anv/cmd_buffer: Rework aux tracking

2018-02-05 Thread Jason Ekstrand
This commit completely reworks aux tracking. This includes a number of somewhat distinct changes: 1) Since we are no longer fast-clearing multiple slices, we only need to track one fast clear color and one fast clear type. 2) We store two bits for fast clear instead of one to let us

Re: [Mesa-dev] [PATCH v2 20/24] anv/cmd_buffer: Rework aux tracking

2018-02-05 Thread Nanley Chery
On Fri, Jan 19, 2018 at 03:47:37PM -0800, Jason Ekstrand wrote: > This commit completely reworks aux tracking. This includes a number of > somewhat distinct changes: > > 1) Since we are no longer fast-clearing multiple slices, we only need > to track one fast clear color and one fast clear

Re: [Mesa-dev] [PATCH v2 20/24] anv/cmd_buffer: Rework aux tracking

2018-02-05 Thread Jason Ekstrand
On Mon, Feb 5, 2018 at 5:41 PM, Nanley Chery wrote: > On Fri, Jan 19, 2018 at 03:47:37PM -0800, Jason Ekstrand wrote: > > This commit completely reworks aux tracking. This includes a number of > > somewhat distinct changes: > > > > 1) Since we are no longer fast-clearing

Re: [Mesa-dev] [PATCH v2 20/24] anv/cmd_buffer: Rework aux tracking

2018-02-05 Thread Nanley Chery
On Fri, Jan 19, 2018 at 03:47:37PM -0800, Jason Ekstrand wrote: > This commit completely reworks aux tracking. This includes a number of > somewhat distinct changes: > > 1) Since we are no longer fast-clearing multiple slices, we only need > to track one fast clear color and one fast clear

Re: [Mesa-dev] [PATCH] Haiku: convert to autotools

2018-02-05 Thread kallisti5
On 2018-02-05 18:13, Dylan Baker wrote: Quoting kallisti5 (2018-02-05 15:36:06) On 2018-02-05 16:14, kallisti5 wrote: > On 2018-02-05 15:39, Dylan Baker wrote: >> Quoting kallisti5 (2018-02-05 12:58:30) >>> On 2017-10-24 11:47, Emil Velikov wrote: >>> > Hi Jerome, >>> > >>> > On 23 October 2017

Re: [Mesa-dev] [PATCH] Haiku: convert to autotools

2018-02-05 Thread Dylan Baker
Quoting kallisti5 (2018-02-05 15:36:06) > On 2018-02-05 16:14, kallisti5 wrote: > > On 2018-02-05 15:39, Dylan Baker wrote: > >> Quoting kallisti5 (2018-02-05 12:58:30) > >>> On 2017-10-24 11:47, Emil Velikov wrote: > >>> > Hi Jerome, > >>> > > >>> > On 23 October 2017 at 16:58, Jerome Duval

[Mesa-dev] [PATCH v2] radeonsi/nir: always set input_usage_mask as using all components

2018-02-05 Thread Timothy Arceri
This fixes a regression for now, in the future we should gather the used components properly. V2: just set for VS and correctly handle doubles Fixes: be973ed21f6e "radeonsi: load the right number of components for VS inputs and TBOs" Cc: Marek Olšák ---

Re: [Mesa-dev] [PATCH v2 1/6] android: Move gralloc handle struct to libdrm

2018-02-05 Thread Rob Herring
On Mon, Jan 29, 2018 at 11:37 AM, Robert Foss wrote: > This struct is used in mesa and drm_hwcomposer. > Versions of if have been implemented in several grallocs: > drm_gralloc, gbm_gralloc, minigbm and intel-minigbm. > > Other than the 1:1 move of the struct a new

[Mesa-dev] [PATCH] i965: Do null pointer check before dereferencing vue_prog_data

2018-02-05 Thread Anuj Phogat
Signed-off-by: Anuj Phogat --- src/mesa/drivers/dri/i965/genX_state_upload.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/genX_state_upload.c b/src/mesa/drivers/dri/i965/genX_state_upload.c index aa4d64d08e..67fb328dbc

[Mesa-dev] [PATCH] intel/isl: Add assertion for aux surface pitch

2018-02-05 Thread Anuj Phogat
I don't have a test case hitting this assert. But, it's nice to have an assert checking the limit. Signed-off-by: Anuj Phogat --- src/intel/isl/isl_surface_state.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel/isl/isl_surface_state.c

Re: [Mesa-dev] [PATCH 0/3] Fix and tweak to the VAO v2

2018-02-05 Thread Brian Paul
On 02/05/2018 03:19 PM, mathias.froehl...@gmx.net wrote: From: Mathias Fröhlich Hi Brian, Actually after incorporating your review requests to set gl_vertex_array::Size and gl_vertex_array::Ptr to zero, radeonsi started to assert in Bitmap/CopyPixels/DrawPixels.

Re: [Mesa-dev] [PATCH] util: remove redundant check for the __clang__ macro

2018-02-05 Thread Brian Paul
I'm tempted to say the other places which only check for __GNUC__ should also check for __clang__, just to be move obvious (or does everyone know that __clang__ implies __GNUC_?). Maybe others have an opinion. Anyway, the location in question below seems to be first place this appears in

Re: [Mesa-dev] [PATCH] Haiku: convert to autotools

2018-02-05 Thread Dylan Baker
Quoting kallisti5 (2018-02-05 14:14:42) > On 2018-02-05 15:39, Dylan Baker wrote: > > Quoting kallisti5 (2018-02-05 12:58:30) > >> On 2017-10-24 11:47, Emil Velikov wrote: > >> > Hi Jerome, > >> > > >> > On 23 October 2017 at 16:58, Jerome Duval > >> > wrote: > >> >> *

Re: [Mesa-dev] [PATCH] Haiku: convert to autotools

2018-02-05 Thread kallisti5
On 2018-02-05 16:14, kallisti5 wrote: On 2018-02-05 15:39, Dylan Baker wrote: Quoting kallisti5 (2018-02-05 12:58:30) On 2017-10-24 11:47, Emil Velikov wrote: > Hi Jerome, > > On 23 October 2017 at 16:58, Jerome Duval > wrote: >> * configure.ac: >> -pthread is not

Re: [Mesa-dev] [PATCH] r600/fp64: Fix build.

2018-02-05 Thread Dylan Baker
This is turning our CI red, so I'm going to go ahead and push this. Quoting Vinson Lee (2018-02-05 15:24:45) > CC r600_shader.lo > r600_shader.c: In function ‘egcm_int_to_double’: > r600_shader.c:4543:12: error: ‘ctx’ is a pointer; did you mean to use ‘->’? > if (ctx.bc->chip_class

Re: [Mesa-dev] [PATCH] r600/fp64: Fix build.

2018-02-05 Thread Dylan Baker
I just wrote the same patch: Reviewed-by: Dylan Baker Quoting Vinson Lee (2018-02-05 15:24:45) > CC r600_shader.lo > r600_shader.c: In function ‘egcm_int_to_double’: > r600_shader.c:4543:12: error: ‘ctx’ is a pointer; did you mean to use ‘->’? > if

Re: [Mesa-dev] [PATCH] nir: lower fexp2(fmul(flog2(a), 2)) to fmul(a, a)

2018-02-05 Thread Ian Romanick
Do you have any data from shader-db for this change (and the other patch)? On 02/05/2018 06:08 AM, Samuel Pitoiset wrote: > Similar for the 4 case. > > Suggested by Bas. > > Signed-off-by: Samuel Pitoiset > --- > src/compiler/nir/nir_opt_algebraic.py | 2 ++ > 1

[Mesa-dev] [PATCH] r600/fp64: Fix build.

2018-02-05 Thread Vinson Lee
CC r600_shader.lo r600_shader.c: In function ‘egcm_int_to_double’: r600_shader.c:4543:12: error: ‘ctx’ is a pointer; did you mean to use ‘->’? if (ctx.bc->chip_class == CAYMAN) ^ -> Fixes: 35b430157776 ("r600/fp64: fix integer->double conversion")

Re: [Mesa-dev] [PATCH v2 1/3] st/glsl_to_tgsi: move nir detection earlier - bisected

2018-02-05 Thread Timothy Arceri
On 05/02/18 15:04, Dieter Nützel wrote: Am 02.02.2018 10:24, schrieb Timothy Arceri: On 02/02/18 19:26, Dieter Nützel wrote: Hello Tim, _this_ version brake UH, UV, mpv, blender 2.79 (some test files not all). Must be something with the cache file(s). The cache currently needs to be

[Mesa-dev] [PATCH] radeonsi/nir: always set input_usage_mask as using all components

2018-02-05 Thread Timothy Arceri
This fixes a regression for now, in the future we should gather the used components properly. Fixes: be973ed21f6e "radeonsi: load the right number of components for VS inputs and TBOs" Cc: Marek Olšák --- src/gallium/drivers/radeonsi/si_shader_nir.c | 7 +-- 1 file

[Mesa-dev] [PATCH 5/5] anv/image: Support CCS_E for images which may be used for storage

2018-02-05 Thread Jason Ekstrand
We have to do resolves whenever we go into the general layout for these images. However, it also means that images which declare the storage usage but don't actually need it most of the time will still get compression. --- src/intel/vulkan/anv_image.c | 18 +++--- 1 file changed, 15

[Mesa-dev] [PATCH 1/5] anv/cmd_buffer: Simplify transition_depth_buffer

2018-02-05 Thread Jason Ekstrand
If we don't have HiZ, then anv_layout_to_aux_usage will return NONE for both layouts. If the two layouts are the same, they will get the aux usage. In either case, the code below will give us ISL_AUX_OP_NONE and we'll return without doing anything. --- src/intel/vulkan/genX_cmd_buffer.c | 12

[Mesa-dev] [PATCH 2/5] anv/cmd_buffer: Use layout_to_* helpers in compute_aux_usage

2018-02-05 Thread Jason Ekstrand
--- src/intel/vulkan/genX_cmd_buffer.c | 53 +- 1 file changed, 35 insertions(+), 18 deletions(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index a7950cf..056528f 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++

[Mesa-dev] [PATCH 4/5] anv/blorp: Use layout_to_aux_usage when a layout is provided

2018-02-05 Thread Jason Ekstrand
Instead of having aux usage and ANV_AUX_USAGE_DEFAULT to mean "give me something reasonable" we now use anv_layout_to_aux_usage whenever a layout is available. If a layout is available, we ignore the aux_usage parameter. For the cases where we have an explicit aux usage such as clears and aux

[Mesa-dev] [PATCH 0/5] anv: Support CCS_E for images which may be used for

2018-02-05 Thread Jason Ekstrand
This little series adds support for enabling CCS_E for images which may have VK_IMAGE_USAGE_STORAGE_BIT set. Previously, we just bailed on these images and disabled CCS. However, so long as we do a full resolve when entering VK_IMAGE_LAYOUT_GENERAL, we can support CCS_E for all the other layouts

[Mesa-dev] [PATCH 3/5] anv/cmd_buffer: Delete some assert-only variables

2018-02-05 Thread Jason Ekstrand
Checking the sample count is almost as good as aux usage in this case. --- src/intel/vulkan/genX_cmd_buffer.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 056528f..afe577c 100644 ---

[Mesa-dev] [PATCH 14/14] anv/cmd_buffer: Avoid unnecessary transitions before fast clears

2018-02-05 Thread Jason Ekstrand
Previously, we would always apply the layout transition at the beginning of the subpass and then do the clear whether fast or slow. This meant that there were some cases, specifically when the initial layout is VK_IMAGE_LAYOUT_UNDEFINED, where we would end up doing a fast-clear or ambiguate

[Mesa-dev] [PATCH 13/14] anv/cmd_buffer: Do subpass image transitions in begin/end_subpass

2018-02-05 Thread Jason Ekstrand
--- src/intel/vulkan/genX_cmd_buffer.c | 190 + 1 file changed, 68 insertions(+), 122 deletions(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 2d17c28..2732ef3 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++

[Mesa-dev] [PATCH 01/14] anv/cmd_buffer: Apply subpass flushes before set_subpass

2018-02-05 Thread Jason Ekstrand
This seems slightly more correct because it means that the flushes happen before any clears or resolves implied by the subpass transition. --- src/intel/vulkan/genX_cmd_buffer.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c

[Mesa-dev] [PATCH 04/14] anv/cmd_buffer: Move the color portion of clear_subpass into begin_subpass

2018-02-05 Thread Jason Ekstrand
This doesn't really change much now but it will give us more/better control over clears in the future. The one interesting functional change here is that we are now re-emitting 3DSTATE_DEPTH_BUFFERS and friends for each clear. However, this only happens at begin_subpass time so it shouldn't be

[Mesa-dev] [PATCH 07/14] anv/cmd_buffer: Decide whether or not to HiZ clear up-front

2018-02-05 Thread Jason Ekstrand
This moves the decision out of begin_subpass and into BeginRenderPass like the decision for color clears. We use a similar name for the function for depth/stencil as for color even though no aux usage is really getting computed. --- src/intel/vulkan/genX_cmd_buffer.c | 84

[Mesa-dev] [PATCH 02/14] anv/cmd_buffer: Add begin/end_subpass helpers

2018-02-05 Thread Jason Ekstrand
Having begin/end_subpass is a bit nicer than the begin/next/end hooks that Vulkan gives us. --- src/intel/vulkan/genX_cmd_buffer.c | 55 +- 1 file changed, 31 insertions(+), 24 deletions(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c

[Mesa-dev] [PATCH 12/14] anv/cmd_buffer: Mark depth/stencil surfaces written in begin_subpass

2018-02-05 Thread Jason Ekstrand
--- src/intel/vulkan/genX_cmd_buffer.c | 50 ++ 1 file changed, 29 insertions(+), 21 deletions(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 4eee85a..2d17c28 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++

[Mesa-dev] [PATCH 03/14] anv/cmd_buffer: Pass a subpass id into begin_subpass

2018-02-05 Thread Jason Ekstrand
This is a bit less awkward than passing in the subpass because it means we don't have to extract the subpass id from the subpass. --- src/intel/vulkan/genX_cmd_buffer.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c

[Mesa-dev] [PATCH 11/14] anv/cmd_buffer: Sync clear values in begin_subpass

2018-02-05 Thread Jason Ekstrand
This is quite a bit cleaner because we now sync the clear values at the same time as we do the fast clear. For loading the clear values into the surface state, we now do it once when we handle the LOAD_OP_LOAD instead of every subpass. --- src/intel/vulkan/genX_cmd_buffer.c | 148

[Mesa-dev] [PATCH 05/14] intel/blorp: Add a blorp_hiz_clear_depth_stencil helper

2018-02-05 Thread Jason Ekstrand
This is similar to blorp_gen8_hiz_clear_attachments except that it takes actual images instead of trusting in the already set depth state. --- src/intel/blorp/blorp.h | 11 ++ src/intel/blorp/blorp_clear.c | 50 +++ 2 files changed, 61

[Mesa-dev] [PATCH 09/14] anv/cmd_buffer: Add a concept of pending load aspects

2018-02-05 Thread Jason Ekstrand
These are the same as pending clear aspects only for the "load" operation. --- src/intel/vulkan/anv_private.h | 1 + src/intel/vulkan/genX_cmd_buffer.c | 22 -- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/intel/vulkan/anv_private.h

[Mesa-dev] [PATCH 10/14] anv/pass: Store usage in each subpass attachment

2018-02-05 Thread Jason Ekstrand
This requires us to ditch the VkAttachmentReference struct in favor of an anv-specific struct. However, we can now easily identify from just the subpass attachment what kind of an attachment it is. This will make iteration over anv_subpass::attachments a little easier in some case. ---

[Mesa-dev] [PATCH 08/14] anv/cmd_buffer: Iterate all subpass attachments when clearing

2018-02-05 Thread Jason Ekstrand
This unifies things a bit because we now handle depth and stencil at the same time. It also ensures that clears happen for input attachments. --- src/intel/vulkan/genX_cmd_buffer.c | 77 -- 1 file changed, 32 insertions(+), 45 deletions(-) diff --git

[Mesa-dev] [PATCH 06/14] anv/cmd_buffer: Move the rest of clear_subpass into begin_subpass

2018-02-05 Thread Jason Ekstrand
--- src/intel/vulkan/anv_blorp.c | 243 - src/intel/vulkan/anv_private.h | 17 ++- src/intel/vulkan/genX_cmd_buffer.c | 68 ++- 3 files changed, 188 insertions(+), 140 deletions(-) diff --git a/src/intel/vulkan/anv_blorp.c

[Mesa-dev] [PATCH 00/14] anv: Rework subpass resolves and clears

2018-02-05 Thread Jason Ekstrand
This little series just shuffles code around to make things a bit more clear. (At least I think it does!) The basic idea is to split set_subpass into begin_subpass and end_subpass and then move all of resolve and clear code into those two helpers. This means that we no longer have 3 or 4

Re: [Mesa-dev] [PATCH] mesa: rename gl_vertex_array_object::_VertexAttrib -> _VertexArray

2018-02-05 Thread Mathias Fröhlich
Hi Brian, On Monday, 5 February 2018 18:23:17 CET Brian Paul wrote: > Since the type is gl_vertex_array. Update comment to explain that > these arrays are only used by the VBO module. > > Also rename some local variables in _mesa_update_vao_derived_arrays(). Makes sense to me and the change

[Mesa-dev] [PATCH 2/3] mesa: Mute arrays for Bitmap/CopyPixels/DrawPixels callbacks.

2018-02-05 Thread Mathias . Froehlich
From: Mathias Fröhlich Set the _DrawArray pointer to NULL when calling into the Drivers Bitmap/CopyPixels/DrawPixels hooks. This fixes an assert that gets uncovered with the following patch gets applied. Signed-off-by: Mathias Fröhlich ---

[Mesa-dev] [PATCH 1/3] mesa: Fix VAO buffer object tracking.

2018-02-05 Thread Mathias . Froehlich
From: Mathias Fröhlich When changing the attribute binding in the VAO we also need to account for getting rid of non vbo bits from VertexAttribBufferMask. Signed-off-by: Mathias Fröhlich Reviewed-by: Brian Paul ---

[Mesa-dev] [PATCH 3/3] mesa: Only update enabled VAO gl_vertex_array entries.

2018-02-05 Thread Mathias . Froehlich
From: Mathias Fröhlich Instead of updating all modified gl_vertex_array_object::_VertexArray entries just update those that are modified and enabled. Also release buffer object from the _VertexArray that belong to disabled attributes. v2: Also set Ptr and Size to zero.

[Mesa-dev] [PATCH 0/3] Fix and tweak to the VAO v2

2018-02-05 Thread Mathias . Froehlich
From: Mathias Fröhlich Hi Brian, Actually after incorporating your review requests to set gl_vertex_array::Size and gl_vertex_array::Ptr to zero, radeonsi started to assert in Bitmap/CopyPixels/DrawPixels. So, here the updated series including the requested changes.

Re: [Mesa-dev] [PATCH] Haiku: convert to autotools

2018-02-05 Thread kallisti5
On 2018-02-05 15:39, Dylan Baker wrote: Quoting kallisti5 (2018-02-05 12:58:30) On 2017-10-24 11:47, Emil Velikov wrote: > Hi Jerome, > > On 23 October 2017 at 16:58, Jerome Duval > wrote: >> * configure.ac: >> -pthread is not available on Haiku. >> Haiku doesn't

Re: [Mesa-dev] [PATCH] ac/nir: remove emission of nir_op_fdiv

2018-02-05 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Mon, Feb 5, 2018 at 9:37 PM, Samuel Pitoiset wrote: > RadeonSI and RADV lower fdiv. > > Signed-off-by: Samuel Pitoiset > --- > src/amd/common/ac_nir_to_llvm.c | 5 - > 1 file

[Mesa-dev] [PATCH] meson: ensure xmlpool/options.h is generated for libgallium

2018-02-05 Thread Jon Turney
In file included from ../src/gallium/targets/dri/target.c:1: In file included from ../src/gallium/auxiliary/target-helpers/drm_helper.h:8: ../src/util/xmlpool.h:103:10: fatal error: 'xmlpool/options.h' file not found See also 26bde1e3. Signed-off-by: Jon Turney ---

Re: [Mesa-dev] [PATCH] util: remove redundant check for the __clang__ macro

2018-02-05 Thread Vlad Golovkin
In this file there are similar cases with macros PUBLIC, USED and ATTRIBUTE_NOINLINE, before defining which as __attribute__(...), code only checks for __GNUC__. Should I add comments there as well? 2018-02-05 22:51 GMT+02:00 Brian Paul : > On 02/05/2018 01:44 PM, Vlad Golovkin

Re: [Mesa-dev] [PATCH] Haiku: convert to autotools

2018-02-05 Thread Dylan Baker
Quoting kallisti5 (2018-02-05 12:58:30) > On 2017-10-24 11:47, Emil Velikov wrote: > > Hi Jerome, > > > > On 23 October 2017 at 16:58, Jerome Duval > > wrote: > >> * configure.ac: > >> -pthread is not available on Haiku. > >> Haiku doesn't require --enable-dri > >>

Re: [Mesa-dev] [PATCH] ac/nir: remove emission of nir_op_fdiv

2018-02-05 Thread Timothy Arceri
Reviewed-by: Timothy Arceri On 06/02/18 07:37, Samuel Pitoiset wrote: RadeonSI and RADV lower fdiv. Signed-off-by: Samuel Pitoiset --- src/amd/common/ac_nir_to_llvm.c | 5 - 1 file changed, 5 deletions(-) diff --git

[Mesa-dev] [PATCH 7/8] drivers/radeonsi:create uvd hevc enc entry

2018-02-05 Thread James Zhu
Add UVD hevc encode pipe video codec creation entry Signed-off-by: James Zhu --- src/gallium/drivers/radeonsi/si_uvd.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_uvd.c

Re: [Mesa-dev] [PATCH 2/8] amdgpu/drm:add uvd hevc enc support in amdgpu cs

2018-02-05 Thread Boyuan Zhang
On 2018-02-05 12:16 PM, James Zhu wrote: Signed-off-by: James Zhu --- src/gallium/winsys/amdgpu/drm/amdgpu_cs.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c index

Re: [Mesa-dev] [PATCH] Haiku: convert to autotools

2018-02-05 Thread kallisti5
On 2017-10-24 11:47, Emil Velikov wrote: Hi Jerome, On 23 October 2017 at 16:58, Jerome Duval wrote: * configure.ac: -pthread is not available on Haiku. Haiku doesn't require --enable-dri build hgl on Haiku * egl/Makefile.am: define backendfiles for Haiku *

Re: [Mesa-dev] [PATCH v2 0/6] Implement commont gralloc_handle_t in libdrm

2018-02-05 Thread Robert Foss
Hey, I haven't seen any feedback, but am looking for an ACK/LGTM. If anyone has a cycle to spare, it would be helpful :) Thanks, Rob. On 01/29/2018 06:37 PM, Robert Foss wrote: This series moves {gbm,drm,cros}_gralloc_handle_t struct to libdrm, since at least 4 implementations exist, and

Re: [Mesa-dev] [PATCH 1/8] amd/common:add uvd hevc enc support check in hw query

2018-02-05 Thread Boyuan Zhang
On 2018-02-05 12:16 PM, James Zhu wrote: Based on amdgpu hardware query information to check if UVD hevc enc support Signed-off-by: James Zhu --- src/amd/common/ac_gpu_info.c | 10 +- src/amd/common/ac_gpu_info.h | 1 + 2 files changed, 10 insertions(+), 1

Re: [Mesa-dev] [PATCH] util: remove redundant check for the __clang__ macro

2018-02-05 Thread Brian Paul
On 02/05/2018 01:44 PM, Vlad Golovkin wrote: Clang defines __GNUC__ macro, so one doesn't need to check __clang__ macro in this particular case. Perhaps mention that in a comment below so there's no confusion. -Brian --- src/util/macros.h | 2 +- 1 file changed, 1 insertion(+), 1

[Mesa-dev] [PATCH] util: remove redundant check for the __clang__ macro

2018-02-05 Thread Vlad Golovkin
Clang defines __GNUC__ macro, so one doesn't need to check __clang__ macro in this particular case. --- src/util/macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/macros.h b/src/util/macros.h index 432d513930..d36ca095d5 100644 --- a/src/util/macros.h +++

[Mesa-dev] [PATCH] ac/nir: remove emission of nir_op_fdiv

2018-02-05 Thread Samuel Pitoiset
RadeonSI and RADV lower fdiv. Signed-off-by: Samuel Pitoiset --- src/amd/common/ac_nir_to_llvm.c | 5 - 1 file changed, 5 deletions(-) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index b211832b47..e25bae600f 100644 ---

Re: [Mesa-dev] [PATCH 7/8] drivers/radeonsi:create uvd hevc enc entry

2018-02-05 Thread Boyuan Zhang
On 2018-02-05 12:16 PM, James Zhu wrote: Add UVD hevc encode pipe video codec creation entry Signed-off-by: James Zhu --- src/gallium/drivers/radeonsi/si_uvd.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git

[Mesa-dev] [PATCH 5/8] drivers/radeon:add uvd hevc enc functions

2018-02-05 Thread James Zhu
Implement UVD hevc encode functions Signed-off-by: James Zhu --- src/gallium/drivers/radeon/radeon_uvd_enc.c | 340 1 file changed, 340 insertions(+) create mode 100644 src/gallium/drivers/radeon/radeon_uvd_enc.c diff --git

Re: [Mesa-dev] [PATCH] meson: better defaults for osx, windows and cygwin

2018-02-05 Thread Jon Turney
On 05/02/2018 17:34, Dylan Baker wrote: Quoting Jon Turney (2018-02-03 13:19:20) On 03/02/2018 18:07, Dylan Baker wrote: Quoting Jon Turney (2018-02-03 05:49:40) - if not ['darwin', 'windows'].contains(host_machine.system()) + if not ['darwin', 'windows',

Re: [Mesa-dev] [PATCH 5/8] drivers/radeon:add uvd hevc enc functions

2018-02-05 Thread James Zhu
On 2018-02-05 01:04 PM, Alex Deucher wrote: On Mon, Feb 5, 2018 at 12:16 PM, James Zhu wrote: Implement UVD hevc encode functions Signed-off-by: James Zhu --- 1 | 21 ++

Re: [Mesa-dev] [PATCH] i965: Enable disk shader cache by default

2018-02-05 Thread Jason Ekstrand
On Sat, Feb 3, 2018 at 2:58 PM, Jordan Justen wrote: > On 2018-02-03 14:24:06, Jason Ekstrand wrote: > > On February 3, 2018 13:59:40 Jordan Justen > wrote: > > > > > Signed-off-by: Jordan Justen > > >

Re: [Mesa-dev] [PATCH 2/4] i965/gen10: Use CS Stall instead of WriteImmediate.

2018-02-05 Thread Rafael Antognolli
The first 2 patches of this series should be added to branch 18.0 too. On Fri, Jan 26, 2018 at 11:32:38AM -0800, Rafael Antognolli wrote: > Fixes: ca19ee33d7d39cb89d948b1c983763065975ce5b > Signed-off-by: Rafael Antognolli > Cc: Kenneth Graunke

Re: [Mesa-dev] [PATCH] meson: better defaults for osx, windows and cygwin

2018-02-05 Thread Dylan Baker
Quoting Jon Turney (2018-02-03 13:19:20) > On 03/02/2018 18:07, Dylan Baker wrote: > > Quoting Jon Turney (2018-02-03 05:49:40) > >> - if not ['darwin', 'windows'].contains(host_machine.system()) > >> + if not ['darwin', 'windows', 'cygwin'].contains(host_machine.system()) > >> +# TODO: PPC,

Re: [Mesa-dev] [PATCH v2] i965/nir: do int64 lowering before optimization

2018-02-05 Thread Matt Turner
On Mon, Feb 5, 2018 at 5:40 AM, Iago Toral Quiroga wrote: > Otherwise loop unrolling will fail to see the actual cost of > the unrolling operations when the loop body contains 64-bit integer > instructions, and very specially when the divmod64 lowering applies, > since its

Re: [Mesa-dev] [PATCH 5/8] drivers/radeon:add uvd hevc enc functions

2018-02-05 Thread Alex Deucher
On Mon, Feb 5, 2018 at 12:16 PM, James Zhu wrote: > Implement UVD hevc encode functions > > Signed-off-by: James Zhu > --- > 1 | 21 ++ > src/gallium/drivers/radeon/radeon_uvd_enc.c | 340 >

[Mesa-dev] [Bug 104949] swrast: Epiphany WEB browser core dumps under Mesa 17.3.3

2018-02-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104949 --- Comment #3 from Daniel Stone --- Yeah, good catch! Bug filed: https://bugs.webkit.org/show_bug.cgi?id=182490 -- You are receiving this mail because: You are the assignee for the bug. You are the QA Contact for the

[Mesa-dev] [PATCH] mesa: rename gl_vertex_array_object::_VertexAttrib -> _VertexArray

2018-02-05 Thread Brian Paul
Since the type is gl_vertex_array. Update comment to explain that these arrays are only used by the VBO module. Also rename some local variables in _mesa_update_vao_derived_arrays(). --- src/mesa/main/arrayobj.c | 13 ++--- src/mesa/main/attrib.c| 2 +-

[Mesa-dev] [PATCH 2/3] st/mesa: refactor st_bufferobj_map_range()

2018-02-05 Thread Brian Paul
Use a new helper function, st_access_flags_to_transfer_flags(), to convert the GL_MAP_x flags to PIPE_TRANSFER_x flags. We'll be able to use this function in a couple other places. --- src/mesa/state_tracker/st_cb_bufferobjects.c | 38

[Mesa-dev] [PATCH 3/3] st/mesa: use st_access_flags_to_transfer_flags() helper in more places

2018-02-05 Thread Brian Paul
--- src/mesa/state_tracker/st_cb_fbo.c | 18 +- src/mesa/state_tracker/st_cb_texture.c | 17 - 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c index 3a5c03c..0800f5b

[Mesa-dev] [PATCH 1/3] st/mesa: refactor bufferobj_data()

2018-02-05 Thread Brian Paul
Split out some of the code into three new helper functions: buffer_target_to_bind_flags(), storage_flags_to_buffer_flags(), buffer_usage() to make the code more managable. --- src/mesa/state_tracker/st_cb_bufferobjects.c | 191 +++ 1 file changed, 104 insertions(+), 87

[Mesa-dev] [Bug 104777] Attaching multiple shader objects for the same stage to a GLSL program triggers a linker error

2018-02-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104777 Juan A. Suarez changed: What|Removed |Added Resolution|--- |FIXED

[Mesa-dev] [PATCH 8/8] drivers/radeonsi: enable uvd encode for HEVC main

2018-02-05 Thread James Zhu
Enable UVD encode for HEVC main profile Signed-off-by: James Zhu --- src/gallium/drivers/radeonsi/si_get.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index

[Mesa-dev] [PATCH 5/8] drivers/radeon:add uvd hevc enc functions

2018-02-05 Thread James Zhu
Implement UVD hevc encode functions Signed-off-by: James Zhu --- 1 | 21 ++ src/gallium/drivers/radeon/radeon_uvd_enc.c | 340 2 files changed, 361 insertions(+) create mode 100644 1 create mode 100644

[Mesa-dev] [PATCH 2/8] amdgpu/drm:add uvd hevc enc support in amdgpu cs

2018-02-05 Thread James Zhu
Signed-off-by: James Zhu --- src/gallium/winsys/amdgpu/drm/amdgpu_cs.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c index 1927a3a..6f305b7 100644 ---

[Mesa-dev] [PATCH 1/8] amd/common:add uvd hevc enc support check in hw query

2018-02-05 Thread James Zhu
Based on amdgpu hardware query information to check if UVD hevc enc support Signed-off-by: James Zhu --- src/amd/common/ac_gpu_info.c | 10 +- src/amd/common/ac_gpu_info.h | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git

  1   2   >