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

2017-02-18 Thread Dave Airlie
From: Dave Airlie This fixes: dEQP-VK.renderpass.formats.a2b10g10r10_unorm_pack32* regressions. Signed-off-by: Dave Airlie --- src/amd/vulkan/radv_formats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c index a

[Mesa-dev] [PATCH 1/2] radv: pass subresourceRange by pointer.

2017-02-18 Thread Dave Airlie
From: Dave Airlie This struct is 5 dwords, we should really just pass a pointer to it. Signed-off-by: Dave Airlie --- src/amd/vulkan/radv_cmd_buffer.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vul

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

2017-02-18 Thread Dave Airlie
From: Dave Airlie This iterates the fast clear flush across the layers in the specified range. It also moves the compute resolve flush into the function and builds the range in there. This fixes: dEQP-VK.geometry.layered.* regressions since fast clears. Signed-off-by: Dave Airlie --- src/amd

[Mesa-dev] [PATCH] vulkan/wsi/x11: add support to detect if we can support rendering

2017-02-18 Thread Dave Airlie
From: Dave Airlie This adds support to radv_GetPhysicalDeviceXlibPresentationSupportKHR and radv_GetPhysicalDeviceXcbPresentationSupportKHR to check if the local device file descriptor is compatible with the descriptor retrieved from the X server via DRI3. This will stop radv binding to an X ser

Re: [Mesa-dev] [PATCH] vulkan/wsi: Improve the DRI3 error message

2017-02-18 Thread Jason Ekstrand
On Feb 18, 2017 12:37 PM, "Kai Wasserbäch" wrote: Hey Jacob, sorry for not spotting this the first time, but I have an additional comment. Please see below. Jacob Lifshay wrote on 18.02.2017 18:48:> This commit improves the message by telling them that they could probably > enable DRI3. More im

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

2017-02-18 Thread Edward O'Callaghan
Acked-by: Edward O'Callaghan On 02/19/2017 01:39 PM, Bas Nieuwenhuizen wrote: > I assume this wants to check if all pipelines use the same SGPR for > the rings. > > Signed-off-by: Bas Nieuwenhuizen > --- > src/amd/vulkan/radv_cmd_buffer.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

[Mesa-dev] [Bug 99856] OpenCL Hello world returns "unsupported call to function get_local_size"

2017-02-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99856 Bug ID: 99856 Summary: OpenCL Hello world returns "unsupported call to function get_local_size" Product: Mesa Version: 17.0 Hardware: Other OS: All

Re: [Mesa-dev] [PATCH v2 2/3] i965/fs: fix source type when emitting MOV_INDIRECT to read ICP handles

2017-02-18 Thread Francisco Jerez
Samuel Iglesias Gonsálvez writes: > When generating the MOV INDIRECT instruction, the source type is ignored > and it is set to destination's type. However, this is going to change in a > later patch, so we need to explicitly set the proper source type. > > brw_vec8_grf() creates an float type's

Re: [Mesa-dev] [PATCH v2 1/3] i965/fs: fix indirect load DF uniforms on BSW/BXT

2017-02-18 Thread Francisco Jerez
Samuel Iglesias Gonsálvez writes: > The lowered BSW/BXT indirect move instructions had incorrect > source types, which luckily wasn't causing incorrect assembly to be > generated due to the bug fixed in the next patch, but would have > confused the remaining back-end IR infrastructure due to the

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

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

Re: [Mesa-dev] [PATCH] android: glsl: build shader cache sources

2017-02-18 Thread Timothy Arceri
I would have thought this commit [1] should have fixed it for android as weel as scons. [1] https://cgit.freedesktop.org/mesa/mesa/commit/?id=172c48cc15e2a7b42a7de8ff9164ad8733155667 On 19/02/17 08:23, Mauro Rossi wrote: Fixes the following building errors: external/mesa/src/compiler/glsl/l

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

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

[Mesa-dev] [PATCH 1/4] genxml: Make MI_STORE_DATA_IMM more consistent

2017-02-18 Thread Jason Ekstrand
--- src/intel/genxml/gen7.xml | 2 +- src/intel/genxml/gen75.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/genxml/gen7.xml b/src/intel/genxml/gen7.xml index 57c3013..7368b5b 100644 --- a/src/intel/genxml/gen7.xml +++ b/src/intel/genxml/gen7.xml @@ -2314,7 +2

