[Mesa-dev] [PATCH 2/5] amd/common: pass address components individually to ac_build_image_intrinsic

2018-04-11 Thread Nicolai Hähnle
From: Nicolai Hähnle This is in preparation for the new image intrinsics. --- src/amd/common/ac_llvm_build.c | 101 +- src/amd/common/ac_llvm_build.h | 14 +- src/amd/common/ac_nir_to_llvm.c| 365 +++-- src/gallium

[Mesa-dev] [PATCH 3/5] radeonsi: generate image load/store/atomic ops using ac_build_image_opcode

2018-04-11 Thread Nicolai Hähnle
From: Nicolai Hähnle In preparation of dimension-aware LLVM image intrinsics. --- src/amd/common/ac_llvm_build.c | 105 +++--- src/amd/common/ac_llvm_build.h | 37 +++- src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.h | 2 +- src/gallium/drivers/

[Mesa-dev] [PATCH 0/5] amd/common: use dimension-aware image intrinsics for LLVM

2018-04-11 Thread Nicolai Hähnle
Hi all, one of the things I've been recently working on is a new set of image intrinsics in LLVM to have explicit parameters for all the different components of the address argument. This is motivated by the A16 feature in gfx9, which allows address components (coordinates, explicit derivatives)

[Mesa-dev] [PATCH 1/5] amd/common: pass new enum ac_image_dim to ac_build_image_opcode

2018-04-11 Thread Nicolai Hähnle
From: Nicolai Hähnle This is in preparation for the new, dimension-aware LLVM image intrinsics. --- src/amd/common/ac_llvm_build.c| 10 - src/amd/common/ac_llvm_build.h| 13 +- src/amd/common/ac_nir_to_llvm.c | 54

[Mesa-dev] [PATCH 1/5] glsl: prevent spurious Valgrind errors when serializing NIR

2018-04-11 Thread Nicolai Hähnle
From: Nicolai Hähnle It looks as if the structure fields array is fully initialized below, but in fact at least gcc in debug builds will not actually overwrite the unused bits of bit fields. --- src/compiler/glsl_types.cpp | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

[Mesa-dev] [PATCH 3/5] ac/nir: fix atomic compare-and-swap

2018-04-11 Thread Nicolai Hähnle
From: Nicolai Hähnle The LLVM instruction returns { i32, i1 }, where the i1 indicates success. We're only interested in the first part, which is the loaded value. Fixes dEQP-GLES31.functional.compute.shared_var.atomic.compswap.* --- src/amd/common/ac_nir_to_llvm.c | 1 + 1 file chang

[Mesa-dev] [PATCH 2/5] radeonsi: fix error paths of si_texture_transfer_map

2018-04-11 Thread Nicolai Hähnle
From: Nicolai Hähnle trans is zero-initialized, but trans->resource is setup immediately so needs to be dereferenced. --- src/gallium/drivers/radeonsi/si_texture.c | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/gallium/drivers/radeo

[Mesa-dev] [PATCH 4/5] radeonsi/nir: set FS properties only when scanning a fragment shader

2018-04-11 Thread Nicolai Hähnle
From: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_shader_nir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c index c0e08c79a56..b4fba8b8812 100644 --- a/src/gallium

[Mesa-dev] [PATCH 5/5] radeonsi/nir: fix crash in test involving the sample mask

2018-04-11 Thread Nicolai Hähnle
From: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_shader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 8c62d53e2ad..3e224b083e6 100644 --- a/src/gallium/drivers/radeonsi

[Mesa-dev] [PATCH 0/5] glsl,radeonsi/nir: misc fixes

2018-04-11 Thread Nicolai Hähnle
Hi all, just a collection of random fixes I've accumulated over time, most of them stuff that I ran into while testing out NIR stuff. Please review! Thanks, Nicolai ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org

Re: [Mesa-dev] [PATCH] radeonsi: correct si_vgt_param_key on big endian machines

2018-03-20 Thread Nicolai Hähnle
Nice, did you actually get it to work entirely on a big endian machine? Bit fields aren't super portable, but this looks good enough. However, I think we should use the PIPE_ARCH_LITTLE_ENDIAN define from u_endian.h Cheers, Nicolai On 20.03.2018 15:21, Bas Vermeulen wrote: Using mesa OpenCL

Re: [Mesa-dev] [PATCH 00/13] RadeonSI: Reduce user SGPR usage

2018-02-26 Thread Nicolai Hähnle
Nothing wrong with them, really. All the LLVM stuff has caused me to fall behind on going through Mesa patches, sorry for that. 9-13 are finally Reviewed-by: Nicolai Hähnle On 25.02.2018 02:04, Marek Olšák wrote: So what is wrong with patches 9-13? We can do cleanups after those. Marek On

Re: [Mesa-dev] [PATCH 00/13] RadeonSI: Reduce user SGPR usage

2018-02-20 Thread Nicolai Hähnle
With a small comment on patch 6, patches 1-8: Reviewed-by: Nicolai Hähnle for now. However, I'm unhappy about how complex this is all getting. 32- vs. 64-bit, merged vs. non-merged, monolithic vs. non-monolithic, and then special user SGPR uses like for blits and soon VBO descriptor

Re: [Mesa-dev] [PATCH 06/13] radeonsi: move tess ring address into TCS_OUT_LAYOUT, removes 2 TCS user SGPRs

