Re: [Mesa-dev] [PATCH] radv: adopt some init config workarounds from radeonsi.

2017-02-14 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Tue, Feb 14, 2017, at 07:25, Dave Airlie wrote: > From: Dave Airlie > > Just one bonaire fix. > > Signed-off-by: Dave Airlie > --- > src/amd/vulkan/si_cmd_buffer.c | 11 +-- > 1 file changed, 9 insertions(+), 2 deletions(-) &

Re: [Mesa-dev] [PATCH] radv: fixup IA_MULTI_VGT_PARAM handling.

2017-02-14 Thread Bas Nieuwenhuizen
s(struct radv_cmd_buffer > *cmd_buffer, > } > > static void > -radv_cmd_buffer_flush_state(struct radv_cmd_buffer *cmd_buffer) > +radv_cmd_buffer_flush_state(struct radv_cmd_buffer *cmd_buffer, bool > instanced_or_indirect_draw, uint32_t count) > { Rename count to vertex_count or

Re: [Mesa-dev] [PATCH] radv: also fixup event emission to not get culled.

2017-02-14 Thread Bas Nieuwenhuizen
r-b for now. On Wed, Feb 15, 2017, at 01:16, Dave Airlie wrote: > From: Dave Airlie > > This is possibly a bad idea, I might have to consider a better one. > > Signed-off-by: Dave Airlie > --- > src/amd/vulkan/radv_cmd_buffer.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/amd

[Mesa-dev] [PATCH 1/3] radv: Add support for shaderStorageImageWriteWithoutFormat.

2017-02-14 Thread Bas Nieuwenhuizen
Signed-off-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_device.c | 2 +- src/amd/vulkan/radv_pipeline.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 1132eeb52d7..9185ef16dc0 100644 --- a/src/amd

[Mesa-dev] [PATCH 2/3] spirv: Add support for SpvCapabilityStorageImageReadWithoutFormat.

2017-02-14 Thread Bas Nieuwenhuizen
Signed-off-by: Bas Nieuwenhuizen --- src/compiler/spirv/nir_spirv.h| 1 + src/compiler/spirv/spirv_to_nir.c | 5 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/compiler/spirv/nir_spirv.h b/src/compiler/spirv/nir_spirv.h index e43e9b53825..8864a8f73d7 100644 --- a/src

[Mesa-dev] [PATCH 0/3] radv: Support image operations without format.

2017-02-14 Thread Bas Nieuwenhuizen
No regressions on CTS 1.0.2 mustpass, though I don't think there are tests for these extensions. I checked there were no references to the format in the nir->LLVM conversion though. Bas Nieuwenhuizen (3): radv: Add support for shaderStorageImageWriteWithoutFormat. spirv: Add sup

[Mesa-dev] [PATCH 3/3] radv: Add support for shaderStorageImageReadWithoutFormat.

2017-02-14 Thread Bas Nieuwenhuizen
Signed-off-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_device.c | 2 +- src/amd/vulkan/radv_pipeline.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 9185ef16dc0..be0d9d933fc 100644 --- a/src/amd/vulkan

Re: [Mesa-dev] [PATCH] radv: add fast color clear for b10g11r11

2017-02-14 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Wed, Feb 15, 2017, at 03:28, Dave Airlie wrote: > From: Dave Airlie > > This is used in DOOM, so provide the fast clear path for it. > > Signed-off-by: Dave Airlie > --- > src/amd/vulkan/radv_formats.c | 5 + > 1 file changed, 5

Re: [Mesa-dev] [PATCH 1/3] radv/ac: add support for some integer size conversions.

2017-02-15 Thread Bas Nieuwenhuizen
On Wed, Feb 15, 2017, at 09:43, Dave Airlie wrote: > From: Dave Airlie > > zero extend ->u64 and sign extend ->i64. > > Signed-off-by: Dave Airlie > --- > src/amd/common/ac_nir_to_llvm.c | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/src/amd/common/ac_nir_to_llvm.c > b/src/

[Mesa-dev] [PATCH 2/2] radv: Use different allocator for descriptor set vram.

2017-02-16 Thread Bas Nieuwenhuizen
This one only keeps allocated memory in the list, and list nodes in the descriptor sets. Thsi doesn't need messing around with max_sets, and we get automatic merging of free regions. Signed-off-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_descriptor_set.c

[Mesa-dev] [PATCH 1/2] radv: Never try to create more than max_sets descriptor sets.

2017-02-16 Thread Bas Nieuwenhuizen
We only use the freed ones after all free space has been used. If the app only allocates small descriptor sets, we might go over max_sets before the memory is full. Signed-off-by: Bas Nieuwenhuizen CC: Fixes: f4e499ec79147f4172f3669ae9dafd941aaeeb65 --- src/amd/vulkan/radv_descriptor_set.c | 7

[Mesa-dev] [PATCH] radv: Clamp framebuffer dimensions to min. attachment dimensions.

2017-02-18 Thread Bas Nieuwenhuizen
Even though the preferred stance is not to fix incorrect applications via the driver, this prevents some nasty GPU hangs. Signed-off-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_device.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/amd/vulkan

[Mesa-dev] [PATCH] radv: Invert ring SGPR check.

2017-02-18 Thread Bas Nieuwenhuizen
I assume this wants to check if all pipelines use the same SGPR for the rings. Signed-off-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_cmd_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index

Re: [Mesa-dev] [PATCH] radv: fix type in a2b10g10r10 fast clear calculation.

2017-02-19 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Sun, Feb 19, 2017 at 7:38 AM, Dave Airlie wrote: > From: Dave Airlie > > This fixes: > dEQP-VK.renderpass.formats.a2b10g10r10_unorm_pack32* > regressions. > > Signed-off-by: Dave Airlie > --- > src/amd/vulkan/radv_formats.c

Re: [Mesa-dev] [PATCH 2/2] radv: handle layered fast clears.

2017-02-19 Thread Bas Nieuwenhuizen
Series is Reviewed-by: Bas Nieuwenhuizen On Sun, Feb 19, 2017 at 7:33 AM, Dave Airlie wrote: > From: Dave Airlie > > This iterates the fast clear flush across the layers in the > specified range. > > It also moves the compute resolve flush into the function > and buil

[Mesa-dev] [PATCH] radv: Handle VK_REMAINING_ARRAY_LAYERS in fast clear eliminate.

2017-02-19 Thread Bas Nieuwenhuizen
Signed-off-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_meta_fast_clear.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_meta_fast_clear.c b/src/amd/vulkan/radv_meta_fast_clear.c index 0902c455037..ffaa9a3d5e8 100644 --- a/src/amd/vulkan

Re: [Mesa-dev] [PATCH] radv: fix common extensions getting registered twice.

2017-02-19 Thread Bas Nieuwenhuizen
On Sun, Feb 19, 2017 at 9:56 PM, Dave Airlie wrote: > From: Dave Airlie > > physical devices can be enumerated multiple time per instance, > this was causing the realloc to be hit for no reason, and > the CTS allocation verification would get angry. We only do the radv_physical_device_init on th

Re: [Mesa-dev] [PATCH] Revert "radv: detect command buffers that do no work and drop them (v2)"

2017-02-19 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Sun, Feb 19, 2017 at 11:48 PM, Dave Airlie wrote: > From: Dave Airlie > > This just keeps popping up minor problems and regressions we should > revisit in a more sustainable manner later. > > This also reverts: > Revert "radv: qu

[Mesa-dev] [PATCH 4/5] radv: Flush in the initial preamble CS.

2017-02-20 Thread Bas Nieuwenhuizen
Signed-off-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_device.c | 224 + src/amd/vulkan/radv_private.h | 12 ++- src/amd/vulkan/si_cmd_buffer.c | 2 +- 3 files changed, 148 insertions(+), 90 deletions(-) diff --git a/src/amd/vulkan/radv_device.c b

[Mesa-dev] [PATCH 5/5] radv: Don't flush at the start of a command buffer.

2017-02-20 Thread Bas Nieuwenhuizen
The preamble flushes now and the rest is the responsibility of the app. Signed-off-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_cmd_buffer.c | 15 --- 1 file changed, 15 deletions(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 5aea0e9de4b

[Mesa-dev] [PATCH 2/5] radv: Split emitting the cache flush out.

2017-02-20 Thread Bas Nieuwenhuizen
So that we can use it without a cmd_buffer. Signed-off-by: Bas Nieuwenhuizen --- src/amd/vulkan/si_cmd_buffer.c | 141 ++--- 1 file changed, 77 insertions(+), 64 deletions(-) diff --git a/src/amd/vulkan/si_cmd_buffer.c b/src/amd/vulkan/si_cmd_buffer.c index

[Mesa-dev] [PATCH 1/5] radv: Free empty_cs on device destruction.

2017-02-20 Thread Bas Nieuwenhuizen
Signed-off-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 7900ece9c89..4ec62a73585 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c

[Mesa-dev] [PATCH 3/5] radv: Special case the initial preamble.

2017-02-20 Thread Bas Nieuwenhuizen
For flushing we don't want to flush every third IB. Signed-off-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_device.c | 6 +++--- src/amd/vulkan/radv_radeon_winsys.h | 3 ++- src/amd/vulkan/radv_wsi.c | 2 +- src/amd/vulkan/winsys/a

Re: [Mesa-dev] [PATCH] radv: fetch sample index via fmask for image coord as well.

2017-02-22 Thread Bas Nieuwenhuizen
On Wed, Feb 22, 2017 at 5:31 AM, Dave Airlie wrote: > From: Dave Airlie > > This follows the txf_ms code, I can't figure out why amdgpu-pro > doesn't do this in their shaders, they must know someone we don't. > > This fixes: > dEQP-VK.pipeline.multisample_shader_builtin.sample_id.* > > Signed-off

Re: [Mesa-dev] [PATCH 3/3] radv/ac: handle gs->copy shader clip distances.

2017-02-22 Thread Bas Nieuwenhuizen
Series is: Reviewed-by: Bas Nieuwenhuizen On Tue, Feb 21, 2017 at 5:14 AM, Dave Airlie wrote: > From: Dave Airlie > > This fixes up the clip distance passing between the geometry > shader and the copy shader. It packs the clip and cull distances > into one or two consecutive sl

Re: [Mesa-dev] [PATCH 6/6] radv: add sample mask output support

2017-02-23 Thread Bas Nieuwenhuizen
For the series: Reviewed-by: Bas Nieuwenhuizen On Thu, Feb 23, 2017 at 7:09 AM, Dave Airlie wrote: > From: Dave Airlie > > This adds support to write to sample mask from the fragment shader. > > We can optimise this later like radeonsi. > > Signed-off-by: Dave Airlie &g

[Mesa-dev] [PATCH] radv/ac: Add integer->integer casts.

2017-02-25 Thread Bas Nieuwenhuizen
Signed-off-by: Bas Nieuwenhuizen --- src/amd/common/ac_nir_to_llvm.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index 9778581a1ef..4f3d689db7e 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd

[Mesa-dev] [PATCH] radv: Reset emitted compute pipeline when calling secondary cmd buffer.

2017-02-26 Thread Bas Nieuwenhuizen
Otherwise if the new compute pipeline is the same as the last used pipeline before the call, we don't emit it again. Signed-off-by: Bas Nieuwenhuizen Cc: 13.0 17.0 --- src/amd/vulkan/radv_cmd_buffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/vulkan/radv_cmd_buffer.c

[Mesa-dev] [PATCH 2/2] radv: Use correct size for availability flag.

2017-02-26 Thread Bas Nieuwenhuizen
Per spec, VK_QUERY_RESULT_64_BIT specifies the integer size and the availability flag is an integer. We apparently handled this correctly already for the copy to buffer case. Signed-off-by: Bas Nieuwenhuizen Cc: 13.0 17.0 --- src/amd/vulkan/radv_query.c | 7 +-- 1 file changed, 5

[Mesa-dev] [PATCH 1/2] radv: Only use PKT3_OCCLUSION_QUERY when it doesn't hang.

2017-02-26 Thread Bas Nieuwenhuizen
unitialized value is better than a hang. Signed-off-by: Bas Nieuwenhuizen Cc: 13.0 17.0 --- src/amd/vulkan/radv_query.c | 65 +++-- 1 file changed, 45 insertions(+), 20 deletions(-) diff --git a/src/amd/vulkan/radv_query.c b/src/amd/vulkan/radv_query.c

Re: [Mesa-dev] [PATCH] radv: fix depth format in blit2d.

2017-02-26 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Mon, Feb 27, 2017 at 8:00 AM, Dave Airlie wrote: > From: Dave Airlie > > For blitting we need to use the depth or stencil format, never > the combined. > > This fixes: > dEQP-VK.texture.shadow.2d.nearest.less_or_equal_d32_sfloat_s8_ui

Re: [Mesa-dev] [PATCH] radv/formats: add fast clear for 8-bit signed ints.

2017-02-26 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Mon, Feb 27, 2017 at 3:15 AM, Dave Airlie wrote: > From: Dave Airlie > > These formats are used by some CTS tests, may as well fill them in. > > Signed-off-by: Dave Airlie > --- > src/amd/vulkan/radv_formats.c | 16

[Mesa-dev] [PATCH 2/4] radv: Detect if all immutable samplers for a binding are equal.

2017-02-27 Thread Bas Nieuwenhuizen
We can then use constants for indexed loads. Signed-off-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_descriptor_set.c | 5 + src/amd/vulkan/radv_descriptor_set.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/amd/vulkan/radv_descriptor_set.c b/src/amd/vulkan

[Mesa-dev] [PATCH 1/4] radv: Store the immutable samplers as uint32_t[4].

2017-02-27 Thread Bas Nieuwenhuizen
So we don't need to know about radv_sampler in ac_nir_to_llvm. Signed-off-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_descriptor_set.c | 14 +- src/amd/vulkan/radv_descriptor_set.h | 2 +- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/amd/v

[Mesa-dev] [PATCH 4/4] radv: Don't allocate space for unused immutable samplers.

2017-02-27 Thread Bas Nieuwenhuizen
Signed-off-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_descriptor_set.c | 23 ++- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/amd/vulkan/radv_descriptor_set.c b/src/amd/vulkan/radv_descriptor_set.c index d8399574f2a..ca5b28090b9 100644 --- a/src/amd

[Mesa-dev] [PATCH 3/4] radv/ac: Use constants for immutable samplers.

2017-02-27 Thread Bas Nieuwenhuizen
Signed-off-by: Bas Nieuwenhuizen --- src/amd/common/ac_nir_to_llvm.c | 16 1 file changed, 16 insertions(+) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index 4f3d689db7e..db7194c3086 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd

Re: [Mesa-dev] [PATCH] gallium: fix struct/class declaration conflicts

2016-09-16 Thread Bas Nieuwenhuizen
I don't think the "gallium:" commit message prefix is correct here. Looking at the logs it should be "r600g/sb:". With that change: Reviewed-by: Bas Nieuwenhuizen Do you need someone to push it for you? - Bas On Fri, Sep 16, 2016 at 4:58 PM, Martina Kollarova wro

Re: [Mesa-dev] [PATCH 3/9] radeonsi: add si_get_shader_buffers/get_pipe_constant_buffers

2016-09-16 Thread Bas Nieuwenhuizen
On Fri, Sep 16, 2016 at 3:57 PM, Nicolai Hähnle wrote: > From: Nicolai Hähnle > > These functions extract the pipe state structure from the current > descriptors, for state saving. > --- > src/gallium/drivers/radeonsi/si_descriptors.c | 46 > +++ > src/gallium/drivers/ra

Re: [Mesa-dev] [PATCH] st/mesa: enable GL_KHR_robustness

2016-09-28 Thread Bas Nieuwenhuizen
On Wed, Sep 28, 2016 at 6:27 PM, Nicolai Hähnle wrote: > On 28.09.2016 16:20, Ilia Mirkin wrote: >> >> On Wed, Sep 28, 2016 at 6:25 AM, Nicolai Hähnle >> wrote: >>> >>> From: Nicolai Hähnle >>> >>> The difference to the virtually identical ARB_robustness (which is >>> already >>> enabled uncondi

Re: [Mesa-dev] [PATCH] st/mesa: enable GL_KHR_robustness

2016-09-29 Thread Bas Nieuwenhuizen
On Thu, Sep 29, 2016 at 10:20 AM, Nicolai Hähnle wrote: > On 29.09.2016 00:00, Bas Nieuwenhuizen wrote: >> >> On Wed, Sep 28, 2016 at 6:27 PM, Nicolai Hähnle >> wrote: >>> >>> On 28.09.2016 16:20, Ilia Mirkin wrote: >>>> >>>> &

Re: [Mesa-dev] [PATCH v2] util/slab: re-design to allow migration between pools (v2)

2016-09-30 Thread Bas Nieuwenhuizen
On Fri, Sep 30, 2016 at 2:13 PM, Marek Olšák wrote: > intptr_t reads and writes aren't atomic. p_atomic_set and > p_atomic_read functions don't do anything for atomicity. See: > > #define p_atomic_set(_v, _i) (*(_v) = (_i)) > #define p_atomic_read(_v) (*(_v)) That implementation seems bogus to me

Re: [Mesa-dev] Mesa 12.1.0 release plan (Was Re: Next Mesa release, anyone?)

2016-09-30 Thread Bas Nieuwenhuizen
On Fri, Sep 30, 2016 at 3:31 AM, Dave Airlie wrote: > On 30 September 2016 at 01:07, Jason Ekstrand wrote: >> On Sep 29, 2016 7:56 AM, "Emil Velikov" wrote: >>> >>> On 28 September 2016 at 19:53, Marek Olšák wrote: >>> > Hi, >>> > >>> > It's been almost 4 months since the 12.0 branch was create

Re: [Mesa-dev] Error when trying to compile RADV

2016-10-01 Thread Bas Nieuwenhuizen
The issue Gustaw referred to is probably the cause of configure not giving an error about it. If you want to be sure this is handled right, also enable radeonsi to be build. Yours sincerely, Bas Nieuwenhuizen On Sat, Oct 1, 2016 at 2:23 PM, Limeth wrote: > Hello, > I decided to try out the work

Re: [Mesa-dev] [PATCH 2/2] radv/winsys: Fix radv_amdgpu_cs_grow min_size argument.

2016-10-06 Thread Bas Nieuwenhuizen
On Thu, Oct 6, 2016 at 1:09 AM, Gustaw Smolarczyk wrote: > It's supposed to be how much at least we want to grow the cs, not the > minimum size of the cs after growth. > --- > src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/

Re: [Mesa-dev] [PATCH 1/2] radv: Skip already signalled fences.

2016-10-06 Thread Bas Nieuwenhuizen
continue; > > + if (!fence->submitted) > + return VK_TIMEOUT; > + Reviewed-by: Bas Nieuwenhuizen > expired = device->ws->fence_wait(device->ws, fence->fence, > tr

Re: [Mesa-dev] [PATCH 2/2] radv/winsys: Fix radv_amdgpu_cs_grow min_size argument. (v2)

2016-10-10 Thread Bas Nieuwenhuizen
Hi Gustaw, The patch is reviewed-by: Bas Nieuwenhuizen What needs to be done too, is checking if the resulting IB becomes too large in the SI case, and handling that gracefully. I don't care if that happens with this patch, or if someone writes a follow up patch though Yours sincerely

Re: [Mesa-dev] [PATCH 2/2] [RFC] radv: add scratch support for spilling.

2016-10-11 Thread Bas Nieuwenhuizen
On Tue, Oct 11, 2016 at 2:42 AM, Dave Airlie wrote: > On 11 October 2016 at 05:50, Dave Airlie wrote: >> On 10 October 2016 at 21:45, Arsenault, Matthew >> wrote: >>> I don't like adding explicit IR arguments for ABI arguments, especially this >>> one. Adding a special case for the first index f

Re: [Mesa-dev] [PATCH 2/2] [RFC] radv: add scratch support for spilling.

2016-10-11 Thread Bas Nieuwenhuizen
On Tue, Oct 11, 2016 at 11:14 PM, Bas Nieuwenhuizen wrote: > On Tue, Oct 11, 2016 at 2:42 AM, Dave Airlie wrote: >> On 11 October 2016 at 05:50, Dave Airlie wrote: >>> On 10 October 2016 at 21:45, Arsenault, Matthew >>> wrote: >>>> I don't like ad

Re: [Mesa-dev] [PATCH 2/5] amd/addrlib: hide private symbols via VISIBILITY_CXXFLAGS

2016-10-12 Thread Bas Nieuwenhuizen
with single negative. With that, patch 2-5 are Acked-by: Bas Nieuwenhuizen > > Signed-off-by: Emil Velikov > --- > src/amd/Makefile.addrlib.am | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/src/amd/Makefile.addrlib.am b/src/amd/Makefile.addrlib.am > index 434

Re: [Mesa-dev] [PATCH 2/2] radv/winsys: Fix radv_amdgpu_cs_grow min_size argument. (v2)

2016-10-12 Thread Bas Nieuwenhuizen
On Mon, Oct 10, 2016 at 9:19 PM, Gustaw Smolarczyk wrote: > 2016-10-10 22:04 GMT+02:00 Bas Nieuwenhuizen : >> Hi Gustaw, >> >> The patch is >> reviewed-by: Bas Nieuwenhuizen > > Thanks, please push it since I don't have commit access. > >> &

Re: [Mesa-dev] [PATCH] radv/winsys: Fail early on overgrown cs.

2016-10-16 Thread Bas Nieuwenhuizen
Pushed, thanks. - Bas On Thu, Oct 13, 2016 at 10:54 PM, Gustaw Smolarczyk wrote: > When !use_ib_bos, we can't easily chain ibs one to another. If the > required cs size grows over 1Mi - 8 dwords just fail the cs so that we > won't assert-fail in radv_amdgpu_winsys_cs_submit later on. > --- > Ple

Re: [Mesa-dev] [PATCH 0/8] radeonsi: implement missing indirect draw features

2016-08-08 Thread Bas Nieuwenhuizen
For patch 1-7: Reviewed-by: Bas Nieuwenhuizen For patch 8, you probably also want to add the extensions to the release notes. With that added, it looks good to me too. - Bas On Mon, Aug 8, 2016 at 5:55 PM, Nicolai Hähnle wrote: > Hi, > > this series adds some bug fixes and small e

Re: [Mesa-dev] [PATCH 2/2] anv: Throw INCOMPATIBLE_DRIVER for non-fatal initialization errors

2016-08-22 Thread Bas Nieuwenhuizen
This patch is Reviewed-by: Bas Nieuwenhuizen Tested-by: Bas Nieuwenhuizen Thanks. On Tue, Aug 23, 2016 at 3:11 AM, Jason Ekstrand wrote: > The only reason we should throw INITIALIZATION_FAILED is if we have found > useable intel hardware but have failed to bring it up for some

Re: [Mesa-dev] [PATCH 4/4] radeonsi: disable CE on SI + AMDGPU

2016-08-26 Thread Bas Nieuwenhuizen
Patch 3, 4 are Reviewed-by: Bas Nieuwenhuizen For patch 1 and 2 I'm not familiar with the difference between the SI and CIK+ tiling modes to be sure they are good, but the other parts of the patch look good to me. btw, I'm not sure what you tried wrt the CE hang, but it may be wo

Re: [Mesa-dev] [PATCH 8/8] gallium/radeon: derive buffer placement and flags only once per buffer

2016-08-26 Thread Bas Nieuwenhuizen
I would prefer it if the function could be split in two functions instead of using the initialized flag. I think we know whether it is an initialization or a reinitialization per call site. - Bas On Thu, Aug 18, 2016 at 9:46 PM, Marek Olšák wrote: > From: Marek Olšák > > Invalidated buffers don

Re: [Mesa-dev] [PATCH 7/8] gallium/radeon: add a driver query for AMDGPU_INFO_NUM_EVICTIONS

2016-08-26 Thread Bas Nieuwenhuizen
Patch 1-7 of this series are Reviewed-by: Bas Nieuwenhuizen - Bas (Adding mesa-dev ML this time) On Thu, Aug 18, 2016 at 9:46 PM, Marek Olšák wrote: > From: Marek Olšák > > If the kernel driver doesn't support it, it returns 0. > --- > src/gallium/drivers/radeon/r600_q

Re: [Mesa-dev] [PATCH 11/20] radeonsi: fix texture format reinterpretation with DCC

2016-08-29 Thread Bas Nieuwenhuizen
Hi Marek, I don't think this accounts for the fast clear bits? unorm->uint and snorm<->sint should have compatible clear values, but otherwise we may need to eliminate the fast clears. Yours sincerely, Bas Nieuwenhuizen On Mon, Aug 29, 2016 at 5:28 PM, Marek Olšák wrote: >

Re: [Mesa-dev] [PATCH 19/20] gallium/radeon: set VPORT_ZMIN/MAX registers correctly

2016-08-29 Thread Bas Nieuwenhuizen
PORT_ZMIN_0 0x000282D0 > -#define R_0282D4_PA_SC_VPORT_ZMAX_0 0x000282D4 > +#define R_0282D0_PA_SC_VPORT_ZMIN_0 > 0x0282D0 > +#define R_0282D4_PA_SC_VPORT_ZMAX_0 > 0x0282D4 Co

Re: [Mesa-dev] [PATCH 19/20] gallium/radeon: set VPORT_ZMIN/MAX registers correctly

2016-08-30 Thread Bas Nieuwenhuizen
On Tue, Aug 30, 2016 at 9:06 AM, Marek Olšák wrote: > On Mon, Aug 29, 2016 at 10:33 PM, Bas Nieuwenhuizen > wrote: >> On Mon, Aug 29, 2016 at 5:28 PM, Marek Olšák wrote: >>> From: Marek Olšák >>> >>> Calculate depth ranges from viewport states an

Re: [Mesa-dev] [PATCH 2/4] radeonsi: enable DCC fast clear for 128-bit formats

2016-09-07 Thread Bas Nieuwenhuizen
On Wed, Sep 7, 2016 at 1:46 PM, Marek Olšák wrote: > From: Marek Olšák > > --- > src/gallium/drivers/radeon/r600_texture.c | 45 > ++- > 1 file changed, 32 insertions(+), 13 deletions(-) > > diff --git a/src/gallium/drivers/radeon/r600_texture.c > b/src/gallium/driv

Re: [Mesa-dev] [PATCH 2/4] radeonsi: enable DCC fast clear for 128-bit formats

2016-09-07 Thread Bas Nieuwenhuizen
On Wed, Sep 7, 2016 at 3:42 PM, Marek Olšák wrote: > On Wed, Sep 7, 2016 at 2:11 PM, Bas Nieuwenhuizen > wrote: >> On Wed, Sep 7, 2016 at 1:46 PM, Marek Olšák wrote: >>> From: Marek Olšák >>> >>> --- >>>

Re: [Mesa-dev] [PATCH 09/10] st/vdpau: implement the new DMA-buf based interop

2016-09-07 Thread Bas Nieuwenhuizen
On Wed, Sep 7, 2016 at 6:23 PM, Christian König wrote: > Am 07.09.2016 um 18:06 schrieb Marek Olšák: >> >> On Wed, Sep 7, 2016 at 5:36 PM, Ilia Mirkin wrote: >>> >>> On Wed, Sep 7, 2016 at 4:08 AM, Michel Dänzer wrote: On 07/09/16 04:19 AM, Christian König wrote: > > Am 06.09.2

Re: [Mesa-dev] [PATCH] radeonsi: don't preload constants at the beginning of shaders

2016-09-09 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Sat, Sep 10, 2016 at 12:40 AM, Marek Olšák wrote: > From: Marek Olšák > > LLVM can CSE the loads, thus we can always re-load constants before each > use. The decrease in SGPR spilling is huge. > > The best improvements are the dumbest ones.

Re: [Mesa-dev] [PATCH] radeonsi: fix 64-bit loads from LDS

2016-10-19 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Wed, Oct 19, 2016 at 8:38 PM, Nicolai Hähnle wrote: > From: Nicolai Hähnle > > Fixes spec/arb_tessellation_shader/execution/dvec[23]-vs-tcs-tes, among > others. > > Cc: mesa-sta...@lists.freedesktop.org > --- > src/gallium/drivers/

Re: [Mesa-dev] [PATCH] radv: handle image transitions for fmasks

2016-10-19 Thread Bas Nieuwenhuizen
On Thu, Oct 20, 2016 at 4:07 AM, Dave Airlie wrote: > From: Dave Airlie > > This fixes > dEQP-VK.pipeline.multisample.sampled_image* > > These all render to multisampled image, and then > sample from it, so we must transition it correctly. > > Cc: "13.0" > Signed-off-by: Dave Airlie > --- > sr

Re: [Mesa-dev] [PATCH] radv: allow cmask transitions without fast clear

2016-10-21 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Fri, Oct 21, 2016 at 1:36 AM, Dave Airlie wrote: > From: Dave Airlie > > This fixes > dEQP-VK.pipeline.multisample.sampled_image* > > These all render to multisampled image, and then > sample from it, so we must transition it correctly, &g

Re: [Mesa-dev] [PATCH] gallium/radeon: make sure HTILE address is aligned properly

2016-10-24 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Mon, Oct 24, 2016 at 9:39 PM, Marek Olšák wrote: > From: Marek Olšák > > This should fix random GPU hangs on Hawaii and Fiji. > It's already been fixed in 13.0 and later. > > Cc: 11.2 12.0 > --- > src/gallium/drive

Re: [Mesa-dev] [PATCH] radv/ac/llvm: trim texture return values

2016-10-26 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Wed, Oct 26, 2016 at 3:04 AM, Dave Airlie wrote: > From: Dave Airlie > > The intrinsic engine asserts in llvm due to this, > as we put a vec4 into a vec1, and the next instruction > isn't expecting it. > > So trim the vector at t

Re: [Mesa-dev] [PATCH 0/4] RadeonSI: critical fixes

2016-10-27 Thread Bas Nieuwenhuizen
For the series: Reviewed-by: Bas Nieuwenhuizen On Tue, Oct 25, 2016 at 12:23 AM, Marek Olšák wrote: > Patch 1: SI fix for MSAA for Mesa 13.0. I don't know the impact of that bug. > Patch 2: Possible GPU hang fix for Hawaii and Fiji when using separate CMASK. > Patch 3: Addrlib i

Re: [Mesa-dev] [PATCH] vulkan/wsi/x11: handle timeouts properly in next image acquire (v1.1)

2016-10-31 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Wed, Oct 26, 2016 at 4:32 AM, Dave Airlie wrote: > From: Dave Airlie > > For 0 timeout, just poll for an event, and if none, return > For UINT64_MAX timeout, just wait for special event blocked > For other timeouts get the xcb fd and block on

Re: [Mesa-dev] [PATCH] radv: expose xlib platform extension

2016-11-01 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Wed, Nov 2, 2016 at 12:53 AM, Dave Airlie wrote: > From: Dave Airlie > > I missed this when I added the xlib code, this allows > dolphin emu to start and crash later. > > Cc: "13.0" > Signed-off-by: Dave Airlie > --- &

Re: [Mesa-dev] [PATCH] radeonsi: fix an assertion failure in si_decompress_sampler_color_textures

2016-11-03 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Thu, Nov 3, 2016 at 7:22 PM, Marek Olšák wrote: > From: Marek Olšák > > This fixes a crash in Deus Ex: Mankind Divided. Release builds were > unaffected, so it's not too serious. > > Cc: 11.2 12.0 13.0 > --- > src/gallium/d

Re: [Mesa-dev] [PATCH] radv: emit correct last export when Z/stencil export is enabled

2016-11-07 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Tue, Nov 8, 2016 at 7:24 AM, Dave Airlie wrote: > From: Dave Airlie > > I was getting a random GPU hang in the renderpass simple tests, > it turns out sometimes radv emitted the wrong thing "last". > > This fixes the logic to emit

Re: [Mesa-dev] [PATCH] radv: fix GetFenceStatus for signaled fences

2016-11-08 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Wed, Nov 9, 2016 at 2:22 AM, Dave Airlie wrote: > From: Dave Airlie > > if a fence is created pre-signaled we should return that > in GetFenceStatus even if it hasn't been submitted. > > Signed-off-by: Dave Airlie > --- > src

Re: [Mesa-dev] [PATCH] radv: fix texturesamples to handle single sample case

2016-11-09 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Thu, Nov 10, 2016 at 1:33 AM, Dave Airlie wrote: > From: Dave Airlie > > We can only read the valid samples if this is an MSAA > texture, which means the type field must be 0x14 or 0x15. > > This fixes: > dEQP-VK.glsl.texture_functions

Re: [Mesa-dev] [PATCH] ac/nir/llvm: Fix setting function attributes for intrinsics

2016-11-11 Thread Bas Nieuwenhuizen
Maybe also add an assert in ac_add_function_attr that the attr is a single flag? Something like assert(attr && util_is_power_of_two(attr)); Either way, this patch is Reviewed-by: Bas Nieuwenhuizen On Fri, Nov 11, 2016 at 9:36 PM, Daniel Scharrer wrote: > This fixes a NULL pointer

Re: [Mesa-dev] [PATCH] ac/nir/llvm: Fix setting function attributes for intrinsics

2016-11-11 Thread Bas Nieuwenhuizen
On Fri, Nov 11, 2016 at 10:35 PM, Daniel Scharrer wrote: > On 2016-11-11 22:24, Bas Nieuwenhuizen wrote: >> Maybe also add an assert in ac_add_function_attr that the attr is a >> single flag? Something like >> >> assert(attr && util_is_power_of_two(attr)); >

Re: [Mesa-dev] [PATCH] radv: don't crash on null swapchain destroy.

2016-11-15 Thread Bas Nieuwenhuizen
r-b On 15 Nov 2016 9:12 PM, "Dave Airlie" wrote: > From: Dave Airlie > > Just return if the passed in swapchain is NULL. > > Fixes: dEQP-VK.wsi.xlib.swapchain.destroy.null_handle > > Signed-off-by: Dave Airlie > --- > src/amd/vulkan/radv_wsi.c | 3 +++ > 1 file changed, 3 insertions(+) > > di

Re: [Mesa-dev] test Vulkan with radv

2016-11-17 Thread Bas Nieuwenhuizen
Hi, One possible reason is that the radv driver can't find any hardware. This can happen for example if you use the radeon kernel driver, as only the amdgpu kernel driver is currently supported. I'm not sure what the error will be if the loader doesn't see radv at all. Yours

[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

[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

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

2016-11-21 Thread Bas Nieuwenhuizen
symbol is actually the LLVM DSO. Signed-off-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_device.c | 36 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index b731171..04c0bdc 100644 --- a

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

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 >

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

2016-11-22 Thread Bas Nieuwenhuizen
Tue, 22 Nov 2016 at 01:20 Bas Nieuwenhuizen > wrote: >> >> 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 deletion

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

2016-11-23 Thread Bas Nieuwenhuizen
On Tue, Nov 22, 2016 at 2:31 PM, Emil Velikov wrote: > On 22 November 2016 at 01:19, Bas Nieuwenhuizen > wrote: >> 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 runti

[Mesa-dev] [PATCH] radv: Don't generate radv_timestamp.h

2016-11-23 Thread Bas Nieuwenhuizen
Not needed anymore. Signed-off-by: Bas Nieuwenhuizen --- src/amd/vulkan/Makefile.am | 6 +- src/amd/vulkan/Makefile.sources | 3 +-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/amd/vulkan/Makefile.am b/src/amd/vulkan/Makefile.am index c559a95..3f9b53e 100644

[Mesa-dev] [PATCH] radv: Simple inter stage shader optimization

2016-11-23 Thread Bas Nieuwenhuizen
Remove vs exports if the ps doesn't use them. Longer term we will probably want to do the optimizations between stages in nir, but this seems simple enough for the short term. Signed-off-by: Bas Nieuwenhuizen --- src/amd/common/ac_nir_to_llvm.c | 3 ++- src/amd/common/ac_nir_to_llvm.h

Re: [Mesa-dev] [PATCH 1/2] radv/meta: just local vars for src/dst subresources.

2016-11-23 Thread Bas Nieuwenhuizen
For the series: Reviewed-by: Bas Nieuwenhuizen On Thu, Nov 24, 2016 at 12:40 AM, Dave Airlie wrote: > From: Dave Airlie > > This is just a cleanup before I rework this code to fix mirrored > blits. > > Signed-off-by: Dave Airlie > --- > src/amd/vulk

Re: [Mesa-dev] [PATCH] radv: fix texel fetch offset with 2d arrays.

2016-11-23 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Thu, Nov 24, 2016 at 4:12 AM, Dave Airlie wrote: > From: Dave Airlie > > The code didn't limit the offsets to the number supplied, so > if we expected 3 but only got 2 we were accessing undefined memory. > > This fixes ran

Re: [Mesa-dev] [PATCH] radv: honour the number of properties available

2016-11-24 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Thu, Nov 24, 2016 at 7:14 PM, Emil Velikov wrote: > From: Emil Velikov > > Cap up-to the number of properties available while copying the data. > Otherwise we might crash and/or leak data. > > Cc: Dave Airlie > Cc: "13.0"

Re: [Mesa-dev] [PATCH 3/3] isl: Make radv_finishme only warn once per call-site

2016-11-24 Thread Bas Nieuwenhuizen
You might want to rename the title of this patch. - Bas On Thu, Nov 24, 2016 at 7:18 PM, Emil Velikov wrote: > From: Emil Velikov > > Signed-off-by: Emil Velikov > --- > src/intel/isl/isl_priv.h | 8 +++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/src/intel/isl/isl_

Re: [Mesa-dev] [PATCH 2/3] radv: Make radv_finishme only warn once per call-site

2016-11-24 Thread Bas Nieuwenhuizen
Making this thread safe is probably overkill I guess? Reviewed-by: Bas Nieuwenhuizen On Thu, Nov 24, 2016 at 7:18 PM, Emil Velikov wrote: > From: Emil Velikov > > Signed-off-by: Emil Velikov > --- > src/amd/vulkan/radv_private.h | 8 +++- > 1 file changed, 7 inserti

Re: [Mesa-dev] [PATCH 7/8] radv: don't leak the fd if radv_physical_device_init() succeeds

2016-11-24 Thread Bas Nieuwenhuizen
Seems like libdrm_amdgpu does a dup indeed. Patches 7-8 are Reviewed-by: Bas Nieuwenhuizen On Thu, Nov 24, 2016 at 9:30 PM, Emil Velikov wrote: > From: Emil Velikov > > radv_amdgpu_winsys_create() does not take ownership of the fd, thus we > end up leaking it as we return wit

Re: [Mesa-dev] [PATCH] radv: fix 3D clears with baseMiplevel

2016-11-27 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Mon, Nov 28, 2016 at 8:04 AM, Dave Airlie wrote: > From: Dave Airlie > > This fixes: > dEQP-VK.api.image_clearing.clear_color_image.3d* > > These were hitting an assert as the code wasn't taking the > baseMipLevel into account w

Re: [Mesa-dev] [PATCH 01/10] radv: consolidate compute pipeline flushing

2016-11-28 Thread Bas Nieuwenhuizen
On Mon, Nov 28, 2016 at 5:19 AM, Dave Airlie wrote: > From: Dave Airlie > > This just moves some common code into a utility function > to avoid having to change multiple places later. > > Signed-off-by: Dave Airlie > --- > src/amd/vulkan/radv_cmd_buffer.c | 25 + > 1 fil

[Mesa-dev] [PATCH 1/2] radv: Initialize the shader_stats_dump flag.

2016-11-28 Thread Bas Nieuwenhuizen
Meta was using it before it was set. I suspect we typically don't want to dump meta shaders, so just set it to false in the beginning. Signed-off-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/vulkan/radv_device.c b/sr

[Mesa-dev] [PATCH 2/2] ac/nir: Fix accessing an unitialized value.

2016-11-28 Thread Bas Nieuwenhuizen
Signed-off-by: Bas Nieuwenhuizen --- src/amd/common/ac_nir_to_llvm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index c9b0106..d9eef57 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common

[Mesa-dev] [PATCH] ac/nir: Fix out of bounds array access.

2016-11-29 Thread Bas Nieuwenhuizen
With nir_intrinsic_ssbo_atomic_comp_swap we run out of params. Signed-off-by: Bas Nieuwenhuizen --- src/amd/common/ac_nir_to_llvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index ee98f5f..df121d8 100644

[Mesa-dev] [PATCH] ac/nir: Only use the first component for SSBO atomics.

2016-11-30 Thread Bas Nieuwenhuizen
Signed-off-by: Bas Nieuwenhuizen --- src/amd/common/ac_nir_to_llvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index df121d8..87bb19a 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common

<    1   2   3   4   5   6   7   8   9   10   >