[Mesa-dev] [PATCH 2/4] anv/query: Perform CmdResetQueryPool on the GPU

2017-02-18 Thread Jason Ekstrand
This fixes a some rendering corruption in The Talos Principle Cc: "13.0 17.0" --- src/intel/vulkan/anv_query.c | 22 -- src/intel/vulkan/genX_cmd_buffer.c | 27 +++ 2 files changed, 27 insertions(+), 22 deletions(-) diff --git a/src/intel/vulkan

[Mesa-dev] [PATCH 3/4] anv/Makefile: alphabetize

2017-02-18 Thread Jason Ekstrand
--- src/intel/vulkan/Makefile.sources | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/intel/vulkan/Makefile.sources b/src/intel/vulkan/Makefile.sources index bd78805..b99 100644 --- a/src/intel/vulkan/Makefile.sources +++ b/src/intel/vulkan/Makefile.sources @@

[Mesa-dev] [PATCH 4/4] anv: Put everything about queries in genX_query.c

2017-02-18 Thread Jason Ekstrand
--- src/intel/vulkan/Makefile.sources | 5 +- src/intel/vulkan/anv_query.c | 171 - src/intel/vulkan/genX_cmd_buffer.c | 303 --- src/intel/vulkan/genX_query.c | 477 + 4 files changed, 481 insertions(+), 475 deletio

[Mesa-dev] [PATCH] vulkan/wsi: Improve the DRI3 error message

2017-02-18 Thread Jacob Lifshay
This commit improves the message by telling them that they could probably enable DRI3. More importantly, it includes a little heuristic to check to see if we're running on AMD or NVIDIA's proprietary X11 drivers and, if we are, doesn't emit the warning. This way, users with both a discrete card a

Re: [Mesa-dev] [PATCH] vulkan/wsi: Improve the DRI3 error message

2017-02-18 Thread Matt Turner
On Sat, Feb 18, 2017 at 1:31 PM, Jacob Lifshay wrote: > This commit improves the message by telling them that they could probably > enable DRI3. More importantly, it includes a little heuristic to check > to see if we're running on AMD or NVIDIA's proprietary X11 drivers and, > if we are, doesn't

[Mesa-dev] [PATCH] android: define HAVE_DL_ITERATE_PHDR for build-id code