2018-02-20 Thread Nicolai Hähnle
On 17.02.2018 20:43, Marek Olšák wrote: From: Marek Olšák TCS_OUT_LAYOUT has 13 unused bits. That's enough for a 32-bit address aligned to 512KB. Hey, it's a 13-bit pointer! Heh :) --- src/gallium/drivers/radeonsi/si_shader.c | 104 +++--- src/gallium/drivers/ra

Re: [Mesa-dev] [PATCH 1/2] ac/nir: set the DA field when performing atomics on 3D images

2018-02-20 Thread Nicolai Hähnle
Why? 3D images are not arrays. On 20.02.2018 11:11, Samuel Pitoiset wrote: This doesn't fix anything known but it should definitely be set. Signed-off-by: Samuel Pitoiset --- src/amd/common/ac_nir_to_llvm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/amd/common

Re: [Mesa-dev] [PATCH 2/4] ac/shader: repack ac_shader_info

2018-01-31 Thread Nicolai Hähnle
Patches 1 & 2: Reviewed-by: Nicolai Hähnle On 31.01.2018 00:41, Dave Airlie wrote: From: Dave Airlie This reduces the size from 28->24 bytes. Signed-off-by: Dave Airlie --- src/amd/common/ac_shader_info.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

Re: [Mesa-dev] [PATCH 3/3] radeonsi: remove DBG_PRECOMPILE

2018-01-30 Thread Nicolai Hähnle
Series is: Reviewed-by: Nicolai Hähnle On 27.01.2018 19:01, Marek Olšák wrote: From: Marek Olšák it's useless and shader-db stats only report the main shader part. --- src/gallium/drivers/radeon/r600_pipe_common.h | 1 - src/gallium/drivers/radeonsi/si_pipe.c | 1 -

[Mesa-dev] [PATCH 2/2] radeonsi: correctly parse disassembly with labels

2018-01-23 Thread Nicolai Hähnle
From: Nicolai Hähnle LLVM now emits labels as part of the disassembly string, which is very useful but breaks the old parsing approach. Use the semicolon to detect the boundary of instructions instead of going by line breaks. --- src/gallium/drivers/radeonsi/si_debug.c | 63

[Mesa-dev] [PATCH 1/2] radeonsi: pass -O halt_waves to umr for hang debugging

2018-01-23 Thread Nicolai Hähnle
From: Nicolai Hähnle This will give us meaningful wave information in the case of a hang where shaders are still running in an infinite loop. Note that we call umr multiple times for different sections of the ddebug hang dump, and so the wave information will not necessarily match up between

Re: [Mesa-dev] [PATCH v2] ac: remove arrays when when querying sampler info

2018-01-22 Thread Nicolai Hähnle
-by: Nicolai Hähnle --- src/amd/common/ac_nir_to_llvm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index 4f240db4ac..e88f64fb3b 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common

Re: [Mesa-dev] [PATCH] ac: fix ac_build_varying_gather_values() for packed layouts

2018-01-22 Thread Nicolai Hähnle
On 19.01.2018 06:50, Timothy Arceri wrote: This fixes a segfault for varyings not starting at component 0. Reviewed-by: Nicolai Hähnle --- src/amd/common/ac_llvm_build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common

Re: [Mesa-dev] [PATCH v2] ac: fix emit vertex stream parameter

2018-01-22 Thread Nicolai Hähnle
On 20.01.2018 02:38, Timothy Arceri wrote: Fixes the following piglit test on radeonsi: ./bin/arb_enhanced_layouts-gs-stream-location-aliasing Reviewed-by: Nicolai Hähnle --- src/amd/common/ac_nir_to_llvm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src

Re: [Mesa-dev] [PATCH] ac: fix image load store for GLSL_SAMPLER_DIM_3D

2018-01-22 Thread Nicolai Hähnle
arb_shader_image_load_store/max-size/image3d max size test/8x8x2048x1 arb_shader_image_load_store/semantics/imageload/vertex shader/rgba32f/image3d test Reviewed-by: Nicolai Hähnle --- src/amd/common/ac_nir_to_llvm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/amd/common

Re: [Mesa-dev] [PATCH 0/7] EGL_ANDROID_blob_cache

2018-01-22 Thread Nicolai Hähnle
On 19.01.2018 07:05, Tapani Pälli wrote: On 01/18/2018 05:49 PM, Nicolai Hähnle wrote: On 17.01.2018 17:10, Tapani Pälli wrote: On 17.01.2018 13:34, Nicolai Hähnle wrote: On 15.01.2018 13:31, Tapani Pälli wrote: Hello; Here's a refactored series of EGL_ANDROID_blob_cache. Now

Re: [Mesa-dev] [PATCH] radeonsi/nir: add primitive id to inputs scan

2018-01-22 Thread Nicolai Hähnle
-no-gs-strip-first-vertex Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_shader_nir.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c index 4455322392..2f19bae813 100644 --- a

Re: [Mesa-dev] [PATCH] radeonsi/nir: add nir_intrinsic_load_sample_mask_in to ir scan

2018-01-22 Thread Nicolai Hähnle
On 19.01.2018 12:03, Timothy Arceri wrote: Fixes a bunch of ARB_sample_shading piglit tests. Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_shader_nir.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium

Re: [Mesa-dev] [PATCH] ac: image size builtin for GLSL_SAMPLER_DIM_3D

2018-01-22 Thread Nicolai Hähnle
On 18.01.2018 08:17, Timothy Arceri wrote: This is what radeonsi does. Fixes remaing piglit subtest in: ./bin/arb_shader_image_size-builtin --quick -auto -fbo Reviewed-by: Nicolai Hähnle --- src/amd/common/ac_nir_to_llvm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

Re: [Mesa-dev] [PATCH 2/2] glsl: add image and sampler (un)packing support to glsl to nir

2018-01-22 Thread Nicolai Hähnle
Both patches: Reviewed-by: Nicolai Hähnle On 19.01.2018 05:12, Timothy Arceri wrote: This is needed for ARB_bindless_texture support. --- src/compiler/glsl/glsl_to_nir.cpp | 4 1 file changed, 4 insertions(+) diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl

Re: [Mesa-dev] [PATCH] radeonsi: don't ignore pitch for imported textures

2018-01-22 Thread Nicolai Hähnle
On 10.01.2018 20:49, Marek Olšák wrote: From: Marek Olšák Please add a bug report or reference to what fails without it. It does make sense though, so Reviewed-by: Nicolai Hähnle Cc: 17.2 17.3 --- src/gallium/drivers/radeon/r600_texture.c | 14 -- 1 file changed, 12

Re: [Mesa-dev] [PATCH 10/10] gallium/u_threaded: don't run out of memory with staging uploads

2018-01-22 Thread Nicolai Hähnle
. Can you reduce it to something like 64MB? Unless there's concrete evidence that having it higher is beneficial, of course. With that, patches 9 & 10: Reviewed-by: Nicolai Hähnle + typedef void (*tc_replace_buffer_storage_func)(struct pipe_context *ctx,

Re: [Mesa-dev] [PATCH 3/3] amd/common: only load used channels when sampling buffer views

2018-01-22 Thread Nicolai Hähnle
For the series: Reviewed-by: Nicolai Hähnle On 10.01.2018 20:12, Samuel Pitoiset wrote: This allows to reduce the number of dwords that are loaded with buffer_load_format_xyzw. For example, when the only used channel is 1, the driver will emit buffer_load_format_x instead. Shader stats for

Re: [Mesa-dev] [PATCH] radeonsi/nir: fix fs output index

