[Mesa-dev] [Bug 109540] gen_builder_meta.hpp:51:117: error: no matching function for call to ‘cast(llvm::FunctionCallee)’

2019-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109540 Vinson Lee changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 109810] nir_opt_copy_prop_vars.c:454: error: unknown field ‘ssa’ specified in initializer

2019-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109810 Vinson Lee changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [Mesa-dev] [PATCH] st/mesa: fix texture deletion context mix-up issues (v2)

2019-03-22 Thread Roland Scheidegger
Looks alright to me, it's all quite tricky stuff... Reviewed-by: Roland Scheidegger Am 22.03.19 um 20:51 schrieb Brian Paul: > When we destroy a context, we need to temporarily make that context > the current one for the thread. > > That's because during context tear-down we make many calls to

[Mesa-dev] [PATCH] st/mesa: fix texture deletion context mix-up issues (v2)

2019-03-22 Thread Brian Paul
When we destroy a context, we need to temporarily make that context the current one for the thread. That's because during context tear-down we make many calls to _mesa_reference_texobj(, NULL). Note there's no context parameter. If the texture's refcount goes to zero and we need to delete it,

[Mesa-dev] [Bug 100316] Linking GLSL 1.30 shaders with invariant and deprecated variables triggers an 'mismatching invariant qualifiers' error

2019-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100316 Jordan Justen changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 110221] build error with meson

2019-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110221 Dylan Baker changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Mesa-dev] [Bug 110211] If DESTDIR is set to an empty string, the dri drivers are not installed

2019-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110211 Dylan Baker changed: What|Removed |Added Resolution|--- |FIXED Status|REOPENED

Re: [Mesa-dev] [PATCH v4 00/40] intel: VK_KHR_shader_float16_int8 implementation

2019-03-22 Thread Iago Toral
On Fri, 2019-03-22 at 13:23 -0500, Jason Ekstrand wrote: > On Fri, Mar 22, 2019 at 1:13 PM Iago Toral wrote: > > On Fri, 2019-03-22 at 12:47 -0500, Jason Ekstrand wrote: > > > On Fri, Mar 22, 2019 at 11:53 AM Iago Toral > > > wrote: > > > > Yes, I think those should be fine to land now, they are

Re: [Mesa-dev] [PATCH v4 00/40] intel: VK_KHR_shader_float16_int8 implementation

2019-03-22 Thread Jason Ekstrand
On Fri, Mar 22, 2019 at 1:13 PM Iago Toral wrote: > On Fri, 2019-03-22 at 12:47 -0500, Jason Ekstrand wrote: > > On Fri, Mar 22, 2019 at 11:53 AM Iago Toral wrote: > > Yes, I think those should be fine to land now, they are very few > actually. Jason, any objections? > > > None at all. Also,

Re: [Mesa-dev] [PATCH v4 00/40] intel: VK_KHR_shader_float16_int8 implementation

2019-03-22 Thread Iago Toral
On Fri, 2019-03-22 at 12:47 -0500, Jason Ekstrand wrote: > On Fri, Mar 22, 2019 at 11:53 AM Iago Toral > wrote: > > Yes, I think those should be fine to land now, they are very few > > > > actually. Jason, any objections? > > None at all. Also, where are we at with the last few patches? Juan

Re: [Mesa-dev] [PATCH v4 00/40] intel: VK_KHR_shader_float16_int8 implementation

2019-03-22 Thread Jason Ekstrand
On Fri, Mar 22, 2019 at 11:53 AM Iago Toral wrote: > Yes, I think those should be fine to land now, they are very few > actually. Jason, any objections? > None at all. Also, where are we at with the last few patches? --Jason > Iago > > On Fri, 2019-03-22 at 17:26 +0100, Samuel Pitoiset

[Mesa-dev] [Bug 110221] build error with meson

2019-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110221 Dylan Baker changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #2 from Dylan Baker

Re: [Mesa-dev] [PATCH] nir: Fix anonymous union initialization with older GCC.

2019-03-22 Thread Caio Marcelo de Oliveira Filho
On Fri, Mar 22, 2019 at 03:04:28AM +, Vinson Lee wrote: > Fix this build error with GCC 4.4.7. > > CC nir/nir_opt_copy_prop_vars.lo > nir/nir_opt_copy_prop_vars.c: In function ‘load_element_from_ssa_entry_value’: > nir/nir_opt_copy_prop_vars.c:454: error: unknown field ‘ssa’ specified