2017-02-18 Thread Mauro Rossi
Required due to d4fa083 "util: Add utility build-id code." to avoid following build error and warnings: external/mesa/src/intel/vulkan/anv_device.c:60:32: error: incompatible integer to pointer conversion initializing 'const struct build_id_note *' with an expression of type 'int' [-Werror,-Wint

[Mesa-dev] [PATCH] anv/query: clflush the bo map on non-LLC platforms

2017-02-18 Thread Jason Ekstrand
Found by inspection Cc: "13.0 17.0" --- src/intel/vulkan/anv_query.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/intel/vulkan/anv_query.c b/src/intel/vulkan/anv_query.c index 293257b..d674e83 100644 --- a/src/intel/vulkan/anv_query.c +++ b/src/intel/vulkan/anv_query.c @@ -129,6 +1

[Mesa-dev] [PATCH] vulkan/wsi: Improve the DRI3 error message

2017-02-18 Thread Jacob Lifshay
This commit improves the message by telling them that they could probably enable DRI3. More importantly, it includes a little heuristic to check to see if we're running on AMD or NVIDIA's proprietary X11 drivers and, if we are, doesn't emit the warning. This way, users with both a discrete card a

[Mesa-dev] [PATCH] android: glsl: build shader cache sources

2017-02-18 Thread Mauro Rossi
Fixes the following building errors: external/mesa/src/compiler/glsl/linker.cpp:4642: error: undefined reference to 'shader_cache_read_program_metadata(gl_context*, gl_shader_program*)' external/mesa/src/mesa/program/ir_to_mesa.cpp:3135: error: undefined reference to 'shader_cache_write_program_

[Mesa-dev] [Bug 98502] Delay when starting firefox, thunderbird or chromium and dmesg spam

2017-02-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98502 Andreas Radke changed: What|Removed |Added CC||andy...@archlinux.org -- You are receiv

[Mesa-dev] [Bug 99496] Dolphin emulator: Launching Mario Kart Wii results in a blank window/black screen and freeze.

2017-02-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99496 --- Comment #4 from Grazvydas Ignotas --- For me the issue seems to be gone in current mesa git + llvm svn. -- You are receiving this mail because: You are the assignee for the bug. You are the QA Contact for the bug.___

Re: [Mesa-dev] [PATCH] vulkan/wsi: Improve the DRI3 error message

2017-02-18 Thread Kai Wasserbäch
Hey Jacob, sorry for not spotting this the first time, but I have an additional comment. Please see below. Jacob Lifshay wrote on 18.02.2017 18:48:> This commit improves the message by telling them that they could probably > enable DRI3. More importantly, it includes a little heuristic to check >

Re: [Mesa-dev] [PATCH] nv50/ir: check for origin insn in findOriginForTestWithZero

2017-02-18 Thread Ilia Mirkin
Reviewed-by: Ilia Mirkin On Sat, Feb 18, 2017 at 12:51 PM, Pierre Moreau wrote: > Function arguments do not have an "origin" instruction, causing a > NULL-pointer dereference without this check. > > Signed-off-by: Pierre Moreau > --- > src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp |

[Mesa-dev] [PATCH] nv50/ir: check for origin insn in findOriginForTestWithZero

2017-02-18 Thread Pierre Moreau
Function arguments do not have an "origin" instruction, causing a NULL-pointer dereference without this check. Signed-off-by: Pierre Moreau --- src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_

[Mesa-dev] [PATCH] vulkan/wsi: Improve the DRI3 error message

2017-02-18 Thread Jacob Lifshay
This commit improves the message by telling them that they could probably enable DRI3. More importantly, it includes a little heuristic to check to see if we're running on AMD or NVIDIA's proprietary X11 drivers and, if we are, doesn't emit the warning. This way, users with both a discrete card a

Re: [Mesa-dev] [PATCH] vulkan/wsi: Improve the DRI3 error message

2017-02-18 Thread Jason Ekstrand
On Feb 18, 2017 1:59 AM, "Kai Wasserbäch" wrote: Hey Jacob, Jacob Lifshay wrote on 18.02.2017 10:40: > This commit improves the message by telling them that they could probably > enable DRI3 and giving a url to a Ask Ubuntu question showing how to do > that. wouldn't it be better to add a page t

Re: [Mesa-dev] [PATCH] travis: bring the scons build on par with AppVeyor

2017-02-18 Thread Rhys Kidd
On 16 February 2017 at 09:09, Emil Velikov wrote: > From: Emil Velikov > > Namely, always build with LLVM and run the check target. > > Cc: Rhys Kidd > Cc: Eric Anholt > Signed-off-by: Emil Velikov > Gets my Reviewed-by: Rhys Kidd I had a similar testing branch [0], and what will become ap

[Mesa-dev] [PATCH] blit : only error when the stencil and depth bits do not match (v2)

2017-02-18 Thread Max Qian
From: Maxqia Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97921 v2 : fix unintentional line removal --- src/mesa/main/blit.c | 84 +--- 1 file changed, 34 insertions(+), 50 deletions(-) diff --git a/src/mesa/main/blit.c b/src/mesa/main/b

[Mesa-dev] [PATCH] blit : only error when the stencil and depth bits do not match

2017-02-18 Thread Max Qian
From: Maxqia Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97921 --- src/mesa/main/blit.c | 85 +--- 1 file changed, 34 insertions(+), 51 deletions(-) diff --git a/src/mesa/main/blit.c b/src/mesa/main/blit.c index e739130f98..2f7b076667 1

Re: [Mesa-dev] [PATCH] vulkan/wsi: Improve the DRI3 error message

2017-02-18 Thread Kai Wasserbäch
Hey Jacob, Jacob Lifshay wrote on 18.02.2017 10:40: > This commit improves the message by telling them that they could probably > enable DRI3 and giving a url to a Ask Ubuntu question showing how to do > that. wouldn't it be better to add a page to the mesa user topics section (ie. add a file to d

[Mesa-dev] [PATCH] vulkan/wsi: Improve the DRI3 error message

2017-02-18 Thread Jacob Lifshay
This commit improves the message by telling them that they could probably enable DRI3 and giving a url to a Ask Ubuntu question showing how to do that. More importantly, it includes a little heuristic to check to see if we're running on AMD or NVIDIA's proprietary X11 drivers and, if we are, doesn