2018-01-22 Thread Nicolai Hähnle
d you please add a comment /* Adjust for dual source blending */ or similar? With that: Reviewed-by: Nicolai Hähnle + } } else { tgsi_get_gl_varying_semantic(variable->data.location, true,

Re: [Mesa-dev] [PATCH] ac/nir/radeonsi: add ARB_shader_ballot support

2018-01-22 Thread Nicolai Hähnle
rinsic == nir_intrinsic_read_invocation) { + num_args = 2; + intr_name = intr_names[0]; Please just inline the intrinsic names here. With that fixed: Reviewed-by: Nicolai Hähnle + + /* Invocation */ + args[1] = get_src(ctx,

Re: [Mesa-dev] [PATCH] ac/nir: add ARB_shader_group_vote support

2018-01-22 Thread Nicolai Hähnle
Reviewed-by: Nicolai Hähnle On 22.01.2018 00:52, Timothy Arceri wrote: --- src/amd/common/ac_nir_to_llvm.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index ac3a949bd3..eabdc83f16 100644 --- a/src

Re: [Mesa-dev] [PATCH] ac: add support for gl_HelperInvocation

2018-01-22 Thread Nicolai Hähnle
Reviewed-by: Nicolai Hähnle On 19.01.2018 00:05, Timothy Arceri wrote: --- src/amd/common/ac_nir_to_llvm.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index cf0b3d998c..4f240db4ac 100644 --- a/src/amd

Re: [Mesa-dev] [PATCH 1/3] ac: add stream handling to visit_end_primitive()

2018-01-22 Thread Nicolai Hähnle
Why hasn't this been noticed before? Does Vulkan not have multiple streams? Anyway, series is: Reviewed-by: Nicolai Hähnle On 18.01.2018 23:26, Timothy Arceri wrote: --- src/amd/common/ac_nir_to_llvm.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sr

Re: [Mesa-dev] [GSOC] DriConf Replacement

2018-01-22 Thread Nicolai Hähnle
shot again after updating my systems. Kind Regards, Jean Hertel De: Jean Hertel Enviado: domingo, 7 de janeiro de 2018 20:10 Para: Michel Dänzer; Nicolai Hähnle Cc: mesa-dev@lists.freedesktop.org Assunto: Re: [Mesa-dev] [GSOC] DriConf Replacement Hello Michael, Finally I found some free

Re: [Mesa-dev] [PATCH] ac: fix visit_ssa_undef() for doubles

2018-01-22 Thread Nicolai Hähnle
Reviewed-by: Nicolai Hähnle On 18.01.2018 02:03, Timothy Arceri wrote: Fixes: f4e499ec7914 "radv: add initial non-conformant radv vulkan driver" --- src/amd/common/ac_nir_to_llvm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/amd/common/ac_nir_to_ll

Re: [Mesa-dev] [PATCH v2 1/2] ac/nir: Use correct 32-bit component writemask for 64-bit SSBO stores.

2018-01-22 Thread Nicolai Hähnle
;< multiplier) - 1u) << (i * multiplier); I think using util_bitscan for the loop would be cleaner. Apart from that, both patches: Reviewed-by: Nicolai Hähnle + return new_mask; +} + static void visit_store_ssbo(struct ac_nir_context *ctx,

Re: [Mesa-dev] [RFC PATCH 1/2] r600/sb: Set flags for GROUP_BARRIER instruction and force it into slot X

2018-01-22 Thread Nicolai Hähnle
On 11.01.2018 12:22, Ilia Mirkin wrote: On Thu, Jan 11, 2018 at 3:51 AM, Gert Wollny wrote: Am Donnerstag, den 11.01.2018, 08:09 +0100 schrieb Gert Wollny: Am Mittwoch, den 10.01.2018, 15:27 -0500 schrieb Ilia Mirkin: [...] If your hardware executes all the vertices in parallel, then a barri

Re: [Mesa-dev] [PATCH 0/7] EGL_ANDROID_blob_cache

2018-01-18 Thread Nicolai Hähnle
On 17.01.2018 17:10, Tapani Pälli wrote: On 17.01.2018 13:34, Nicolai Hähnle wrote: On 15.01.2018 13:31, Tapani Pälli wrote: Hello; Here's a refactored series of EGL_ANDROID_blob_cache. Now cache functions are stored in disk_cache struct and the functionality called within exi

Re: [Mesa-dev] [PATCH] r600: fix relocs for PIPE_QUERY_SO_OVERFLOW_ANY_PREDICATE query

2018-01-18 Thread Nicolai Hähnle
On 18.01.2018 03:52, Roland Scheidegger wrote: Am 17.01.2018 um 13:54 schrieb Nicolai Hähnle: On 11.01.2018 23:54, srol...@vmware.com wrote: From: Roland Scheidegger The command parser is very sad if we don't emit the relocs per hw query... However, don't enable it. It mostly

Re: [Mesa-dev] [PATCH 02/22] gallium: rename pipe fences to semaphores

2018-01-17 Thread Nicolai Hähnle
On 04.01.2018 18:37, Andres Rodriguez wrote: On 2018-01-04 12:33 PM, Marek Olšák wrote: Is the renaming necessary? It looks like everything would be fine if we used the "fence" name for semaphores. The rename was requested by nha. We could keep going with the fences name. Or we could do t

Re: [Mesa-dev] [PATCH] r600: fix relocs for PIPE_QUERY_SO_OVERFLOW_ANY_PREDICATE query

2018-01-17 Thread Nicolai Hähnle
On 11.01.2018 23:54, srol...@vmware.com wrote: From: Roland Scheidegger The command parser is very sad if we don't emit the relocs per hw query... However, don't enable it. It mostly works, but piglit arb_transform_feedback_overflow_query-basic shows 2 failures (it's really the same case for t

Re: [Mesa-dev] [PATCH V2 5/5] radeonsi: bump glsl version to 450 for nir backend

2018-01-17 Thread Nicolai Hähnle
Cool stuff :) Except for a remark on patch #2, the series is: Reviewed-by: Nicolai Hähnle On 12.01.2018 04:55, Timothy Arceri wrote: We still have more work to do but piglit results are looking pretty good. At GLSL 1.50 we have 30647/31118 piglit tests passing. Al GLSL 4.50 we have 37927

Re: [Mesa-dev] [PATCH 2/5] ac: rework load_tcs_{inputs,outputs}

2018-01-17 Thread Nicolai Hähnle
On 12.01.2018 03:55, Timothy Arceri wrote: This shares mode code and calls the new shared load_tess_varyings() s/mode/more/? abi so that the radeonsi nir path now supports tcs output loads. --- src/amd/common/ac_nir_to_llvm.c | 126 +--- 1 file changed,

Re: [Mesa-dev] [PATCH 5/5] st/glsl_to_tgsi: add ARB_get_program_binary support using TGSI

2018-01-17 Thread Nicolai Hähnle
On 16.01.2018 22:18, Timothy Arceri wrote: This resolves a game bug in Deal Island. The game doesn't properly s/Deal/Dead/ Series is: Reviewed-by: Nicolai Hähnle handle ARB_get_program_binary with 0 supported formats, and ends up crashing. This will enable ARB_get_program_binary b

Re: [Mesa-dev] Mesa 18.0.0 release plan

2018-01-17 Thread Nicolai Hähnle
On 17.01.2018 01:23, Jordan Justen wrote: On 2018-01-16 13:57:37, Kenneth Graunke wrote: On Tuesday, January 16, 2018 11:18:13 AM PST Emil Velikov wrote: Hi all, As you've know the Mesa 18.0.0 release plan has been available for a while on the mesa3d.org website [1]. In case you've missed it

Re: [Mesa-dev] [PATCH 01/10] mesa: Also track a remapped version of the color logic op

2018-01-17 Thread Nicolai Hähnle
On 17.01.2018 02:12, Ian Romanick wrote: On 01/16/2018 10:11 AM, Ian Romanick wrote: On 01/13/2018 01:47 PM, Jason Ekstrand wrote: On January 12, 2018 14:56:26 "Ian Romanick" wrote: From: Ian Romanick With the exception of NVIDIA hardware, these are is the values that all hardware and Gall

Re: [Mesa-dev] [PATCH 01/10] mesa: Also track a remapped version of the color logic op

2018-01-17 Thread Nicolai Hähnle
s really quite odd. I'd love to hear the history behind it. (I think it might be useful to add this information in the comment, but I'll leave that decision up to you.) Patches 1, 3, & the core + radeon parts of 4: Reviewed-by: Nicolai Hähnle + */ +enum PACKED

Re: [Mesa-dev] [PATCH 10/10] glsl: remove unneeded extern "C" {} bracketing around Mesa includes

2018-01-17 Thread Nicolai Hähnle
For the series: Reviewed-by: Nicolai Hähnle On 17.01.2018 06:17, Brian Paul wrote: The two headers already have the right extern "C" annotations. --- src/compiler/glsl/serialize.cpp | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/compiler/glsl/seria

Re: [Mesa-dev] [PATCH] mesa/program: change validate_inputs() local var 'inputs' to GLbitfield64

2018-01-17 Thread Nicolai Hähnle
On 17.01.2018 06:18, Brian Paul wrote: Both state->prog->info.inputs_read and state->InputsBound are GLbitfield64 so it seems that the OR of those values should be of the same type. I'm not sure this fixes any actual issues though. It's certainly less surprising this way. R

Re: [Mesa-dev] [PATCH 0/7] EGL_ANDROID_blob_cache

2018-01-17 Thread Nicolai Hähnle
On 15.01.2018 13:31, Tapani Pälli wrote: Hello; Here's a refactored series of EGL_ANDROID_blob_cache. Now cache functions are stored in disk_cache struct and the functionality called within existing disk_cache put/get code. Problems/errors that existed with earlier series are gone. On Android c

Re: [Mesa-dev] [PATCH 2/7] egl: add support for EGL_ANDROID_blob_cache

2018-01-17 Thread Nicolai Hähnle
On 16.01.2018 18:45, Emil Velikov wrote: Hi Tapani, On 15 January 2018 at 12:31, Tapani Pälli wrote: +static void +update_blob_cache_functions(struct dri2_egl_display *dri2_dpy, +struct dri2_egl_context *dri2_ctx) +{ + if (!dri2_dpy || !dri2_ctx) + return;

Re: [Mesa-dev] [PATCH 2/2] ac: set count correctly when storing doubles to ssbo

2018-01-17 Thread Nicolai Hähnle
that, both patches: Reviewed-by: Nicolai Hähnle dvec3. ---   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 c24e563695..bb4f90b3a0 100644 --- a/src/amd/common/ac_nir

Re: [Mesa-dev] [PATCH] ac: fix nir_intrinsic_get_buffer_size for radeonsi

2018-01-17 Thread Nicolai Hähnle
), false); } static void visit_store_ssbo(struct ac_nir_context *ctx, nir_intrinsic_instr *instr) Agreed that "index" makes more sense here, as it is an index in OpenGL. Reviewed-by: Nicolai Hähnle -- Lerne, wie die Welt wirklich ist, Abe

Re: [Mesa-dev] [PATCHv2] glx: fix non-dri build

2018-01-15 Thread Nicolai Hähnle
sually add the version difference as part of the commit message. Reviewed-by: Nicolai Hähnle You may want to wait a while though to see if somebody else speaks up. Cheers, Nicolai --- src/glx/g_glxglvnddispatchfuncs.c | 4 1 file changed, 4 insertions(+) diff --git

Re: [Mesa-dev] [PATCH] glx: fix non-dri build

2018-01-15 Thread Nicolai Hähnle
On 15.01.2018 15:15, Samuel Thibault wrote: Nicolai Hähnle, on lun. 15 janv. 2018 15:07:03 +0100, wrote: On 13.01.2018 12:36, Samuel Thibault wrote: glXGetDriverConfig parameters do not provide a context to dynamically check for the presence of the function, so the dispatcher directly calls

Re: [Mesa-dev] [PATCH] glx: fix non-dri build

2018-01-15 Thread Nicolai Hähnle
On 13.01.2018 12:36, Samuel Thibault wrote: glXGetDriverConfig parameters do not provide a context to dynamically check for the presence of the function, so the dispatcher directly calls glXGetDriverConfig, but in non-dri builds dri_glx.c didn't provide glXGetDriverConfig. This change makes it p

Re: [Mesa-dev] [PATCH] drirc: add option to disable ARB_draw_indirect

2017-12-15 Thread Nicolai Hähnle
On 15.12.2017 12:37, Rob Clark wrote: On Fri, Dec 15, 2017 at 4:41 AM, Nicolai Hähnle wrote: On 15.12.2017 00:56, Rob Clark wrote: On Wed, Dec 6, 2017 at 3:31 PM, Ian Romanick wrote: On 12/05/2017 08:25 AM, Ilia Mirkin wrote: On Tue, Dec 5, 2017 at 8:18 AM, Emil Velikov wrote: Hi Rob

Re: [Mesa-dev] [PATCH] drirc: add option to disable ARB_draw_indirect

2017-12-15 Thread Nicolai Hähnle
On 15.12.2017 00:56, Rob Clark wrote: On Wed, Dec 6, 2017 at 3:31 PM, Ian Romanick wrote: On 12/05/2017 08:25 AM, Ilia Mirkin wrote: On Tue, Dec 5, 2017 at 8:18 AM, Emil Velikov wrote: Hi Rob, On 5 December 2017 at 12:54, Rob Clark wrote: This is a bit sad/annoying. But with current GPU

Re: [Mesa-dev] [PATCH 03/18] ac: add load_tes_inputs() to the abi

2017-12-12 Thread Nicolai Hähnle
On 12.12.2017 11:33, Timothy Arceri wrote: On 12/12/17 21:21, Timothy Arceri wrote: On 12/12/17 20:42, Nicolai Hähnle wrote: On 11.12.2017 03:43, Timothy Arceri wrote: ---   src/amd/common/ac_nir_to_llvm.c  | 66 +---   src/amd/common/ac_shader_abi.h

Re: [Mesa-dev] Initial radeonsi NIR tess support

2017-12-12 Thread Nicolai Hähnle
case of the comments on refactored/moved code) should probably be in separate commits. Patches 1, 2, 4-12, 14 (with a trivial change), 15-19: Reviewed-by: Nicolai Hähnle ... with the caveat that some of the patches will probably be (trivially) affected by the following: Considering patch

