[Mesa-dev] [PATCH] mesa: readpixels add support for GL_HALF_FLOAT

2018-03-20 Thread Lin Johnson
Ext_color_buffer_half_float is using type GL_HALF_FLOAT and data_type GL_FLOAT. This fix Android CTS test android.view.cts.PixelCopyTest #TestWindowProducerCopyToRGBA16F Signed-off-by: Lin Johnson --- src/mesa/main/readpix.c | 2 ++ 1 file changed, 2 insertions(+) diff

[Mesa-dev] [RFC v1 19/38] nir: Add a pass for fixing deref modes

2018-03-20 Thread Jason Ekstrand
This will be needed by anything which changes variable modes without rewriting derefs. --- src/compiler/nir/nir.h | 2 ++ src/compiler/nir/nir_deref.c | 30 ++ 2 files changed, 32 insertions(+) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index

[Mesa-dev] [RFC v1 37/38] intel/nir: Fixup deref modes after lowering patch vertices

2018-03-20 Thread Jason Ekstrand
--- src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp b/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp index 69da83a..0fd1492 100644 --- a/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp +++

[Mesa-dev] [RFC v1 18/38] nir: Support deref instructions in remove_dead_variables

2018-03-20 Thread Jason Ekstrand
--- src/compiler/nir/nir_remove_dead_variables.c | 99 1 file changed, 99 insertions(+) diff --git a/src/compiler/nir/nir_remove_dead_variables.c b/src/compiler/nir/nir_remove_dead_variables.c index eff66f9..6b1927f 100644 ---

[Mesa-dev] [RFC v1 34/38] nir: Support deref instructions in lower_wpos_ytransform

2018-03-20 Thread Jason Ekstrand
--- src/compiler/nir/nir_lower_wpos_ytransform.c | 29 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/src/compiler/nir/nir_lower_wpos_ytransform.c b/src/compiler/nir/nir_lower_wpos_ytransform.c index 62166e7..2e0dd86 100644 ---

[Mesa-dev] [RFC v1 36/38] intel, ir3: Disable nir_opt_copy_prop_vars

2018-03-20 Thread Jason Ekstrand
This pass doesn't handle deref instructions yet. Making it handle both legacy derefs and deref instructions would be painful. Since it's not important for correctness, just disable it for now. --- src/gallium/drivers/freedreno/ir3/ir3_nir.c | 2 +- src/intel/compiler/brw_nir.c|

[Mesa-dev] [RFC v1 29/38] nir: Support deref instructions in lower_clip_cull

2018-03-20 Thread Jason Ekstrand
--- .../nir/nir_lower_clip_cull_distance_arrays.c | 69 -- 1 file changed, 65 insertions(+), 4 deletions(-) diff --git a/src/compiler/nir/nir_lower_clip_cull_distance_arrays.c b/src/compiler/nir/nir_lower_clip_cull_distance_arrays.c index 95eda82..69b31d5 100644 ---

[Mesa-dev] [RFC v1 33/38] nir: Support deref instructions in lower_atomics

2018-03-20 Thread Jason Ekstrand
--- src/compiler/nir/nir_lower_atomics.c | 115 +-- 1 file changed, 110 insertions(+), 5 deletions(-) diff --git a/src/compiler/nir/nir_lower_atomics.c b/src/compiler/nir/nir_lower_atomics.c index 2287517..9cf6608 100644 --- a/src/compiler/nir/nir_lower_atomics.c

[Mesa-dev] [RFC v1 27/38] nir/deref: Add a deref cleanup function

2018-03-20 Thread Jason Ekstrand
Sometimes it's useful for a pass to be able to clean up its own derefs instead of waiting for DCE. This little helper makes it very easy. --- src/compiler/nir/nir.h | 2 ++ src/compiler/nir/nir_deref.c | 13 + 2 files changed, 15 insertions(+) diff --git

[Mesa-dev] [RFC v1 26/38] nir: Support deref instructions in lower_indirect_derefs

2018-03-20 Thread Jason Ekstrand
--- src/compiler/nir/nir_lower_indirect_derefs.c | 156 +++ 1 file changed, 156 insertions(+) diff --git a/src/compiler/nir/nir_lower_indirect_derefs.c b/src/compiler/nir/nir_lower_indirect_derefs.c index 02f202d..ebeb79b 100644 ---

[Mesa-dev] [RFC v1 32/38] nir: Support deref instructions in lower_io

2018-03-20 Thread Jason Ekstrand
--- src/compiler/nir/nir_lower_io.c | 70 + 1 file changed, 50 insertions(+), 20 deletions(-) diff --git a/src/compiler/nir/nir_lower_io.c b/src/compiler/nir/nir_lower_io.c index df91feb..549583d 100644 --- a/src/compiler/nir/nir_lower_io.c +++

[Mesa-dev] [RFC v1 25/38] nir: Support deref instructions in lower_vars_to_ssa

2018-03-20 Thread Jason Ekstrand
--- src/compiler/nir/nir_lower_vars_to_ssa.c | 75 1 file changed, 58 insertions(+), 17 deletions(-) diff --git a/src/compiler/nir/nir_lower_vars_to_ssa.c b/src/compiler/nir/nir_lower_vars_to_ssa.c index 0cc6514..403ce26 100644 ---