Re: [Mesa-dev] [PATCH v4 00/40] intel: VK_KHR_shader_float16_int8 implementation

2019-03-22 Thread Iago Toral
Yes, I think those should be fine to land now, they are very few actually. Jason, any objections? Iago On Fri, 2019-03-22 at 17:26 +0100, Samuel Pitoiset wrote: > Can you eventually merge all NIR patches now? We should be able to > hook > up that extension for RADV quite soon. > > On 2/12/19

Re: [Mesa-dev] [PATCH v4 00/40] intel: VK_KHR_shader_float16_int8 implementation

2019-03-22 Thread Samuel Pitoiset
Can you eventually merge all NIR patches now? We should be able to hook up that extension for RADV quite soon. On 2/12/19 12:55 PM, Iago Toral Quiroga wrote: The changes in this version address review feedback to v3. The most significant changes include: 1. A more generic constant combining

Re: [Mesa-dev] [PATCH 2/2] radv: write availability status vkGetQueryPoolResults() when the data is not available

2019-03-22 Thread Samuel Pitoiset
Does this fix anything known? Does that rule also apply for CmdCopyQueryPoolResults()? If so, we might need to fix it (I haven't looked yet). With the comment on patch 1, series is: Reviewed-by: Samuel Pitoiset On 3/22/19 1:03 PM, Samuel Iglesias Gonsálvez wrote: If

Re: [Mesa-dev] [PATCH 1/2] radv: don't overwrite results in VkGetQueryPoolResults() when queries are not available

2019-03-22 Thread Samuel Pitoiset
On 3/22/19 5:18 PM, Samuel Pitoiset wrote: On 3/22/19 1:03 PM, Samuel Iglesias Gonsálvez wrote: If the query is not available and VK_QUERY_RESULT_WAIT_BIT and VK_QUERY_RESULT_PARTIAL_BIT are both not set, the spec doesn't allow to modify its result.  From Vulkan spec: "If

Re: [Mesa-dev] [PATCH 1/2] radv: don't overwrite results in VkGetQueryPoolResults() when queries are not available

2019-03-22 Thread Samuel Pitoiset
On 3/22/19 1:03 PM, Samuel Iglesias Gonsálvez wrote: If the query is not available and VK_QUERY_RESULT_WAIT_BIT and VK_QUERY_RESULT_PARTIAL_BIT are both not set, the spec doesn't allow to modify its result. From Vulkan spec: "If VK_QUERY_RESULT_WAIT_BIT and VK_QUERY_RESULT_PARTIAL_BIT are

Re: [Mesa-dev] [PATCH v2 2/2] spirv, nir: lower frexp_exp/frexp_sig inside a new NIR pass

2019-03-22 Thread Jason Ekstrand
On Fri, Mar 22, 2019 at 11:10 AM Samuel Pitoiset wrote: > This lowering isn't needed for RADV because AMDGCN has two > instructions. It will be disabled for RADV in an upcoming series. > > While we are at it, factorize a little bit. > > v2: - use integer for zero instead of 32-bit float > -

[Mesa-dev] [PATCH v2 2/2] spirv, nir: lower frexp_exp/frexp_sig inside a new NIR pass

2019-03-22 Thread Samuel Pitoiset
This lowering isn't needed for RADV because AMDGCN has two instructions. It will be disabled for RADV in an upcoming series. While we are at it, factorize a little bit. v2: - use integer for zero instead of 32-bit float - inline lower_frexp and tidy up the switch - handle metadata in

Re: [Mesa-dev] [PATCH v2 6/8] gallium: add lima driver

2019-03-22 Thread Alyssa Rosenzweig
> + f->temp_write.dest = 0x03; // 11 - temporary Maybe make a #define, enum [poofs, again] ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 2/2] spirv, nir: lower frexp_exp/frexp_sig inside a new NIR pass

2019-03-22 Thread Jason Ekstrand
On Fri, Mar 22, 2019 at 8:41 AM Samuel Pitoiset wrote: > This lowering isn't needed for RADV because AMDGCN has two > instructions. It will be disabled for RADV in an upcoming series. > > While we are at it, factorize a little bit. > > Signed-off-by: Samuel Pitoiset > --- >

Re: [Mesa-dev] [PATCH v2 6/8] gallium: add lima driver

2019-03-22 Thread Alyssa Rosenzweig
> + > +static bool gpir_lower_viewport_transform(gpir_compiler *comp) > +{ > + gpir_node *rcpw = NULL; > + > + /* rcpw = 1 / w */ > + list_for_each_entry(gpir_block, block, >block_list, list) { > + list_for_each_entry(gpir_node, node, >node_list, list) { > + if (node->op ==

Re: [Mesa-dev] [PATCH] anv: fix alphaToCoverage when there is no color attachment

2019-03-22 Thread Jason Ekstrand
I'm confused. Don't we always have a NULL render target at location 0? Is the problem really that we need the NULL render target or is it that we can't throw away the alpha component of the RT write in the shader? If it's that we can't throw away the alpha component of the RT write, then I'd

[Mesa-dev] [PATCH v2 8/8] kmsro: Add platform support for exynos and sun4i

2019-03-22 Thread Qiang Yu
From: Rob Herring Signed-off-by: Rob Herring Signed-off-by: Qiang Yu --- src/gallium/targets/dri/meson.build | 2 ++ src/gallium/targets/dri/target.c| 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/gallium/targets/dri/meson.build b/src/gallium/targets/dri/meson.build index

[Mesa-dev] [PATCH v2 7/8] kmsro: Add lima renderonly support

2019-03-22 Thread Qiang Yu
From: Rob Herring Enable using lima for KMS renderonly. This still needs KMS driver name mapping to kmsro to be used automatically. Signed-off-by: Rob Herring Signed-off-by: Qiang Yu --- meson.build | 4 ++--

[Mesa-dev] [PATCH v2 5/8] drm-uapi: add lima_drm.h

2019-03-22 Thread Qiang Yu
Signed-of-by: Qiang Yu --- include/drm-uapi/lima_drm.h | 169 1 file changed, 169 insertions(+) create mode 100644 include/drm-uapi/lima_drm.h diff --git a/include/drm-uapi/lima_drm.h b/include/drm-uapi/lima_drm.h new file mode 100644 index

[Mesa-dev] [PATCH v2 4/8] gallium/u_vbuf: export u_vbuf_get_minmax_index

2019-03-22 Thread Qiang Yu
This helper function can be used by driver which always need min/max index. Signed-off-by: Qiang Yu --- src/gallium/auxiliary/util/u_vbuf.c | 7 +++ src/gallium/auxiliary/util/u_vbuf.h | 3 +++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git

[Mesa-dev] [PATCH v2 1/8] u_math: add ushort_to_float/float_to_ushort

2019-03-22 Thread Qiang Yu
v2: - return 0 for NaN too Cc: Roland Scheidegger Signed-off-by: Qiang Yu --- src/util/u_math.h | 31 +++ 1 file changed, 31 insertions(+) diff --git a/src/util/u_math.h b/src/util/u_math.h index e7dbbe5ca22..5e712dadb4a 100644 --- a/src/util/u_math.h +++

[Mesa-dev] [PATCH v2 3/8] u_dynarray: add util_dynarray_grow_cap

2019-03-22 Thread Qiang Yu
This is for the case that user only know a max size it wants to append to the array and enlarge the array capacity before writing into it. v2: - rename newsize to newcap - rename util_dynarray_enlarge to util_dynarray_grow_cap Cc: Caio Marcelo de Oliveira Filho Signed-off-by: Qiang Yu ---

[Mesa-dev] [PATCH v2 2/8] nir: add load uniform lower to scalar

2019-03-22 Thread Qiang Yu
This is needed for lima gp compiler. Signed-off-by: Qiang Yu --- src/compiler/nir/nir_intrinsics.py| 4 +-- src/compiler/nir/nir_lower_io.c | 2 +- src/compiler/nir/nir_lower_io_to_scalar.c | 41 +-- 3 files changed, 42 insertions(+), 5 deletions(-) diff

[Mesa-dev] [PATCH v2 0/8] Lima mesa driver

2019-03-22 Thread Qiang Yu
Mesa Gallium3D driver for ARM Mali 400/450 GPUs. Lima is still in development and not ready for daily usage, but can run some simple tests like kmscube and glamrk2, and some single full screen application like kodi-gbm. Mesa related EGL/GLX_EXT_buffer_age and EGL_KHR_partial_update changes are

[Mesa-dev] [PATCH 3/4] radv: do not lower frexp_exp and frexp_sig

2019-03-22 Thread Samuel Pitoiset
Hardware has two instructions. Signed-off-by: Samuel Pitoiset --- src/amd/vulkan/radv_shader.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index 19a807df199..eecbc6ae759 100644 --- a/src/amd/vulkan/radv_shader.c +++

[Mesa-dev] [PATCH 4/4] radv: enable VK_AMD_gpu_shader_int16

2019-03-22 Thread Samuel Pitoiset
This extension allows 16-bit support to Frexp/FrexpStruct. Signed-off-by: Samuel Pitoiset --- src/amd/vulkan/radv_extensions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/vulkan/radv_extensions.py b/src/amd/vulkan/radv_extensions.py index 23106765c2a..e97f320e8a1 100644 ---

[Mesa-dev] [PATCH 1/4] ac: add ac_build_frexp_mant() helper and 16-bit/32-bit support

2019-03-22 Thread Samuel Pitoiset
Signed-off-by: Samuel Pitoiset --- src/amd/common/ac_llvm_build.c | 25 + src/amd/common/ac_llvm_build.h | 4 src/amd/common/ac_nir_to_llvm.c | 4 ++-- 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/src/amd/common/ac_llvm_build.c

[Mesa-dev] [PATCH 2/4] ac: add ac_build_frex_exp() helper ans 16-bit/32-bit support

2019-03-22 Thread Samuel Pitoiset
Signed-off-by: Samuel Pitoiset --- src/amd/common/ac_llvm_build.c | 24 src/amd/common/ac_llvm_build.h | 4 src/amd/common/ac_nir_to_llvm.c | 8 +--- 3 files changed, 33 insertions(+), 3 deletions(-) diff --git a/src/amd/common/ac_llvm_build.c

Re: [Mesa-dev] [PATCH 1/2] nir: use generic float types for frexp_exp and frexp_sig

2019-03-22 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand The second will require non-trivial review. On Fri, Mar 22, 2019 at 8:41 AM Samuel Pitoiset wrote: > Only the exponent needs to be 32-bit signed integer. > > Signed-off-by: Samuel Pitoiset > --- > src/compiler/nir/nir_opcodes.py | 4 ++-- > 1 file changed, 2

[Mesa-dev] [PATCH 1/2] nir: use generic float types for frexp_exp and frexp_sig

2019-03-22 Thread Samuel Pitoiset
Only the exponent needs to be 32-bit signed integer. Signed-off-by: Samuel Pitoiset --- src/compiler/nir/nir_opcodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/nir/nir_opcodes.py b/src/compiler/nir/nir_opcodes.py index 9bbfe66ccdc..90f7aed0c0d 100644

[Mesa-dev] [PATCH 2/2] spirv, nir: lower frexp_exp/frexp_sig inside a new NIR pass

2019-03-22 Thread Samuel Pitoiset
This lowering isn't needed for RADV because AMDGCN has two instructions. It will be disabled for RADV in an upcoming series. While we are at it, factorize a little bit. Signed-off-by: Samuel Pitoiset --- src/amd/vulkan/radv_shader.c | 1 + src/compiler/Makefile.sources

[Mesa-dev] [PATCH 2/2] radv: write availability status vkGetQueryPoolResults() when the data is not available

2019-03-22 Thread Samuel Iglesias Gonsálvez
If VK_QUERY_RESULT_WITH_AVAILABILY_BIT is set and VK_QUERY_RESULT_WAIT_BIT and VK_QUERY_RESULT_PARTIAL_BIT are both not set, we need return to VK_NOT_READY only and set the availability status field for each query. From Vulkan spec: "If VK_QUERY_RESULT_WAIT_BIT and VK_QUERY_RESULT_PARTIAL_BIT

[Mesa-dev] [PATCH 1/2] radv: don't overwrite results in VkGetQueryPoolResults() when queries are not available

2019-03-22 Thread Samuel Iglesias Gonsálvez
If the query is not available and VK_QUERY_RESULT_WAIT_BIT and VK_QUERY_RESULT_PARTIAL_BIT are both not set, the spec doesn't allow to modify its result. From Vulkan spec: "If VK_QUERY_RESULT_WAIT_BIT and VK_QUERY_RESULT_PARTIAL_BIT are both not set then no result values are written to pData for

Re: [Mesa-dev] drm-shim for faking GEM drivers using simulators or noop.

2019-03-22 Thread Lionel Landwerlin
On 21/03/2019 19:04, Eric Anholt wrote: I've just put up a new repo that I'm hoping to use to enable automatic shader-db results for various drivers on Gitlab CI merge requests (and maybe with some more work, delete the simulator backends of vc4 and v3d).

[Mesa-dev] [Bug 110211] If DESTDIR is set to an empty string, the dri drivers are not installed

2019-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110211 --- Comment #13 from Benoit Pierre --- Commenting on an issue does not add you to the CC list? How stupid is that... -- You are receiving this mail because: You are the QA Contact for the bug.___

[Mesa-dev] [Bug 110221] build error with meson

2019-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110221 Fabio Pedretti changed: What|Removed |Added CC||baker.dyla...@gmail.com --- Comment

[Mesa-dev] [PATCH v5 35/38] intel/compiler: validate region restrictions for mixed float mode

2019-03-22 Thread Juan A. Suarez Romero
From: Iago Toral Quiroga v2: - Adapted unit tests to make them consistent with the changes done to the validation of half-float conversions. --- src/intel/compiler/brw_eu_validate.c| 256 ++ src/intel/compiler/test_eu_validate.cpp | 620 2 files changed,

[Mesa-dev] [Bug 110221] build error with meson

2019-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110221 Bug ID: 110221 Summary: build error with meson Product: Mesa Version: git Hardware: All OS: Linux (All) Status: NEW Severity: normal Priority:

[Mesa-dev] [PATCH v5 33/38] intel/compiler: validate region restrictions for half-float conversions

2019-03-22 Thread Juan A. Suarez Romero
From: Iago Toral Quiroga v2: - Consider implicit conversions in 2-src instructions too (Curro) - For restrictions that involve destination stride requirements only validate them for Align1, since Align16 always requires packed data. - Skip general rule for the dst/execution type size

Re: [Mesa-dev] [PATCH v6 32/38] intel/compiler: also set F execution type for mixed float mode in BDW

2019-03-22 Thread Juan A. Suarez Romero
CCing Iago and Curro. On Fri, 2019-03-22 at 10:08 +0100, Juan A. Suarez Romero wrote: > From: Iago Toral Quiroga > > The section 'Execution Data Types' of 3D Media GPGPU volume, which > describes execution types, is exactly the same in BDW and SKL+. > > Also, this section states that there is

Re: [Mesa-dev] [PATCH v6 31/38] intel/compiler: implement SIMD16 restrictions for mixed-float instructions

2019-03-22 Thread Juan A. Suarez Romero
CCing Iago and Curro. On Fri, 2019-03-22 at 10:07 +0100, Juan A. Suarez Romero wrote: > From: Iago Toral Quiroga > > --- > src/intel/compiler/brw_fs.cpp | 65 +++ > 1 file changed, 65 insertions(+) > > diff --git a/src/intel/compiler/brw_fs.cpp

[Mesa-dev] [PATCH v6 32/38] intel/compiler: also set F execution type for mixed float mode in BDW

2019-03-22 Thread Juan A. Suarez Romero
From: Iago Toral Quiroga The section 'Execution Data Types' of 3D Media GPGPU volume, which describes execution types, is exactly the same in BDW and SKL+. Also, this section states that there is a single execution type, so it makes sense that this is the wider of the two floating point types

[Mesa-dev] [PATCH v6 31/38] intel/compiler: implement SIMD16 restrictions for mixed-float instructions

2019-03-22 Thread Juan A. Suarez Romero
From: Iago Toral Quiroga --- src/intel/compiler/brw_fs.cpp | 65 +++ 1 file changed, 65 insertions(+) diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index 2fc7793709b..3616a7afc31 100644 --- a/src/intel/compiler/brw_fs.cpp +++

Re: [Mesa-dev] [PATCH] nir: Fix anonymous union initialization with older GCC.

2019-03-22 Thread Andres Gomez
This is: Reviewed-by: Andres Gomez On Fri, 2019-03-22 at 03:04 +, Vinson Lee wrote: > Fix this build error with GCC 4.4.7. > > CC nir/nir_opt_copy_prop_vars.lo > nir/nir_opt_copy_prop_vars.c: In function ‘load_element_from_ssa_entry_value’: > nir/nir_opt_copy_prop_vars.c:454: error: