[Mesa-dev] [PATCH 2/2] mesa: actually support GLSL version overrides in compat profile

2018-05-01 Thread Timothy Arceri
--- src/mesa/main/version.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c index 84babd69e2f..540f5482034 100644 --- a/src/mesa/main/version.c +++ b/src/mesa/main/version.c @@ -591,6 +591,8 @@ _mesa_get_version(const struct gl_extensions *ex

[Mesa-dev] [PATCH 1/2] mesa: actually support compat profile creation with MESA_GL_VERSION_OVERRIDE

2018-05-01 Thread Timothy Arceri
--- src/mesa/drivers/dri/common/dri_util.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index 7cb6248b130..b6bc5361308 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/d

Re: [Mesa-dev] [PATCH 0/5] intel: decoder fixes

2018-05-01 Thread Kenneth Graunke
On Tuesday, May 1, 2018 4:43:01 PM PDT Lionel Landwerlin wrote: > Hi all, > > While investigating an error state I noticed some strange values. Here > are a few changes and fixes. You can give it a try on the error states > from https://bugs.freedesktop.org/show_bug.cgi?id=106243 > > Cheers, > >

Re: [Mesa-dev] [PATCH 4/5] intel: decoder: fix starting dword of struct fields

2018-05-01 Thread Kenneth Graunke
On Tuesday, May 1, 2018 4:43:05 PM PDT Lionel Landwerlin wrote: > Struct fields might span several dwords, but iter_dword is incremented > up to the last dword of the current field before we print out the > struct's fields. We can't use iter_dword for computing the offset into > the pointer of data

Re: [Mesa-dev] [PATCH v2 10/18] intel/compiler: fix 16-bit comparisons

2018-05-01 Thread Iago Toral
On Mon, 2018-04-30 at 14:43 -0700, Jason Ekstrand wrote: > On Mon, Apr 30, 2018 at 7:18 AM, Iago Toral Quiroga m> wrote: > > NIR assumes that booleans are always 32-bit, but Intel hardware > > produces > > > > 16-bit booleans for 16-bit comparisons. This means that we need to > > convert > > > >

Re: [Mesa-dev] [PATCH] egl: check if colorspace/surface type is supported

2018-05-01 Thread Tapani Pälli
We will need to handle this on other backends as well, dri2 and wayland at least would stumble to same issue, maybe fix them all in one go? Looks like android, surfaceless and drm backends check the returned config already. On 04/30/2018 02:51 PM, Juan A. Suarez Romero wrote: According to EGL

[Mesa-dev] [PATCH 3/3] i965: Reuse batch decoder infrastructure rather than open coding it.

2018-05-01 Thread Kenneth Graunke
With the new callback, Jason's newer batch decoder infrastructure should be able to do just as well as the old open coded INTEL_DEBUG=bat handling, with much less code. If there are any limitations, we'd like to improve the common code rather than doing one-off hacks here. --- src/mesa/drivers/dr

[Mesa-dev] [PATCH 1/3] intel: Move batch decoder/disassembler from tools/ to common/

2018-05-01 Thread Kenneth Graunke
Making these part of libintel_common allows us to use them in the DRI driver. The standalone tool binaries already link against the common library, too, so it's no harder for them. --- src/intel/Makefile.sources| 3 +++ src/intel/Makefile.tools.am | 8

[Mesa-dev] [PATCH 2/3] intel: Give the batch decoder a callback to ask about state size.

2018-05-01 Thread Kenneth Graunke
Given an arbitrary batch, we don't always know what the size of certain things are, such as how many entries are in a binding table. But it's easy for the driver to track that information, so with a simple callback we can calculate this correctly for INTEL_DEBUG=bat. --- src/intel/common/gen_batc

Re: [Mesa-dev] [PATCH v2 08/14] mesa: handle OES_texture_half_float formats in _mesa_base_tex_format()

2018-05-01 Thread Tapani Pälli
Hi; On 05/01/2018 05:48 PM, Christian Gmeiner wrote: Signed-off-by: Christian Gmeiner Reviewed-by: Wladimir J. van der Laan --- src/mesa/main/glformats.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index cba5

[Mesa-dev] [Bug 29613] OSMesa and GL cannot be linked together

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29613 Matt Turner changed: What|Removed |Added CC|matts...@gmail.com | -- You are receiving this mail because:

[Mesa-dev] [Bug 106337] eglWaitClient() doesn't work as documented using DRI2 backend

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106337 --- Comment #1 from Tapani Pälli --- (In reply to mgorc...@qnx.com from comment #0) > According to EGL 1.4 specification eglWaitClient() should be equivalent of > glFinish() call, but according to the function code of dri2_wait_client() it > doe

[Mesa-dev] [PATCH 7/9] radeonsi: add EQAA SC, DB, CB register programming

2018-05-01 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeonsi/si_pipe.h | 5 +- src/gallium/drivers/radeonsi/si_state.c | 74 +++-- 2 files changed, 71 insertions(+), 8 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_pipe.h b/src/gallium/drivers/radeonsi/si_pipe.h index 24

[Mesa-dev] [PATCH 4/9] radeonsi: use better sample locations for 8x EQAA

2018-05-01 Thread Marek Olšák
From: Marek Olšák Verified with the piglit MSAA accuracy test. --- src/gallium/drivers/radeonsi/si_state_msaa.c | 32 +++- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state_msaa.c b/src/gallium/drivers/radeonsi/si_state_msaa.c

[Mesa-dev] [PATCH 8/9] radeonsi: set up EQAA image descriptors properly

2018-05-01 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeonsi/si_state.c | 96 - 1 file changed, 80 insertions(+), 16 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index fce796f7543..e133bf28589 100644 --- a/src/gallium

[Mesa-dev] [PATCH 9/9] radeonsi: add an environment variable that forces EQAA for MSAA allocations

2018-05-01 Thread Marek Olšák
From: Marek Olšák This is for testing and experiments. --- src/gallium/drivers/radeonsi/si_pipe.c| 22 src/gallium/drivers/radeonsi/si_pipe.h| 3 +++ src/gallium/drivers/radeonsi/si_state.c | 5 src/gallium/drivers/radeonsi/si_texture.c | 31 +++-

[Mesa-dev] [PATCH 2/9] radeonsi: use better sample locations for 4x MSAA

2018-05-01 Thread Marek Olšák
From: Marek Olšák Discovered by luck. Verified with the piglit MSAA accuracy test. It also shows that the worst case EQAA 16s4f results in very good 4x MSAA in the worst case. Nine might not like these positions, but they are prettier to the eye and GL doesn't care. --- src/gallium/drivers/rade

[Mesa-dev] [PATCH 3/9] radeonsi: improve quality of 16 sample locations

2018-05-01 Thread Marek Olšák
From: Marek Olšák This results in better 16x and 8x quality when using these locations. Verified with the piglit MSAA accuracy test. --- src/gallium/drivers/radeonsi/si_state_msaa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state_msaa

[Mesa-dev] [PATCH 0/9] RadeonSI: Implement EQAA

2018-05-01 Thread Marek Olšák
Hi, This series implements EQAA (enhanced quality anti-aliasing), though some might argue that the proper name should be "flexible multi-sample anti-aliasing" or flexible MSAA. It's controlled via an environment variable. This gives our users the ability to switch an application which is using M

[Mesa-dev] [PATCH 1/9] radeonsi: reorder sample locations as required by EQAA

2018-05-01 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeonsi/si_state.c | 3 - src/gallium/drivers/radeonsi/si_state_msaa.c | 154 --- 2 files changed, 98 insertions(+), 59 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c

[Mesa-dev] [PATCH 5/9] ac/surface: add EQAA support

2018-05-01 Thread Marek Olšák
From: Marek Olšák --- src/amd/common/ac_surface.c | 29 +-- src/amd/common/ac_surface.h | 3 +- src/amd/vulkan/radv_image.c | 1 + src/gallium/drivers/radeon/radeon_winsys.h| 1 + src/gallium/drivers/radeonsi/si_texture

[Mesa-dev] [PATCH 6/9] radeonsi: support creating EQAA color textures

2018-05-01 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeonsi/si_clear.c | 4 +- src/gallium/drivers/radeonsi/si_pipe.h| 1 + src/gallium/drivers/radeonsi/si_texture.c | 45 +++ 3 files changed, 33 insertions(+), 17 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_clea

[Mesa-dev] [Bug 89322] ../../libtool: line 7916: func_munge_path_list: command not found

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89322 Timothy Arceri changed: What|Removed |Added Resolution|--- |WORKSFORME Status|NEW

[Mesa-dev] [PATCH 14/16] radeonsi: set DB_EQAA the same as Vulkan

2018-05-01 Thread Marek Olšák
From: Marek Olšák These never change, but they only affect EQAA, which isn't implemented. --- src/gallium/drivers/radeonsi/si_state.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_st

[Mesa-dev] [PATCH 08/16] ac/surface/gfx6: don't overallocate mipmapped HTILE

2018-05-01 Thread Marek Olšák
From: Marek Olšák --- src/amd/common/ac_surface.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c index b2af1f70b69..341a7854fe5 100644 --- a/src/amd/common/ac_surface.c +++ b/src/amd/common/ac_surface.c @@ -8

[Mesa-dev] [PATCH 15/16] radeonsi: simplify arrays of sample locations

2018-05-01 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeonsi/si_state_msaa.c | 105 +++ 1 file changed, 40 insertions(+), 65 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state_msaa.c b/src/gallium/drivers/radeonsi/si_state_msaa.c index 19bed09df4b..2ad093ad485 100644 --- a/s

[Mesa-dev] [PATCH 05/16] ac: sort raster configs

2018-05-01 Thread Marek Olšák
From: Marek Olšák --- src/amd/common/ac_gpu_info.c | 66 +++- 1 file changed, 27 insertions(+), 39 deletions(-) diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c index 3ba7b4b717a..fd49dbefd58 100644 --- a/src/amd/common/ac_gpu_info.c +++ b

[Mesa-dev] [PATCH 10/16] ac/surface: unify common legacy and gfx9 fmask fields

2018-05-01 Thread Marek Olšák
From: Marek Olšák --- src/amd/common/ac_surface.c | 20 +-- src/amd/common/ac_surface.h | 10 +++--- src/amd/vulkan/radv_image.c | 12 +-- src/gallium/drivers/radeonsi/si_texture.c | 16 +++ .../win

[Mesa-dev] [PATCH 11/16] radeonsi: remove r600_fmask_info

2018-05-01 Thread Marek Olšák
From: Marek Olšák radeon_surf contains almost everything. --- src/gallium/drivers/radeonsi/si_blit.c| 6 +- src/gallium/drivers/radeonsi/si_clear.c | 2 +- src/gallium/drivers/radeonsi/si_descriptors.c | 10 ++-- src/gallium/drivers/radeonsi/si_pipe.h| 17 +- src/gall

[Mesa-dev] [PATCH 12/16] radeonsi: don't update clear color registers if they don't change

2018-05-01 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeonsi/si_clear.c | 32 - 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_clear.c b/src/gallium/drivers/radeonsi/si_clear.c index 8ecd47fea9b..0f3546b02da 100644 --- a/src/gallium

[Mesa-dev] [PATCH 06/16] ac: set correct LLVM processor names for Raven & Vega12

2018-05-01 Thread Marek Olšák
From: Marek Olšák --- src/amd/common/ac_llvm_util.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/amd/common/ac_llvm_util.c b/src/amd/common/ac_llvm_util.c index a06c83a2963..be2d92b4c08 100644 --- a/src/amd/common/ac_llvm_util.c +++ b/src/amd/common/ac_llvm_util.

[Mesa-dev] [PATCH 13/16] radeonsi: remove CM_ prefixes

2018-05-01 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeonsi/si_state.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index f7878ed2367..b50182582c6 100644 --- a/src/gallium/drivers/radeonsi/si

[Mesa-dev] [PATCH 16/16] radeonsi: simplify si_get_sample_position

2018-05-01 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeonsi/si_state_msaa.c | 49 1 file changed, 20 insertions(+), 29 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state_msaa.c b/src/gallium/drivers/radeonsi/si_state_msaa.c index 2ad093ad485..7ee17a9f292 100644 --- a/s

[Mesa-dev] [PATCH 04/16] ac: remove 1 RB raster config for Iceland

2018-05-01 Thread Marek Olšák
From: Marek Olšák Iceland always reports 2 RBs. --- src/amd/common/ac_gpu_info.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c index 273ccb6cb1d..3ba7b4b717a 100644 --- a/src/amd/common/ac_gpu_info.c +++ b/src

[Mesa-dev] [PATCH 09/16] ac/surface/gfx6: compute FMASK together with the color surface

2018-05-01 Thread Marek Olšák
From: Marek Olšák instead of invoking FMASK computation separately. --- src/amd/common/ac_surface.c | 86 --- src/amd/common/ac_surface.h | 13 ++- src/amd/vulkan/radv_image.c | 54 ++-- src/gallium/drivers/radeonsi/si

[Mesa-dev] [PATCH 02/16] ac: enable both RBs on Kaveri

2018-05-01 Thread Marek Olšák
From: Marek Olšák This can result in 2x increase in performance on non-harvested Kaveris. --- src/amd/common/ac_gpu_info.c | 8 ++-- src/gallium/winsys/radeon/drm/radeon_drm_winsys.c | 4 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/amd/common

[Mesa-dev] [PATCH 01/16] radeonsi: work around a GPU hang due to broken indirect indexing in LLVM

2018-05-01 Thread Marek Olšák
From: Marek Olšák Fixes: 6d19120da85 "radeonsi/gfx9: workaround for INTERP with indirect indexing" Cc: 18.1 --- src/gallium/drivers/radeonsi/si_get.c | 9 + 1 file changed, 9 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index

[Mesa-dev] [PATCH 03/16] ac: move the Fiji kernel workaround for raster config out of the switch

2018-05-01 Thread Marek Olšák
From: Marek Olšák --- src/amd/common/ac_gpu_info.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c index da54e5f8b4a..273ccb6cb1d 100644 --- a/src/amd/common/ac_gpu_info.c +++ b/src/amd/common/a

[Mesa-dev] [PATCH 07/16] ac/surface/gfx9: fix a typo in CMASK RB/pipe alignment

2018-05-01 Thread Marek Olšák
From: Marek Olšák No change in behavior because it's always aligned. --- src/amd/common/ac_surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c index f14fa1c8b5e..b2af1f70b69 100644 --- a/src/amd/common/ac_surface

[Mesa-dev] [PATCH 00/16] RadeonSI: A bunch of random changes

2018-05-01 Thread Marek Olšák
Hi, These are pretty random. Please review. Thanks, Marek ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [Bug 71363] line rendering with --with-osmesa-bits=32

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=71363 Timothy Arceri changed: What|Removed |Added Component|Mesa core |Drivers/OSMesa -- You are receiving th

[Mesa-dev] [Bug 63472] OSMesa Gallium Segfault in VTK Test

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=63472 Timothy Arceri changed: What|Removed |Added Component|Mesa core |Drivers/OSMesa -- You are receiving th

[Mesa-dev] [Bug 18730] Memory corruption with OSMesaDestroyContext

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=18730 Timothy Arceri changed: What|Removed |Added Resolution|--- |WORKSFORME Status|NEW

[Mesa-dev] [Bug 11161] OSMesaMakeCurrent not properly changing contexts

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=11161 Timothy Arceri changed: What|Removed |Added Component|Mesa core |Drivers/OSMesa -- You are receiving th

[Mesa-dev] [Bug 97145] include/GL/*.h not installed when GLX is disabled (eg for OSMesa)

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=97145 Timothy Arceri changed: What|Removed |Added Component|Other |Drivers/OSMesa -- You are receiving th

[Mesa-dev] [Bug 95035] Gallium OSMesa driver is far from being thread-safe

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=95035 Timothy Arceri changed: What|Removed |Added Component|Other |Drivers/OSMesa -- You are receiving th

[Mesa-dev] [Bug 94491] osmesa gallium build with scons on windows is missing a lot of GL* symbols

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=94491 Timothy Arceri changed: What|Removed |Added Component|Other |Drivers/OSMesa -- You are receiving th

[Mesa-dev] [Bug 94489] osmesa gallium build with scons on linux contains no OSMesa* and GL* symbols

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=94489 Timothy Arceri changed: What|Removed |Added Component|Other |Drivers/OSMesa -- You are receiving th

[Mesa-dev] [Bug 29613] OSMesa and GL cannot be linked together

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29613 Timothy Arceri changed: What|Removed |Added Component|Other |Drivers/OSMesa -- You are receiving th

[Mesa-dev] [Bug 92467] Program for dumping images crashes at OSMesa library giving floating exception in Linux(OpenSuse 13.2 and Centos 6.6)

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=92467 Timothy Arceri changed: What|Removed |Added Component|Other |Drivers/DRI/swrast -- You are receivin

[Mesa-dev] [Bug 83785] Shader branches excluded by uniform values are not optimized out

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83785 Timothy Arceri changed: What|Removed |Added Component|Other |Drivers/Gallium/llvmpipe -- You are re

[Mesa-dev] [Bug 100227] gl_marshal.py: generating duplicate declaration specifiers

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100227 Timothy Arceri changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [PATCH v2 2/2] i965/extensions: Enable ASTC HDR on CannonLake

2018-05-01 Thread Nanley Chery
--- src/mesa/drivers/dri/i965/intel_extensions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c index 73a6c73f537..c451f6cf749 100644 --- a/src/mesa/drivers/dri/i965/intel_extensions.c

[Mesa-dev] [PATCH v2 1/2] i965/miptree: Set the aux_usage to NONE when emulating ETC

2018-05-01 Thread Nanley Chery
Found when prototyping an alternative compressed texture upload algorithm. I asserted that the aux_usage was NONE and was initially surprised to find that it was triggered. This change shouldn't affect driver behavior now, but it should prevent unexpected behavior if we make aux-related changes or

Re: [Mesa-dev] [PATCH] opencl: autotools: Fix linking order for OpenCL target

2018-05-01 Thread Dieter Nützel
Tested-by: Dieter Nützel Dieter Am 01.05.2018 14:14, schrieb Kai Wasserbäch: Otherwise the build fails with an undefined reference to clang::FrontendTimesIsEnabled. Bugzilla: https://bugs.freedesktop.org/106209 Cc: mesa-sta...@lists.freedesktop.org Cc: Jan Vesely Signed-off-by: Kai Wasserbäc

[Mesa-dev] [PATCH 2/5] intel: decoder: identify groups with fixed length

2018-05-01 Thread Lionel Landwerlin
& elements always have fixed length. The get_length() method implies that we're dealing with an instruction in which the length is encoded into the variable data but the field iterator uses it without checking what kind of gen_group it is dealing with. Let's make get_length() report the correct

[Mesa-dev] [PATCH 0/5] intel: decoder fixes

2018-05-01 Thread Lionel Landwerlin
Hi all, While investigating an error state I noticed some strange values. Here are a few changes and fixes. You can give it a try on the error states from https://bugs.freedesktop.org/show_bug.cgi?id=106243 Cheers, Lionel Landwerlin (5): intel: decoder: make the field iterator use more natural

[Mesa-dev] [PATCH 3/5] intel: decoder: document when fields should be used

2018-05-01 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_decoder.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/intel/common/gen_decoder.h b/src/intel/common/gen_decoder.h index 7d3bedca5b5..8324ff95696 100644 --- a/src/intel/common/gen_decoder.h +++ b/src/intel/c

[Mesa-dev] [PATCH 4/5] intel: decoder: fix starting dword of struct fields

2018-05-01 Thread Lionel Landwerlin
Struct fields might span several dwords, but iter_dword is incremented up to the last dword of the current field before we print out the struct's fields. We can't use iter_dword for computing the offset into the pointer of data to decode. Signed-off-by: Lionel Landwerlin --- src/intel/common/gen

[Mesa-dev] [PATCH 5/5] intel: batch-decoder: iterate VERTEX_BUFFER_STATE fields

2018-05-01 Thread Lionel Landwerlin
The gen_field_iterator only iterates the fields of a given gen_group. If we want to iterate the fields of another gen_group contained as field, we need to do it manually. Signed-off-by: Lionel Landwerlin --- src/intel/tools/gen_batch_decoder.c | 70 - 1 file changed,

[Mesa-dev] [PATCH 1/5] intel: decoder: make the field iterator use more natural

2018-05-01 Thread Lionel Landwerlin
while (iter_next()) { ... } instead of do { ... } while (iter_next()); Signed-off-by: Lionel Landwerlin --- src/intel/common/gen_decoder.c | 26 +++ src/intel/tools/gen_batch_decoder.c | 40 ++--- 2 files changed, 36 insertions(+), 30 deletions(-)

[Mesa-dev] [Bug 104626] broadcom/vc5: double compare

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104626 Timothy Arceri changed: What|Removed |Added Component|Other |Drivers/DRI/v3d QA Contact|mes

[Mesa-dev] [PATCH] radv: add disabled support for SDMA transfer on VI/Polaris

2018-05-01 Thread Dave Airlie
From: Dave Airlie This series adds the code to enable SDMA based trasnfer queues on VI/Polaris, but disabled by default for now. No CIK or GFX9 support yet. (CIK needs hw workarounds, GFX9 just needs support added for it's SDMA packet) It passes the CTS tests but hangs with the last version of

[Mesa-dev] [PATCH 1/4] i965/drm: Reorganize code for the next patch

2018-05-01 Thread James Xiong
From: "Xiong, James" split bo_alloc_internal, and add a new function cached_bo_for_size searches for a suitable cached buffer for a given size. Signed-off-by: Xiong, James --- src/mesa/drivers/dri/i965/brw_bufmgr.c | 92 +- 1 file changed, 45 insertions(+), 47 d

[Mesa-dev] [PATCH 3/4] i965/drm: Searching for a cached buffer for reuse

2018-05-01 Thread James Xiong
From: "Xiong, James" Now that a bucket contains cached buffers with different sizes, go through its list and search for a cached buffer with enough size. Signed-off-by: Xiong, James --- src/mesa/drivers/dri/i965/brw_bufmgr.c | 21 +++-- src/util/list.h|

[Mesa-dev] [PATCH 0/4] improve buffer cache and reuse

2018-05-01 Thread James Xiong
From: "Xiong, James" With the current implementation, brw_bufmgr may round up a request size to the next bucket size, result in 25% more memory allocated in the worst senario. For example: Request sizeActual size 32KB+1Byte 40KB . 8MB+1Byte 10MB . 96MB+1Byte 112MB This series

[Mesa-dev] [PATCH 2/4] i965/drm: Round down buffer size and calculate the bucket index

2018-05-01 Thread James Xiong
From: "Xiong, James" a buffer is now put in cached bucket #n when its size is between bucket[n].size and bucket[n+1].size - 1 Signed-off-by: Xiong, James --- src/mesa/drivers/dri/i965/brw_bufmgr.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/mesa/drivers/

[Mesa-dev] [PATCH 4/4] i965/drm: Purge the bucket when its cached buffer is evicted

2018-05-01 Thread James Xiong
From: "Xiong, James" When one of cached buffers is found to be evicted by kernel, most likely the buffers freed earlier than this buffer are gone too, go through the cached list in the bucket and purge. Signed-off-by: Xiong, James --- src/mesa/drivers/dri/i965/brw_bufmgr.c | 17 ++-

Re: [Mesa-dev] [PATCH] freedreno: Fix ir3_cmdline.c build.

2018-05-01 Thread Timothy Arceri
Thanks. Reviewed-by: Timothy Arceri On 02/05/18 06:45, Eric Anholt wrote: Fixes: 6487e7a30c9e ("nir: move GL specific passes to src/compiler/glsl") --- src/gallium/drivers/freedreno/ir3/ir3_cmdline.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/freedreno/ir3/ir3_c

Re: [Mesa-dev] [Mesa-stable] [PATCH] opencl: autotools: Fix linking order for OpenCL target

2018-05-01 Thread Dylan Baker
Quoting Aaron Watry (2018-05-01 10:59:43) > Given the discussion that's ongoing, this patch might not land as-is, > but if it does: > Tested-By: Aaron Watry > > Note: The meson build currently works as-is and doesn't require an > equivalent patch. Just FYI, meson uses as-needed and link-groups b

Re: [Mesa-dev] [RFC PATCH] gallium: add interface for EQAA

2018-05-01 Thread Marek Olšák
On Tue, May 1, 2018 at 5:53 PM, Roland Scheidegger wrote: > Am 01.05.2018 um 22:49 schrieb Marek Olšák: > > On Tue, May 1, 2018 at 10:48 AM, Roland Scheidegger > > wrote: > > > > Am 01.05.2018 um 01:43 schrieb Marek Olšák: > > > From: Marek Olšák mailto:marek.o

Re: [Mesa-dev] [PATCH 17/29] i965/blorp: Remove a pile of blorp_blit restrictions

2018-05-01 Thread Jason Ekstrand
On Tue, Mar 6, 2018 at 12:15 AM, Pohjolainen, Topi < topi.pohjolai...@gmail.com> wrote: > On Fri, Jan 26, 2018 at 05:59:46PM -0800, Jason Ekstrand wrote: > > Previously, blorp could only blit into something that was renderable. > > Thanks to recent additions to blorp, it can now blit into basicall

Re: [Mesa-dev] [PATCH] opencl: autotools: Fix linking order for OpenCL target

2018-05-01 Thread Jan Vesely
On Tue, 2018-05-01 at 18:23 +0200, Kai Wasserbäch wrote: > Hey Jan, > Jan Vesely wrote on 01.05.2018 17:19: > > On Tue, 2018-05-01 at 14:14 +0200, Kai Wasserbäch wrote: > > > Otherwise the build fails with an undefined reference to > > > clang::FrontendTimesIsEnabled. > > > > > > Bugzilla: https:/

Re: [Mesa-dev] [RFC PATCH] gallium: add interface for EQAA

2018-05-01 Thread Roland Scheidegger
Am 01.05.2018 um 22:49 schrieb Marek Olšák: > On Tue, May 1, 2018 at 10:48 AM, Roland Scheidegger > wrote: > > Am 01.05.2018 um 01:43 schrieb Marek Olšák: > > From: Marek Olšák mailto:marek.ol...@amd.com>> > > > > This is a hypothetical interface for EQ

Re: [Mesa-dev] [PATCH 26/29] intel/blorp: Add support for more format bitcasting

2018-05-01 Thread Jason Ekstrand
On Wed, Mar 7, 2018 at 5:08 AM, Pohjolainen, Topi < topi.pohjolai...@gmail.com> wrote: > On Fri, Jan 26, 2018 at 05:59:55PM -0800, Jason Ekstrand wrote: > > By making use of the NIR helper for uint vector casts, we should now be > > able to bitcast between any two uint formats so long as their cha

Re: [Mesa-dev] [PATCH 20/29] intel/isl/format: Add field locations informations to channel_layout

2018-05-01 Thread Jason Ekstrand
ping On Tue, Mar 6, 2018 at 9:53 AM, Jason Ekstrand wrote: > On Tue, Mar 6, 2018 at 9:46 AM, Pohjolainen, Topi < > topi.pohjolai...@gmail.com> wrote: > >> On Tue, Mar 06, 2018 at 09:11:18AM -0800, Jason Ekstrand wrote: >> > On Tue, Mar 6, 2018 at 1:54 AM, Pohjolainen, Topi < >> > topi.pohjolai..

Re: [Mesa-dev] [RFC PATCH] gallium: add interface for EQAA

2018-05-01 Thread Marek Olšák
We need a way to distinguish between AA and no AA even if color samples == 1. nr_samples is currently used for that purpose, so it makes sense to use nr_samples for coverage samples. color samples == 1 means that you can store 1 color sample per pixel and other samples are flagged as undefined and

Re: [Mesa-dev] [RFC PATCH] gallium: add interface for EQAA

2018-05-01 Thread Marek Olšák
The maximum config is: - 16 coverage samples - 8 Z/S samples - 8 color samples The minimum config is: - 1-16 coverage samples - 1 Z/S sample - 1 color sample The coverage buffer (each color buffer has one) remembers undefined samples if color samples < coverage samples, and the resolve shader can

Re: [Mesa-dev] [RFC PATCH] gallium: add interface for EQAA

2018-05-01 Thread Marek Olšák
On Tue, May 1, 2018 at 10:51 AM, Axel Davy wrote: > Hi, > > > On 01/05/2018 01:43, Marek Olšák wrote: > >> From: Marek Olšák >> >> This is a hypothetical interface for EQAA (a superset of CSAA). CSAA >> could be >> exposed via GL_NV_framebuffer_multisample_coverage. EQAA additionally >> removes

[Mesa-dev] [PATCH 3/5] v3d: Rename the driver files from "vc5" to "v3d".

2018-05-01 Thread Eric Anholt
--- configure.ac | 4 +- src/broadcom/Makefile.am | 2 +- .../{Makefile.vc5.am => Makefile.v3d.am} | 0 src/gallium/Makefile.am | 2 +- .../auxiliary/target-helpers/drm_helper.h | 2 +- .../drivers/{vc5 => v3

[Mesa-dev] [PATCH 1/5] v3d: Switch the vc5 driver to using the finalized V3D UABI.

2018-05-01 Thread Eric Anholt
In the process of merging to the kernel, I renamed the driver to the general product line's name (since we have both vc5 and vc6 supported already). Since the ABI is finalized, move the header to include/drm-uapi. --- Makefile.am | 1 + .../vc5_drm.h => include/

[Mesa-dev] [PATCH 2/5] v3d: Rename the vc5_dri.so driver to v3d_dri.so.

2018-05-01 Thread Eric Anholt
This allows the driver to load against the merged kernel DRM driver. In the process, rename most of the build system variables and gallium plumbing functions. --- configure.ac | 18 ++-- meson.build | 6 ++-- meson_option

[Mesa-dev] [PATCH 5/5] v3d: Enable the driver by default.

2018-05-01 Thread Eric Anholt
Now that we have a stabilized ABI and a fairly conformant driver, turn it on. --- configure.ac| 2 +- src/gallium/drivers/v3d/meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index d5228032bb7b..626b238511e0 1006

[Mesa-dev] [PATCH 0/5] vc5 rename to v3d and enable by default.

2018-05-01 Thread Eric Anholt
Unless there's some last-minute catch, I'll be landing the kernel driver this week, so I'd like to enable the Mesa side of the vc5 driver once that hits drm-next. I've renamed the kernel side to "v3d" since we've got both V3D 3.x ("vc5") and V3D 4.x ("vc6") supported already, and I'd like to avoid

[Mesa-dev] [PATCH 4/5] v3d: Rename driver functions from vc5 to v3d.

2018-05-01 Thread Eric Anholt
This is the final step of the driver rename. --- The 300k of contents of this patch are just s/vc5/v3d/ over the files. See my vc5-publish branch for full series. src/gallium/drivers/v3d/v3d_blit.c | 96 +++--- src/gallium/drivers/v3d/v3d_bufmgr.c| 158 +- src/gallium/d

Re: [Mesa-dev] [RFC PATCH] gallium: add interface for EQAA

2018-05-01 Thread Marek Olšák
On Tue, May 1, 2018 at 10:48 AM, Roland Scheidegger wrote: > Am 01.05.2018 um 01:43 schrieb Marek Olšák: > > From: Marek Olšák > > > > This is a hypothetical interface for EQAA (a superset of CSAA). CSAA > could be > > exposed via GL_NV_framebuffer_multisample_coverage. EQAA additionally > remov

Re: [Mesa-dev] [RFC PATCH] gallium: add interface for EQAA

2018-05-01 Thread Marek Olšák
On Tue, May 1, 2018 at 5:35 AM, Nicolai Hähnle wrote: > On 01.05.2018 01:43, Marek Olšák wrote: > >> From: Marek Olšák >> >> This is a hypothetical interface for EQAA (a superset of CSAA). CSAA >> could be >> exposed via GL_NV_framebuffer_multisample_coverage. EQAA additionally >> removes >> the

[Mesa-dev] [PATCH 1/2] radv: Don't check the incoming apiVersion on CreateInstance.

2018-05-01 Thread Bas Nieuwenhuizen
This fixes dEQP-VK.api.device_init.create_instance_invalid_api_version CC: 18.1 --- src/amd/vulkan/radv_device.c | 9 - 1 file changed, 9 deletions(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 629957afec2..26f2e3b1aea 100644 --- a/src/amd/vulkan/rad

[Mesa-dev] [PATCH 2/2] radv: UseEnumerateInstanceVersion for the default version.

2018-05-01 Thread Bas Nieuwenhuizen
--- src/amd/vulkan/radv_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 26f2e3b1aea..7e7d784ca43 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -460,7 +460,7 @@ VkResult

[Mesa-dev] [PATCH] freedreno: Fix ir3_cmdline.c build.

2018-05-01 Thread Eric Anholt
Fixes: 6487e7a30c9e ("nir: move GL specific passes to src/compiler/glsl") --- src/gallium/drivers/freedreno/ir3/ir3_cmdline.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c b/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c index 5631216ebd9e..5

[Mesa-dev] [Bug 106180] [bisected] radv vulkan smoke test black screen (Add support for DRI3 v1.2)

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106180 --- Comment #12 from mercuriete --- I've tested my patch and now I can play again dota2 and i can do vulkan smoketest. -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug.___

[Mesa-dev] [Bug 106180] [bisected] radv vulkan smoke test black screen (Add support for DRI3 v1.2)

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106180 mercuriete changed: What|Removed |Added CC||b...@basnieuwenhuizen.nl -- You are recei

[Mesa-dev] [Bug 106180] [bisected] radv vulkan smoke test black screen (Add support for DRI3 v1.2)

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106180 --- Comment #11 from mercuriete --- The previous patch fix this issue I've never contributed before to mesa, I want to send this patch to the mail list but i dont know how: if you want to commit that patch i would like to be: Abel Garcia Dort

[Mesa-dev] [Bug 106180] [bisected] radv vulkan smoke test black screen (Add support for DRI3 v1.2)

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106180 --- Comment #10 from mercuriete --- Created attachment 139255 --> https://bugs.freedesktop.org/attachment.cgi?id=139255&action=edit good patch -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee f

[Mesa-dev] [Bug 97516] GLX_OML_swap_method not fully supported

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=97516 Timothy Arceri changed: What|Removed |Added Component|Other |GLX -- You are receiving this mail bec

[Mesa-dev] [Bug 32678] egl_gallium driver doesn't support EGL_KHR_image_pixmap extension

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=32678 Timothy Arceri changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 65427] Gallium EGL on Wayland blocks in eglInitialize (no display thread bound)

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=65427 Timothy Arceri changed: What|Removed |Added Resolution|--- |INVALID Status|NEW

[Mesa-dev] [Bug 55021] Regression: eglInitialize crashes with 9.0

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=55021 Timothy Arceri changed: What|Removed |Added Resolution|--- |INVALID Status|NEW

[Mesa-dev] [Bug 34874] --enable-shared-glapi breaks apps

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=34874 Timothy Arceri changed: What|Removed |Added Status|NEEDINFO|RESOLVED Resolution|---

[Mesa-dev] [Bug 93561] ninja: error: '$(PRIVATE_SCRIPT)', needed by 'out/target/product/rpi2/gen/STATIC_LIBRARIES/libmesa_dri_common_intermediates/xmlpool/options.h', missing and no known rule to make

2018-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=93561 Timothy Arceri changed: What|Removed |Added Resolution|--- |NOTOURBUG Status|NEW

  1   2   >