[Mesa-dev] [RFC v1 35/38] nir: Support deref instructions in remove_unused_varyings

2018-03-20 Thread Jason Ekstrand
--- src/compiler/nir/nir_linking_helpers.c | 50 ++ 1 file changed, 27 insertions(+), 23 deletions(-) diff --git a/src/compiler/nir/nir_linking_helpers.c b/src/compiler/nir/nir_linking_helpers.c index 2b0a266..1a0cb91 100644 ---

[Mesa-dev] [RFC v1 38/38] i965: Move nir_lower_deref_instrs to right before locals_to_regs

2018-03-20 Thread Jason Ekstrand
--- src/intel/compiler/brw_nir.c| 2 ++ src/mesa/drivers/dri/i965/brw_program.c | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c index cf994ac..4fc6cae 100644 --- a/src/intel/compiler/brw_nir.c +++

[Mesa-dev] [RFC v1 30/38] nir: Support deref instructions in propagate_invariant

2018-03-20 Thread Jason Ekstrand
--- src/compiler/nir/nir_propagate_invariant.c | 23 --- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/src/compiler/nir/nir_propagate_invariant.c b/src/compiler/nir/nir_propagate_invariant.c index 7b5bd6c..b48b91c 100644 ---

[Mesa-dev] [RFC v1 31/38] nir: Support deref instructions in gather_info

2018-03-20 Thread Jason Ekstrand
--- src/compiler/nir/nir_gather_info.c | 26 -- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/src/compiler/nir/nir_gather_info.c b/src/compiler/nir/nir_gather_info.c index 743f968..50d67b6 100644 --- a/src/compiler/nir/nir_gather_info.c +++

[Mesa-dev] [RFC v1 21/38] nir: Support deref instructions in lower_io_to_temporaries

2018-03-20 Thread Jason Ekstrand
--- src/compiler/nir/nir_lower_io_to_temporaries.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compiler/nir/nir_lower_io_to_temporaries.c b/src/compiler/nir/nir_lower_io_to_temporaries.c index 301ba65..7ba66ba 100644 --- a/src/compiler/nir/nir_lower_io_to_temporaries.c +++

[Mesa-dev] [RFC v1 28/38] nir: Support deref instructions in lower_system_values

2018-03-20 Thread Jason Ekstrand
--- src/compiler/nir/nir_lower_system_values.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/compiler/nir/nir_lower_system_values.c b/src/compiler/nir/nir_lower_system_values.c index fb560ee..104df51 100644 --- a/src/compiler/nir/nir_lower_system_values.c

[Mesa-dev] [RFC v1 24/38] nir: Support deref instructions in split_var_copies

2018-03-20 Thread Jason Ekstrand
--- src/compiler/nir/nir_split_var_copies.c | 42 + 1 file changed, 42 insertions(+) diff --git a/src/compiler/nir/nir_split_var_copies.c b/src/compiler/nir/nir_split_var_copies.c index bc3ceed..bcd1f10 100644 --- a/src/compiler/nir/nir_split_var_copies.c +++

[Mesa-dev] [RFC v1 12/38] anv, i965, radv, st, ir3: Call nir_lower_deref_instrs

2018-03-20 Thread Jason Ekstrand
This inserts a call to nir_lower_deref_instrs at every call site of glsl_to_nir, spirv_to_nir, and prog_to_nir. --- src/amd/vulkan/radv_shader.c| 2 ++ src/gallium/drivers/freedreno/ir3/ir3_cmdline.c | 3 +++ src/intel/vulkan/anv_pipeline.c | 2 ++

[Mesa-dev] [RFC v1 20/38] nir: Support deref instructions in lower_global_vars_to_local

2018-03-20 Thread Jason Ekstrand
--- src/compiler/nir/nir_lower_global_vars_to_local.c | 62 +++ 1 file changed, 42 insertions(+), 20 deletions(-) diff --git a/src/compiler/nir/nir_lower_global_vars_to_local.c b/src/compiler/nir/nir_lower_global_vars_to_local.c index c8fdfde..14aa366 100644 ---

[Mesa-dev] [RFC v1 23/38] nir: Support deref instructions in lower_var_copies

2018-03-20 Thread Jason Ekstrand
--- src/compiler/nir/nir.h | 3 ++ src/compiler/nir/nir_builder.h | 48 ++ src/compiler/nir/nir_lower_var_copies.c | 90 +++-- 3 files changed, 138 insertions(+), 3 deletions(-) diff --git a/src/compiler/nir/nir.h

[Mesa-dev] [RFC v1 22/38] nir: Add a deref path helper struct

2018-03-20 Thread Jason Ekstrand
This commit introduces a new nir_deref.h header for helpers that are less common and really only needed by a few heavy-duty passes. In this header is a new struct for representing a full deref path which can be walked in either direction. --- src/compiler/Makefile.sources | 1 +

[Mesa-dev] [RFC v1 16/38] prog/nir: Use deref instructions for params

2018-03-20 Thread Jason Ekstrand
--- src/mesa/program/prog_to_nir.c | 36 ++-- 1 file changed, 6 insertions(+), 30 deletions(-) diff --git a/src/mesa/program/prog_to_nir.c b/src/mesa/program/prog_to_nir.c index 26dfc37..14391a3 100644 --- a/src/mesa/program/prog_to_nir.c +++

[Mesa-dev] [RFC v1 14/38] glsl/nir: Use deref instructions instead of dref chains

2018-03-20 Thread Jason Ekstrand
--- src/compiler/glsl/glsl_to_nir.cpp | 239 +++--- 1 file changed, 94 insertions(+), 145 deletions(-) diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp index 9da4526..be7a510 100644 --- a/src/compiler/glsl/glsl_to_nir.cpp +++

[Mesa-dev] [RFC v1 17/38] nir/lower_atomics: Rework the main walker loop a bit

2018-03-20 Thread Jason Ekstrand
This replaces some "if (...} { }" with "if (...) continue;" to reduce nesting depth and makes nir_metadata_preserve conditional on progress for the given impl. --- src/compiler/nir/nir_lower_atomics.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git

[Mesa-dev] [RFC v1 15/38] prog/nir: Simplify some load/store operations

2018-03-20 Thread Jason Ekstrand
--- src/compiler/nir/nir_builder.h | 6 ++ src/mesa/program/prog_to_nir.c | 29 ++--- 2 files changed, 12 insertions(+), 23 deletions(-) diff --git a/src/compiler/nir/nir_builder.h b/src/compiler/nir/nir_builder.h index f1e52b2..6667d52 100644 ---

[Mesa-dev] [PATCH 04/38] nir/lower_indirect_derefs: Support interp_var_at intrinsics

2018-03-20 Thread Jason Ekstrand
This fixes the fs-interpolateAtCentroid-block-array piglit test on i965. Cc: mesa-sta...@lists.freedesktop.org --- src/compiler/nir/nir_lower_indirect_derefs.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/compiler/nir/nir_lower_indirect_derefs.c

[Mesa-dev] [RFC v1 06/38] nir: Rename image intrinsics to image_var

2018-03-20 Thread Jason Ekstrand
Generated with git grep -l nir_intrinsic_image | xargs \ sed -i 's/nir_intrinsic_image/nir_intrinsic_image_var/g' and some manual fixing in nir_intrinsics.h --- src/amd/common/ac_nir_to_llvm.c| 42 - src/amd/vulkan/radv_meta_bufimage.c| 8

[Mesa-dev] [PATCH 05/38] nir/validator: Validate that all used variables exist

2018-03-20 Thread Jason Ekstrand
We were validating this for locals but nothing else. --- src/compiler/nir/nir_validate.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/compiler/nir/nir_validate.c b/src/compiler/nir/nir_validate.c index a49948f..e9d6bd5 100644 ---

[Mesa-dev] [RFC v1 09/38] nir: Add _deref versions of all of the _var intrinsics

2018-03-20 Thread Jason Ekstrand
--- src/compiler/nir/nir.h| 2 +- src/compiler/nir/nir_builder.h| 37 + src/compiler/nir/nir_intrinsics.h | 84 +++ 3 files changed, 122 insertions(+), 1 deletion(-) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h

[Mesa-dev] [RFC v1 08/38] nir/builder: Add deref building helpers

2018-03-20 Thread Jason Ekstrand
--- src/compiler/nir/nir_builder.h | 87 ++ 1 file changed, 87 insertions(+) diff --git a/src/compiler/nir/nir_builder.h b/src/compiler/nir/nir_builder.h index 36e0ae3..27aa65b 100644 --- a/src/compiler/nir/nir_builder.h +++

[Mesa-dev] [RFC v1 07/38] nir: Add a deref instruction type

2018-03-20 Thread Jason Ekstrand
This commit adds a new instruction type to NIR for handling derefs. Nothing uses it yet but this adds the data structure as well as all of the code to validate, print, clone, and [de]serialize them. --- src/compiler/nir/nir.c| 50 +++ src/compiler/nir/nir.h

[Mesa-dev] [RFC v1 00/38] nir: Move to using instructions for derefs

2018-03-20 Thread Jason Ekstrand
This is something that Connor and I have been talking about for some time now. The basic idea is to replace the current singly linked nir_deref list with deref instructions. This is similar to what LLVM does and it offers quite a bit more freedom when we start getting more realistic pointers

[Mesa-dev] [RFC v1 11/38] nir: Add helpers for working with deref instructions

2018-03-20 Thread Jason Ekstrand
This commit adds a pass for lowering deref instructions to deref chains as well as some smaller helpers to ease the transition. --- src/compiler/Makefile.sources | 1 + src/compiler/nir/meson.build | 1 + src/compiler/nir/nir.h | 50 ++- src/compiler/nir/nir_builder.h | 23

[Mesa-dev] [PATCH 01/38] nir: Add src/dest num_components helpers

2018-03-20 Thread Jason Ekstrand
We already have these for bit_size --- src/compiler/nir/nir.h | 12 1 file changed, 12 insertions(+) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 7ad19b4..8f4a28c 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -626,11 +626,23 @@

[Mesa-dev] [RFC v1 10/38] nir: Add deref sources to texture instructions

2018-03-20 Thread Jason Ekstrand
--- src/compiler/nir/nir.h | 2 ++ src/compiler/nir/nir_print.c | 6 ++ 2 files changed, 8 insertions(+) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 14b532d..b575545 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -1233,6 +1233,8 @@ typedef

[Mesa-dev] [PATCH 03/38] nir/vars_to_ssa: Remove copies from the correct set

2018-03-20 Thread Jason Ekstrand
Cc: mesa-sta...@lists.freedesktop.org --- src/compiler/nir/nir_lower_vars_to_ssa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_lower_vars_to_ssa.c b/src/compiler/nir/nir_lower_vars_to_ssa.c index e8cfe30..0cc6514 100644 ---

[Mesa-dev] [RFC v1 13/38] glsl/nir: Only claim to handle intrinsic functions

2018-03-20 Thread Jason Ekstrand
Non-intrinsic function handling has never actually been tested and probably doesn't work. Just get rid of it for now. We can always add it back in later if it's useful. --- src/compiler/glsl/glsl_to_nir.cpp | 25 ++--- 1 file changed, 2 insertions(+), 23 deletions(-) diff

[Mesa-dev] [PATCH 02/38] nir: Return a cursor from nir_instr_remove

2018-03-20 Thread Jason Ekstrand
Because nir_instr_remove is an inline wrapper around nir_instr_remove_v, the compiler should be able to tell that the return value is unused and not emit the extra code in most cases. --- src/compiler/nir/nir.c| 2 +- src/compiler/nir/nir.h| 16

Re: [Mesa-dev] [PATCH 0/9] Clean up draw path state updates.

2018-03-20 Thread Mathias Fröhlich
Hi Brian, On Tuesday, 20 March 2018 16:16:13 CET Brian Paul wrote: > The code changes look good, AFAICT. But some of the comments could be > improved, IMHO. See other replies... > > Otherwise, for the series, > Reviewed-by: Brian Paul Thanks for the review! Will

[Mesa-dev] [PATCH 2/3] st/glsl_to_nir: fix driver location for packed doubles

2018-03-20 Thread Timothy Arceri
--- src/mesa/state_tracker/st_glsl_to_nir.cpp | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/src/mesa/state_tracker/st_glsl_to_nir.cpp b/src/mesa/state_tracker/st_glsl_to_nir.cpp index afb6120d9d..b01be622f7 100644 ---

[Mesa-dev] [PATCH 3/3] ac/nir_to_llvm: fix component packing for double outputs

2018-03-20 Thread Timothy Arceri
We need to wait until after the writemask is widened before we adjust it for component packing. Together with the previous patch this fixes a number of arb_enhanced_layouts component layout piglit tests. --- src/amd/common/ac_nir_to_llvm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

[Mesa-dev] [PATCH 1/3] radeonsi/nir: fix scanning of multi-slot output varyings

2018-03-20 Thread Timothy Arceri
This fixes tcs/tes varying arrays where we dont lower indirects and therefore don't split arrays. Here we also fix useagemask for dual slot doubles. Fixes a number of arb_tessellation_shader piglit tests. --- src/gallium/drivers/radeonsi/si_shader_nir.c | 236 ++- 1 file

Re: [Mesa-dev] [PATCH kmscube] cube-tex: make use of modifiers

2018-03-20 Thread Rob Clark
On Tue, Mar 20, 2018 at 2:45 PM, Emil Velikov wrote: > On 20 March 2018 at 18:02, Christian Gmeiner > wrote: >> Fixes rendering issues with mode rgba on etnaviv. I have applied >> the same change for nv12 variants but they are not supported

Re: [Mesa-dev] [PATCH 5/5] clover: Dynamically calculate __OPENCL_VERSION__ and CLC language version

2018-03-20 Thread Aaron Watry
ping. This is the last of the series that still needs review. --Aaron On Thu, Mar 1, 2018 at 1:39 PM, Aaron Watry wrote: > Use get_language_version to calculate default cl standard based on > device capabilities and -cl-std specified in build options. > > v4: Squash the

Re: [Mesa-dev] [PATCH 5/5] i965/miptree: Don't gtt map from map_depthstencil

2018-03-20 Thread Nanley Chery
On Tue, Jan 09, 2018 at 11:17:02PM -0800, Scott D Phillips wrote: > Instead of gtt mapping, call out to other map functions (map_map > or map_tiled_memcpy) for the depth surface. Removes a place where > gtt mapping is used. > --- > This is a bit icky, perhaps something like mapping z_mt with >

Re: [Mesa-dev] [PATCH v4 1/2] anv/cmd_buffer: consider multiview masks for tracking pending clear aspects

2018-03-20 Thread Caio Marcelo de Oliveira Filho
Hi Iago, > Fixes: > dEQP-VK.multiview.readback_implicit_clear.* Applied locally and verified this. Thanks for fixing those. I have a couple of comments after reading the patch, feel free to take them only if make sense to you :-) > + /* When multiview is active, attachments with a

[Mesa-dev] [PATCH] i965: android: pass the correct header path to brw_oa.py

2018-03-20 Thread Lionel Landwerlin
$(intermediates) is somehow different from $(dir $@). We were also passing the xml files twice :/ Fixes: 2d2b15fbcab ("i965: fix autotools/android build") Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105634 Signed-off-by: Lionel Landwerlin Tested-by:

Re: [Mesa-dev] [PATCH v3] i965: android: pass the correct header name to the python script

2018-03-20 Thread Lionel Landwerlin
Thanks Mark, There is one thing I cannot explain why Emil's patch : How comes it is : --code=out/target/product/androidia_64/gen/SHARED_LIBRARIES/i965_dri_intermediates/brw_oa_metrics.c Yet : --header=out/target/common/obj/PACKAGING/boot-jars-package-check_intermediates/brw_oa_metrics.h

Re: [Mesa-dev] [PATCH v3] i965: android: pass the correct header name to the python script

2018-03-20 Thread Mark Janes
I tested this, and still got an error: FAILED: out/target/product/androidia_64/gen/SHARED_LIBRARIES/i965_dri_intermediates/brw_oa_metrics.c /bin/bash -c "python vendor/intel/external/android_ia/mesa/src/mesa/drivers/dri/i965/brw_oa.py

[Mesa-dev] [PATCH v2] radv: fix scanning output_usage_mask with structs

2018-03-20 Thread Samuel Pitoiset
To fix a regression in: dEQP-VK.spirv_assembly.instruction.graphics.variable_init.output.struct v2: handle indirect array accesses (Dave) Fixes: f3275ca01c ("ac/nir: only enable used channels when exporting parameters") Signed-off-by: Samuel Pitoiset ---

[Mesa-dev] [PATCH] i965: fix android build

2018-03-20 Thread Lionel Landwerlin
This is the equivalent of commit 5770e1d89e0eb49eb3c9547e8657d636b6e7e5d7 for android. Signed-off-by: Lionel Landwerlin Fixes: 2d2b15fbcab ("i965: fix autotools/android build") --- src/mesa/drivers/dri/i965/Android.mk | 5 - 1 file changed, 4 insertions(+), 1

Re: [Mesa-dev] [PATCH v3] i965/miptree: Use cpu tiling/detiling when mapping

2018-03-20 Thread Nanley Chery
On Wed, Mar 14, 2018 at 05:18:58PM +, Chris Wilson wrote: > Quoting Nanley Chery (2018-03-14 17:14:15) > > On Mon, Mar 12, 2018 at 10:52:55AM -0700, Scott D Phillips wrote: > > > Rename the (un)map_gtt functions to (un)map_map (map by > > > returning a map) and add new functions

Re: [Mesa-dev] [PATCH] i965/tiled_memcpy: realign rgba8_copy_aligned_dst stack in 32-bit builds

2018-03-20 Thread Chris Wilson
Quoting Scott D Phillips (2018-03-20 20:39:25) > When building intel_tiled_memcpy for i686, the stack will only be > 4-byte aligned. This isn't sufficient for SSE temporaries which > require 16-byte alignment. Use the force_align_arg_pointer > function attribute in that case to ensure sufficient

[Mesa-dev] [PATCH] i965/tiled_memcpy: realign rgba8_copy_aligned_dst stack in 32-bit builds

2018-03-20 Thread Scott D Phillips
When building intel_tiled_memcpy for i686, the stack will only be 4-byte aligned. This isn't sufficient for SSE temporaries which require 16-byte alignment. Use the force_align_arg_pointer function attribute in that case to ensure sufficient alignment. ---

Re: [Mesa-dev] [PATCH v3] i965: android: pass the correct header name to the python script

2018-03-20 Thread Lionel Landwerlin
On 20/03/18 19:34, Emil Velikov wrote: v2: Pass the actual filename instead of $(word ...) magic v3: Drop duplicate $(i965_oa_xml_FILES) Fixes: 2d2b15fbcab ("i965: fix autotools/android build Cc: Lionel Landwerlin Cc: Clayton Craft

Re: [Mesa-dev] [PATCH] i965: fix out of tree autotools build

2018-03-20 Thread Mathias Fröhlich
Hi, Looks good and helps here a lot! Thanks! Reviewed-by: Mathias Fröhlich Mathias On Tuesday, 20 March 2018 19:59:00 CET Lionel Landwerlin wrote: > Fixes: 2d2b15fbcab ("i965: fix autotools/android build") > Signed-off-by: Lionel Landwerlin

Re: [Mesa-dev] [PATCH] i965: fix out of tree autotools build

2018-03-20 Thread Emil Velikov
On 20 March 2018 at 18:59, Lionel Landwerlin wrote: > Fixes: 2d2b15fbcab ("i965: fix autotools/android build") > Signed-off-by: Lionel Landwerlin > --- > src/mesa/drivers/dri/i965/Makefile.am | 5 - > 1 file changed, 4

[Mesa-dev] [PATCH v3] i965: android: pass the correct header name to the python script

2018-03-20 Thread Emil Velikov
v2: Pass the actual filename instead of $(word ...) magic v3: Drop duplicate $(i965_oa_xml_FILES) Fixes: 2d2b15fbcab ("i965: fix autotools/android build Cc: Lionel Landwerlin Cc: Clayton Craft Signed-off-by: Emil Velikov

Re: [Mesa-dev] [PATCH v2] docs: add 17.3.{8, 9} in the release calendar

2018-03-20 Thread Emil Velikov
On 19 March 2018 at 15:28, Juan A. Suarez Romero wrote: > Mesa 18.0 series has not been released yet, so let's extend 17.3 lifetime. > Any moment now ;-) > v2: add 17.3.9 in the calendar (Andres Gomez) > > CC: Andres Gomez > CC: Emil Velikov

[Mesa-dev] [PATCH] i965: fix out of tree autotools build

2018-03-20 Thread Lionel Landwerlin
Fixes: 2d2b15fbcab ("i965: fix autotools/android build") Signed-off-by: Lionel Landwerlin --- src/mesa/drivers/dri/i965/Makefile.am | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/Makefile.am

Re: [Mesa-dev] Releasing 18.0

2018-03-20 Thread Emil Velikov
On 15 March 2018 at 17:01, Marek Olšák wrote: > Hi, > > I'd like to have these in 18.0. People can fetch them here: >git://people.freedesktop.org/~mareko/mesa for-18.0 > > They are already in our AMD internal 18.0 branch, so they get quite a lot of > testing. > > pick

Re: [Mesa-dev] [PATCH kmscube] cube-tex: make use of modifiers

2018-03-20 Thread Emil Velikov
On 20 March 2018 at 18:02, Christian Gmeiner wrote: > Fixes rendering issues with mode rgba on etnaviv. I have applied > the same change for nv12 variants but they are not supported on > etnaviv. > > Signed-off-by: Christian Gmeiner > ---

Re: [Mesa-dev] [PATCH kmscube] cube-tex: make use of modifiers

2018-03-20 Thread Eric Engestrom
On Tuesday, 2018-03-20 19:02:00 +0100, Christian Gmeiner wrote: > Fixes rendering issues with mode rgba on etnaviv. I have applied > the same change for nv12 variants but they are not supported on > etnaviv. > > Signed-off-by: Christian Gmeiner LGTM! Reviewed-by:

[Mesa-dev] [Bug 105621] Build failure on GNOME Continuous

2018-03-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105621 Emil Velikov changed: What|Removed |Added Resolution|--- |FIXED

Re: [Mesa-dev] [PATCH 1/2] nir: Initial implementation of a nir_instr_worklist

2018-03-20 Thread Eric Anholt
Thomas Helland writes: > Make a simple worklist by basically just wrapping u_vector. > This is intended used in nir_opt_dce to reduce the number of calls > to ralloc, as we are currenlty spamming ralloc quite bad. It should > also give better cache locality and much

[Mesa-dev] [PATCH v2] i965: android: pass the correct header name to the python script

2018-03-20 Thread Emil Velikov
v2: Pass the actual filename instead of $(word ...) magic Fixes: 2d2b15fbcab ("i965: fix autotools/android build Cc: Lionel Landwerlin Cc: Clayton Craft Signed-off-by: Emil Velikov ---

[Mesa-dev] [PATCH] i965: android: pass the correct header name to the python script

2018-03-20 Thread Emil Velikov
Fixes: 2d2b15fbcab ("i965: fix autotools/android build Cc: Lionel Landwerlin Cc: Clayton Craft Signed-off-by: Emil Velikov --- src/mesa/drivers/dri/i965/Android.mk | 2 +- 1 file changed, 1 insertion(+), 1

[Mesa-dev] [Bug 105621] Build failure on GNOME Continuous

2018-03-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105621 Mark Janes changed: What|Removed |Added CC|

Re: [Mesa-dev] [PATCH] aubinator_error_decode: Compare only the class_name of the ring.

2018-03-20 Thread Chris Wilson
Quoting Lionel Landwerlin (2018-03-20 16:39:18) > On 20/03/18 16:30, Chris Wilson wrote: > > Quoting Rafael Antognolli (2018-03-20 16:13:08) > >> ring_name is " + " (e.g. rcs0). So we need to > >> first compare the class name only, then get the instance id. > >> > >> Without this, INSTDONE is not

Re: [Mesa-dev] [PATCH v2 5/8] intel: devinfo: add helper functions to fill fusing masks values

2018-03-20 Thread Lionel Landwerlin
On 20/03/18 00:08, Kenneth Graunke wrote: On Wednesday, March 14, 2018 10:19:11 AM PDT Lionel Landwerlin wrote: There are a couple of ways we can get the fusing information from the kernel : - Through DRM_I915_GETPARAM with the SLICE_MASK/SUBSLICE_MASK parameters - Through the new

[Mesa-dev] [PATCH kmscube] cube-tex: make use of modifiers

2018-03-20 Thread Christian Gmeiner
Fixes rendering issues with mode rgba on etnaviv. I have applied the same change for nv12 variants but they are not supported on etnaviv. Signed-off-by: Christian Gmeiner --- cube-tex.c | 32 1 file changed, 24 insertions(+), 8

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

2018-03-20 Thread Gert Wollny
Am Dienstag, den 20.03.2018, 15:33 +0100 schrieb Nicolai Hähnle: > Nice, did you actually get it to work entirely on a big endian > machine? > > Bit fields aren't super portable, [...] Indeed, the order of the bits in a bit field is compiler implementation dependent. To make sure that changing

Re: [Mesa-dev] [PATCH] i965: annotate brw_oa.py's --header and --code as required

2018-03-20 Thread Emil Velikov
On 20 March 2018 at 17:06, Lionel Landwerlin wrote: > On 20/03/18 16:29, Emil Velikov wrote: >> >> From: Emil Velikov >> >> As of earlier commit, the --header was made a hard requirement when >> using --code. >> >> Hence - annotate both

Re: [Mesa-dev] [PATCH] i965: annotate brw_oa.py's --header and --code as required

2018-03-20 Thread Lionel Landwerlin
On 20/03/18 16:29, Emil Velikov wrote: From: Emil Velikov As of earlier commit, the --header was made a hard requirement when using --code. Hence - annotate both as required and drop a few no longer needed checks. Fixes: 035cc7a12dc0 ("i965: perf: reduce i965

Re: [Mesa-dev] [PATCH] i965: annotate brw_oa.py's --header and --code as required

2018-03-20 Thread Dylan Baker
Quoting Emil Velikov (2018-03-20 09:29:00) [snip] > gens = [] > for xml_file in args.xml_files: > @@ -617,7 +610,7 @@ def main(): > > """)) > > -c("#include \"" + os.path.basename(args.header) + "\"") > +c("#include \"" + os.path.basename(header_file) + "\"") You're

Re: [Mesa-dev] [PATCH] i965: fix autotools/android build

2018-03-20 Thread Lionel Landwerlin
On 20/03/18 16:23, Emil Velikov wrote: On 20 March 2018 at 14:59, Lionel Landwerlin wrote: Autotools/android builds generate the header & code files in 2 steps, but the code generation requires the name of the header file to include it. This change generates

Re: [Mesa-dev] [PATCH] dri3: Fix typo in version check

2018-03-20 Thread Daniel Stone
On 20 March 2018 at 16:24, Dylan Baker wrote: > Quoting Daniel Stone (2018-03-20 09:17:21) >> The have-new-DRI3 codepaths would never actually properly trigger, since >> there was a typo in configure.ac which broke the version check. This >> went unnoticed but for an error in

Re: [Mesa-dev] [PATCH] aubinator_error_decode: Compare only the class_name of the ring.

2018-03-20 Thread Lionel Landwerlin
On 20/03/18 16:30, Chris Wilson wrote: Quoting Rafael Antognolli (2018-03-20 16:13:08) ring_name is " + " (e.g. rcs0). So we need to first compare the class name only, then get the instance id. Without this, INSTDONE is not being decoded. Signed-off-by: Rafael Antognolli

[Mesa-dev] [PATCH] i965: annotate brw_oa.py's --header and --code as required

2018-03-20 Thread Emil Velikov
From: Emil Velikov As of earlier commit, the --header was made a hard requirement when using --code. Hence - annotate both as required and drop a few no longer needed checks. Fixes: 035cc7a12dc0 ("i965: perf: reduce i965 binary size") Cc: Lionel Landwerlin

Re: [Mesa-dev] [PATCH] aubinator_error_decode: Compare only the class_name of the ring.

2018-03-20 Thread Chris Wilson
Quoting Rafael Antognolli (2018-03-20 16:13:08) > ring_name is " + " (e.g. rcs0). So we need to > first compare the class name only, then get the instance id. > > Without this, INSTDONE is not being decoded. > > Signed-off-by: Rafael Antognolli > Cc: Chris Wilson

Re: [Mesa-dev] [PATCH v6 1/2] gallium/winsys/kms: Fix possible leak in map/unmap.

2018-03-20 Thread Tomasz Figa
On Wed, Mar 21, 2018 at 12:58 AM, Emil Velikov wrote: > On 20 March 2018 at 14:24, Tomasz Figa wrote: >> On Tue, Mar 20, 2018 at 10:44 PM, Emil Velikov >> wrote: >>> On 20 March 2018 at 04:40, Tomasz Figa

Re: [Mesa-dev] [PATCH] dri3: Fix typo in version check

2018-03-20 Thread Dylan Baker
Quoting Daniel Stone (2018-03-20 09:17:21) > The have-new-DRI3 codepaths would never actually properly trigger, since > there was a typo in configure.ac which broke the version check. This > went unnoticed but for an error in config.log if you looked closely > enough. > > Signed-off-by: Daniel

Re: [Mesa-dev] [PATCH] i965: fix autotools/android build

2018-03-20 Thread Emil Velikov
On 20 March 2018 at 14:59, Lionel Landwerlin wrote: > Autotools/android builds generate the header & code files in 2 steps, > but the code generation requires the name of the header file to > include it. > > This change generates both files in one command. > >

Re: [Mesa-dev] [PATCH 2/2] meson: Don't build svga on ARM/AArch64

2018-03-20 Thread Daniel Stone
On 20 March 2018 at 16:16, Dylan Baker wrote: > Quoting Daniel Stone (2018-03-20 01:54:25) >> VMware has no (published) support for Arm-architecture guests. Pushed now with review and the new suggested title - thanks both for review! Cheers, Daniel

[Mesa-dev] [PATCH] dri3: Fix typo in version check

2018-03-20 Thread Daniel Stone
The have-new-DRI3 codepaths would never actually properly trigger, since there was a typo in configure.ac which broke the version check. This went unnoticed but for an error in config.log if you looked closely enough. Signed-off-by: Daniel Stone Reported-by: Lukas F.

Re: [Mesa-dev] [PATCH 2/2] meson: Don't build svga on ARM/AArch64

2018-03-20 Thread Dylan Baker
Quoting Daniel Stone (2018-03-20 01:54:25) > VMware has no (published) support for Arm-architecture guests. > > Signed-off-by: Daniel Stone > Cc: Dylan Baker > --- > meson.build | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [Mesa-dev] [PATCH] st/mesa: add compiler/nir/ prefix for nir includes

2018-03-20 Thread Emil Velikov
On 20 March 2018 at 16:15, Brian Paul wrote: > On 03/20/2018 05:41 AM, Emil Velikov wrote: >> >> From: Emil Velikov >> >> Stay consistent with the rest of the codebase, effectively fixing the >> autotools build. >> >> Bugzilla: >>

Re: [Mesa-dev] [PATCH] st/mesa: add compiler/nir/ prefix for nir includes

2018-03-20 Thread Brian Paul
On 03/20/2018 05:41 AM, Emil Velikov wrote: From: Emil Velikov Stay consistent with the rest of the codebase, effectively fixing the autotools build. Bugzilla:

[Mesa-dev] [PATCH] aubinator_error_decode: Compare only the class_name of the ring.

2018-03-20 Thread Rafael Antognolli
ring_name is " + " (e.g. rcs0). So we need to first compare the class name only, then get the instance id. Without this, INSTDONE is not being decoded. Signed-off-by: Rafael Antognolli Cc: Chris Wilson ---

Re: [Mesa-dev] [PATCH] st/mesa: fix nir.h, nir_builder.h #includes to fix build

2018-03-20 Thread Emil Velikov
On 20 March 2018 at 15:51, Brian Paul wrote: > Use compiler/nir/nir.h as we do in other places in the state tracker. > I'm not sure why this just started to fail. The #includes have been > there for a while. I've sent identical patch (+fixes/cc tags) a some hours ago [1].

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

2018-03-20 Thread Bas Vermeulen
Using mesa OpenCL failed on a big endian PowerPC machine because si_vgt_param_key is using bitfields and a 32 bit int for an index into an array. Fix si_vgt_param_key to work correctly on both little endian and big endian machines. Signed-off-by: Bas Vermeulen ---

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

2018-03-20 Thread Bas Vermeulen
I'm able to call clinfo without things crashing. Without this fix, clinfo results in a signal 11 because key.index is byte swapped. With it, I get the information I would expect. I'm working to test the OpenCL currently. I'll update the patch to use PIPE_ARCH_LITTLE_ENDIAN instead of my own #if.

Re: [Mesa-dev] [PATCH v6 1/2] gallium/winsys/kms: Fix possible leak in map/unmap.

2018-03-20 Thread Emil Velikov
On 20 March 2018 at 14:24, Tomasz Figa wrote: > On Tue, Mar 20, 2018 at 10:44 PM, Emil Velikov > wrote: >> On 20 March 2018 at 04:40, Tomasz Figa wrote: >>> On Tue, Mar 20, 2018 at 2:55 AM, Emil Velikov

[Mesa-dev] [PATCH] st/mesa: fix nir.h, nir_builder.h #includes to fix build

2018-03-20 Thread Brian Paul
Use compiler/nir/nir.h as we do in other places in the state tracker. I'm not sure why this just started to fail. The #includes have been there for a while. --- src/mesa/state_tracker/st_nir_lower_uniforms_to_ubo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [Mesa-dev] [PATCH] i965: fix autotools/android build

2018-03-20 Thread Tapani Pälli
Reviewed-by: Tapani Pälli On 20.03.2018 16:59, Lionel Landwerlin wrote: Autotools/android builds generate the header & code files in 2 steps, but the code generation requires the name of the header file to include it. This change generates both files in one command.

Re: [Mesa-dev] [PATCH 3/9] mesa: Update vao internal state when setting the _DrawVAO.

2018-03-20 Thread Brian Paul
On 03/15/2018 11:48 PM, mathias.froehl...@gmx.net wrote: From: Mathias Fröhlich We do care if the vao set as Array._DrawVAO is ready to draw not so much that the current Array.VAO in terms of the OpenGL api is fully up to date for drawing. Can you rephrase that?

Re: [Mesa-dev] [PATCH 9/9] vbo: Remove now duplicate _DrawVAO notification.

2018-03-20 Thread Brian Paul
On 03/15/2018 11:48 PM, mathias.froehl...@gmx.net wrote: From: Mathias Fröhlich The DriverFlags.NewArray bit is set into NewDriverState already on "The DriverFlags.NewArray bit is already set to NewDriverState in" _mesa_set_draw_vao since we have actually just

Re: [Mesa-dev] [PATCH 2/9] vbo: Move vbo_bind_arrays into a dd_driver_functions draw callback.

2018-03-20 Thread Brian Paul
On 03/15/2018 11:48 PM, mathias.froehl...@gmx.net wrote: From: Mathias Fröhlich Factor out that common call into the almost single place. Remove the _mesa_set_drawing_arrays call from vbo_{exec,save}_draw code paths as the fonction is now called through

  1   2   >