Re: [Mesa-dev] [PATCH 13/18] radeonsi/nir: gather tess properties

2017-12-12 Thread Nicolai Hähnle
What about reads_pervertex_outputs? Cheers, Nicolai On 11.12.2017 03:43, Timothy Arceri wrote: --- src/gallium/drivers/radeonsi/si_shader_nir.c | 29 1 file changed, 29 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/driver

Re: [Mesa-dev] [PATCH 14/18] radeionsi: make si_llvm_emit_tcs_epilogue compatible with emit_outputs abi

2017-12-12 Thread Nicolai Hähnle
Typo in the subject: radeonsi Cheers, Nicolai On 11.12.2017 03:43, Timothy Arceri wrote: --- src/gallium/drivers/radeonsi/si_shader.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_sha

Re: [Mesa-dev] [PATCH 08/18] ac: move some helpers to ac_llvm_build.c

2017-12-12 Thread Nicolai Hähnle
On 11.12.2017 03:43, Timothy Arceri wrote: We will call these from the radeonsi NIR backend. --- src/amd/common/ac_llvm_build.c | 24 + src/amd/common/ac_llvm_build.h | 8 ++ src/amd/common/ac_nir_to_llvm.c | 58 + 3 files change

Re: [Mesa-dev] [PATCH 07/18] ac: add store_tcs_outputs() to the abi

2017-12-12 Thread Nicolai Hähnle
On 11.12.2017 03:43, Timothy Arceri wrote: --- src/amd/common/ac_nir_to_llvm.c | 63 + src/amd/common/ac_shader_abi.h | 12 2 files changed, 51 insertions(+), 24 deletions(-) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_ni

Re: [Mesa-dev] [PATCH 06/18] radeonsi: add si_nir_load_input_tcs()

2017-12-12 Thread Nicolai Hähnle
On 11.12.2017 03:43, Timothy Arceri wrote: --- src/gallium/drivers/radeonsi/si_shader.c | 47 1 file changed, 47 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index ba8301b3deb..0561d2ee9b5 1006

Re: [Mesa-dev] [PATCH 03/18] ac: add load_tes_inputs() to the abi

2017-12-12 Thread Nicolai Hähnle
On 11.12.2017 03:43, Timothy Arceri wrote: --- src/amd/common/ac_nir_to_llvm.c | 66 +--- src/amd/common/ac_shader_abi.h | 12 ++ src/gallium/drivers/radeonsi/si_shader.c | 1 + 3 files changed, 57 insertions(+), 22 deletions(-) diff --git

Re: [Mesa-dev] [PATCH 2/2] nir: fix shift for uint64_t

2017-12-12 Thread Nicolai Hähnle
I have a slight preference for Jason's suggestion, but either way, both patches: Reviewed-by: Nicolai Hähnle On 12.12.2017 04:47, Timothy Arceri wrote: --- src/compiler/nir/nir_lower_io_arrays_to_elements.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [Mesa-dev] [PATCH] ac: fix nir_op_f2f64

2017-12-12 Thread Nicolai Hähnle
With this patch we now get: %44 = and i32 %43, 1065353216 %45 = bitcast i32 %44 to float %46 = fpext float %45 to double Yay for informative commit messages :) Reviewed-by: Nicolai Hähnle --- src/amd/common/ac_nir_to_llvm.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [Mesa-dev] [PATCH] winsys/amdgpu: disable local BOs again due to worse performance

2017-12-11 Thread Nicolai Hähnle
On 11.12.2017 16:31, Marek Olšák wrote: From: Marek Olšák Cc: 17.3 Reviewed-by: Nicolai Hähnle --- src/gallium/winsys/amdgpu/drm/amdgpu_bo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c b/src/gallium/winsys/amdgpu

Re: [Mesa-dev] [PATCH] cso: add point rasterization sanity check assertion

2017-12-11 Thread Nicolai Hähnle
ruct cso_rasterizer)); if (!cso) Sure, why not. Reviewed-by: Nicolai Hähnle -- Lerne, wie die Welt wirklich ist, Aber vergiss niemals, wie sie sein sollte. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.o

Re: [Mesa-dev] [PATCH 1/6] radeonsi: allow DMABUF exports for local buffers

2017-12-06 Thread Nicolai Hähnle
On 06.12.2017 13:43, Marek Olšák wrote: On Dec 6, 2017 12:34 PM, "Nicolai Hähnle" <mailto:nhaeh...@gmail.com>> wrote: On 05.12.2017 20:05, Marek Olšák wrote: From: Marek Olšák mailto:marek.ol...@amd.com>> Cc: 17.3 mailto:mesa-sta

Re: [Mesa-dev] GBM and the Device Memory Allocator Proposals

2017-12-06 Thread Nicolai Hähnle
On 06.12.2017 14:25, Rob Clark wrote: On Wed, Dec 6, 2017 at 2:07 AM, James Jones wrote: Note I also posed the question of whether things like cached (and similarly compression, since I view compression as roughly an equivalent mechanism to a cache) in one of the open issues on my XDC 2017 slid

Re: [Mesa-dev] [PATCH 1/6] radeonsi: allow DMABUF exports for local buffers

2017-12-06 Thread Nicolai Hähnle
On 05.12.2017 20:05, Marek Olšák wrote: From: Marek Olšák Cc: 17.3 --- src/gallium/drivers/radeon/r600_texture.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index 2aa47b5..07f

Re: [Mesa-dev] [PATCH 6/6] radeonsi: make const and stream uploaders allocate read-only memory

2017-12-06 Thread Nicolai Hähnle
Except for the comment on patch 1, this series is: Reviewed-by: Nicolai Hähnle On 05.12.2017 20:05, Marek Olšák wrote: From: Marek Olšák and anything that clones these uploaders, like u_threaded_context. --- src/gallium/drivers/radeon/r600_pipe_common.c | 7 +-- 1 file changed, 5

Re: [Mesa-dev] GBM and the Device Memory Allocator Proposals

2017-12-06 Thread Nicolai Hähnle
On 06.12.2017 08:07, James Jones wrote: [snip] So lets say you have a setup where both display and GPU supported FOO/tiled, but only GPU supported compressed (FOO/CC) and cached (FOO/cached).  But the GPU supported the following transitions:     trans_a: FOO/CC -> null     trans_b: FOO/cached ->

Re: [Mesa-dev] GBM and the Device Memory Allocator Proposals

2017-12-06 Thread Nicolai Hähnle
On 06.12.2017 08:01, James Jones wrote: On 12/01/2017 10:34 AM, Nicolai Hähnle wrote: On 01.12.2017 18:09, Nicolai Hähnle wrote: [snip] As for the actual transition API, I accept that some metadata may be required, and the metadata probably needs to depend on the memory layout, which is

Re: [Mesa-dev] [PATCH] glx: GLX_MESA_multithread_makecurrent is direct-only

2017-12-06 Thread Nicolai Hähnle
Signed-off-by: Adam Jackson Makes sense. Reviewed-by: Nicolai Hähnle --- src/glx/glxextensions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glx/glxextensions.c b/src/glx/glxextensions.c index af6ffbf660..638d8bcbbe 100644 --- a/src/glx/glxextensions.c +++

Re: [Mesa-dev] [PATCH] r600/atomic: add cayman version of atomic save/restore from GDS (v2)

2017-12-05 Thread Nicolai Hähnle
S on cayman, it appears to work. Signed-off-by: Dave Airlie I can't say much about the assembly, but the CP packets look reasonable to me. Acked-by: Nicolai Hähnle --- src/gallium/drivers/r600/evergreen_state.c | 57 +- src/gallium/drivers/r600/r6

Re: [Mesa-dev] [PATCH 7/8] gallium/u_upload_mgr: allow drivers to specify pipe_resource::flags

2017-12-04 Thread Nicolai Hähnle
Patches 1 and 3-7: Reviewed-by: Nicolai Hähnle On 01.12.2017 21:19, Marek Olšák wrote: From: Marek Olšák --- src/gallium/auxiliary/util/u_upload_mgr.c| 9 ++--- src/gallium/auxiliary/util/u_upload_mgr.h| 2 +- src/gallium/drivers/freedreno/a3xx/fd3_context.c | 2

Re: [Mesa-dev] [PATCH 8/8] radeonsi: make const and stream uploaders allocate read-only memory

2017-12-04 Thread Nicolai Hähnle
On 01.12.2017 21:19, Marek Olšák wrote: From: Marek Olšák and anything that clones these uploaders, like u_threaded_context. Bottom/top-of-pipe fences will have to be moved away from using the stream_uploader. --- src/gallium/drivers/radeon/r600_pipe_common.c | 6 -- 1 file change

Re: [Mesa-dev] [PATCH 2/8] radeonsi: allow DMABUF exports for local buffers

2017-12-04 Thread Nicolai Hähnle
On 01.12.2017 21:19, Marek Olšák wrote: From: Marek Olšák Cc: 17.3 What's the use-case for this? What if somebody exports as DMABUF, then re-imports in a different API and exports as FD for inter-process sharing from there? --- src/gallium/drivers/radeon/r600_texture.c | 4 +++- 1 f

Re: [Mesa-dev] [PATCH] radeonsi: pass llvm type directly to buffer_load()

2017-12-04 Thread Nicolai Hähnle
Reviewed-by: Nicolai Hähnle On 04.12.2017 05:17, Timothy Arceri wrote: --- src/gallium/drivers/radeonsi/si_shader.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c

Re: [Mesa-dev] GBM and the Device Memory Allocator Proposals

2017-12-01 Thread Nicolai Hähnle
On 01.12.2017 18:09, Nicolai Hähnle wrote: [snip] As for the actual transition API, I accept that some metadata may be required, and the metadata probably needs to depend on the memory layout, which is often vendor-specific. But even linear layouts need some transitions for caches. We probably

Re: [Mesa-dev] GBM and the Device Memory Allocator Proposals

2017-12-01 Thread Nicolai Hähnle
On 01.12.2017 16:06, Rob Clark wrote: On Thu, Nov 30, 2017 at 5:43 PM, Nicolai Hähnle wrote: Hi, I've had a chance to look a bit more closely at the allocator prototype repository now. There's a whole bunch of low-level API design feedback, but for now let's focus on the h

Re: [Mesa-dev] [PATCH 2/2] glsl: don't run intrastage array validation when the interface type is not an array

2017-12-01 Thread Nicolai Hähnle
On 01.12.2017 08:20, Samuel Iglesias Gonsálvez wrote: On Thu, 2017-11-30 at 15:47 +0100, Nicolai Hähnle wrote: Can you add an explanation / spec quote for this? Yes. "We validate that the interface block array type's definition matches. However, the function could be previously ca

Re: [Mesa-dev] [PATCH 2/2] r600/atomic: add cayman version of atomic save/restore from GDS

2017-12-01 Thread Nicolai Hähnle
On 01.12.2017 06:06, Dave Airlie wrote: From: Dave Airlie On Cayman we don't use the append/consume counters (fglrx doesn't) and they don't seem to work well with compute shaders. This just uses GDS instead to do the atomic operations. Interesting. This is kind of what I'd have expected to b

Re: [Mesa-dev] GBM and the Device Memory Allocator Proposals

2017-11-30 Thread Nicolai Hähnle
Hi, I've had a chance to look a bit more closely at the allocator prototype repository now. There's a whole bunch of low-level API design feedback, but for now let's focus on the high-level stuff first. Going by the 4.5 major object types (as also seen on slide 5 of your presentation [0]), a

Re: [Mesa-dev] GBM and the Device Memory Allocator Proposals

2017-11-30 Thread Nicolai Hähnle
On 30.11.2017 19:52, Rob Clark wrote: On Thu, Nov 30, 2017 at 4:21 AM, Nicolai Hähnle wrote: On 30.11.2017 01:09, Miguel Angel Vico wrote: It seems to me that $new_thing should grow as a separate thing whether it ends up replacing GBM or GBM internals are somewhat rewritten on top of it. If

Re: [Mesa-dev] [PATCH 2/2] ac/surface: always compute DCC info when DCC is possible on GFX9

2017-11-30 Thread Nicolai Hähnle
On 30.11.2017 02:20, Marek Olšák wrote: From: Marek Olšák The same code for VI doesn't check for scanout either. Both patches: Reviewed-by: Nicolai Hähnle --- src/amd/common/ac_surface.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/amd/common/ac_surface.c b/src/amd/c

Re: [Mesa-dev] [PATCH v2 4/5] gallium: Make a helper for doing Z32_FLOAT_S8X24_UINT mappings.

2017-11-30 Thread Nicolai Hähnle
On 30.11.2017 16:14, Rob Clark wrote: On Thu, Nov 30, 2017 at 9:53 AM, Nicolai Hähnle wrote: On 28.11.2017 15:01, Rob Clark wrote: On Tue, Nov 21, 2017 at 4:13 PM, Eric Anholt wrote: v2: Remove the callback, leave avoiding the recursion up to the caller (probably by rewriting the

Re: [Mesa-dev] [PATCH 01/21] st/mesa: handle compute atomics

2017-11-30 Thread Nicolai Hähnle
On 29.11.2017 05:36, Dave Airlie wrote: From: Dave Airlie Just reuse the cs atomics bit and emit the hw atomic state. Reviewed-by: Nicolai Hähnle --- src/mesa/state_tracker/st_atom_atomicbuf.c | 4 src/mesa/state_tracker/st_context.c| 2 +- 2 files changed, 5 insertions

Re: [Mesa-dev] [PATCH v3] nir: add varying array splitting pass

2017-11-30 Thread Nicolai Hähnle
arr_bar[n]; Anyway, that's clearly way beyond the scope of this change. I still think the assertion makes sense, but it's not too important, so either way: Reviewed-by: Nicolai Hähnle --- src/compiler/Makefile.sources | 1 + src/compiler/nir/meson.build

Re: [Mesa-dev] [PATCH] docs/release-calendar: update and extend

2017-11-30 Thread Nicolai Hähnle
On 29.11.2017 19:20, Emil Velikov wrote: From: Emil Velikov Cc: Juan A. Suárez Cc: Andres Gomez Signed-off-by: Emil Velikov Acked-by: Nicolai Hähnle --- Gents, I have no objections if you want to do any of the releases listed ;-) *crickets* ;) --- docs/release-calendar.html

Re: [Mesa-dev] [PATCH mesa] gallium/hud: use #ifdef to test for macro existence

2017-11-30 Thread Nicolai Hähnle
Reviewed-by: Nicolai Hähnle On 29.11.2017 16:05, Eric Engestrom wrote: Signed-off-by: Eric Engestrom --- src/gallium/auxiliary/hud/hud_context.c | 10 +- src/gallium/auxiliary/hud/hud_cpufreq.c | 2 +- src/gallium/auxiliary/hud/hud_diskstat.c | 2 +- src/gallium

Re: [Mesa-dev] [PATCH 1/2] gallium/util: add u_transfer_helper

2017-11-30 Thread Nicolai Hähnle
On 29.11.2017 14:48, Rob Clark wrote: Add a new helper that drivers can use to emulate various things that need special handling in particular in transfer_map: 1) z32_s8x24.. gl/gallium treats this as a single buffer with depth and stencil interleaved but hardware frequently treats this a

Re: [Mesa-dev] [PATCH v2 4/5] gallium: Make a helper for doing Z32_FLOAT_S8X24_UINT mappings.

2017-11-30 Thread Nicolai Hähnle
On 28.11.2017 15:01, Rob Clark wrote: On Tue, Nov 21, 2017 at 4:13 PM, Eric Anholt wrote: v2: Remove the callback, leave avoiding the recursion up to the caller (probably by rewriting the vtbl either in pctx or u_resource_vtbl) hmm, that is still a bit ugly.. and looking at the equiv th

Re: [Mesa-dev] [PATCH 2/2] glsl: don't run intrastage array validation when the interface type is not an array

2017-11-30 Thread Nicolai Hähnle
Can you add an explanation / spec quote for this? On 09.11.2017 12:48, Samuel Iglesias Gonsálvez wrote: Signed-off-by: Samuel Iglesias Gonsálvez --- src/compiler/glsl/link_interface_blocks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/glsl/link_interfac

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