Re: [Mesa-dev] [PATCH] [rfc] radv: add initial prime support.

2016-11-23 Thread Gustaw Smolarczyk
2016-11-23 6:28 GMT+01:00 Dave Airlie : > From: Dave Airlie > > This is kind of a gross hacks, but vulkan doesn't specify anything > but it would be nice to let people with prime systems at least > see some stuff rendering for now. > > This creates a linear shadow image in GART that gets blitted

Re: [Mesa-dev] [PATCH] [rfc] radv: add initial prime support.

2016-11-23 Thread Mike Lothian
You are a star :D I'll test this out tonight On Wed, 23 Nov 2016 at 05:29 Dave Airlie wrote: > From: Dave Airlie > > This is kind of a gross hacks, but vulkan doesn't specify anything > but it would be nice to let people with prime systems at least > see some stuff rendering for now. > > This

[Mesa-dev] [v2] i965: Fast color clear for mipmapped and arrayed

2016-11-23 Thread Topi Pohjolainen
This is a rebase on top recent changes by Jason and Lionel. While things have changed quite a bit in some of the patches they have mostly become clearer. Ben Widawsky (1): i965: Enable fast clears for multi-lod Topi Pohjolainen (16): i965: Refactor lossless compression state tracking i965/b

[Mesa-dev] [v2 03/17] i965: Add new interface for full color resolves

2016-11-23 Thread Topi Pohjolainen
Upcoming patches will introduce fast clear in level/layer granularity like the driver does already for depth/hiz. This patch introduces equivalent full resolve option. Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_context.c| 6 +++--- src/mesa/drivers/dri/i965/intel_

[Mesa-dev] [v2 10/17] i965: Move fast clear state enumeration into resolve map

2016-11-23 Thread Topi Pohjolainen
Status is still tracked per miptree. Next patch will switch to resolve map per slice/level. Signed-off-by: Topi Pohjolainen Reviewed-by: Jason Ekstrand --- src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 58 -- src/mesa/drivers/dri/i965/intel_resolve_map.c | 6 +-- src/mesa

[Mesa-dev] [v2 01/17] i965: Refactor lossless compression state tracking

2016-11-23 Thread Topi Pohjolainen
Essentially this moves fast clear state update away from surface state setup into brw_postdraw_set_buffers_need_resolve() that gets called just after draw submission. Calling intel_miptree_used_for_rendering() can be drop for gen6 and earlier as it is no-op. v2: Rebased on top current master setti

[Mesa-dev] [v2 05/17] i965: Split per miptree and per slice/level fast clear bits

2016-11-23 Thread Topi Pohjolainen
Currently the status bits for fast clear include the flag telling if non-multisampled mcs buffer should be used at all. Once the state tracking is changed to follow individual levels/layers one still needs to have the mcs enabling information in the miptree. Therefore simply split it out to its own

[Mesa-dev] [v2 11/17] i965: Track fast color clear state in level/layer granularity

2016-11-23 Thread Topi Pohjolainen
v2: Added intel_resolve_map_clear() into intel_miptree_release() Signed-off-by: Topi Pohjolainen Reviewed-by: Jason Ekstrand (v1) --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 64 +++ src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 14 +++--- 2 files changed, 53 in

[Mesa-dev] [v2 08/17] i965: Add plumbing for fast clear layer/level details

2016-11-23 Thread Topi Pohjolainen
Until now fast clear has been supported only for non-layered and non-mipmapped buffers. However, from gen8 onwards there is hardware support also for layered/mipmapped. Once this is enabled, fast clear operations target specific layer/level and call for the state to be tracked in the same granulari

[Mesa-dev] [v2 06/17] i965: Provide slice details to renderbuffer fast clear state tracker

2016-11-23 Thread Topi Pohjolainen
This patch also introduces getter and setter for fast clear state preparing for tracking the state per slice. Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_blorp.c | 3 +- src/mesa/drivers/dri/i965/brw_draw.c | 10 +++--- src/mesa/drivers/dri/i965/intel_mipm

[Mesa-dev] [v2 14/17] i965: Use ISL for CCS layouts

2016-11-23 Thread Topi Pohjolainen
One can now also delete intel_get_non_msrt_mcs_alignment(). Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 138 +++--- src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 4 - 2 files changed, 38 insertions(+), 104 deletions(-) diff --git a

[Mesa-dev] [v2 02/17] i965/blorp: Skip redundant re-fast clear for non-compressed

2016-11-23 Thread Topi Pohjolainen
Originally re-clears where skipped but when lossless compression was introduced the re-clears where errorneously enabled also for non-compressed fast clears. Signed-off-by: Topi Pohjolainen CC: Ben Widawsky CC: Kenneth Graunke CC: Harri Syrja Cc: Chad Versace --- src/mesa/drivers/dri/i965/br

[Mesa-dev] [v2 15/17] i965/gen8: Relax asserts prohibiting arrayed/mipmapped fast clears

2016-11-23 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_blorp.c | 4 ++-- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 23 +-- src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 3 ++- 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/src/mes

[Mesa-dev] [v2 16/17] i965: Allow single-sampled miptree to be resolved and shared

2016-11-23 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index 1c8ce0d..d943f04 100644 --- a/src/mesa/drivers

[Mesa-dev] [v2 12/17] i965: Restrict fast color clear on first slice only

2016-11-23 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen Reviewed-by: Jason Ekstrand --- src/mesa/drivers/dri/i965/brw_blorp.c | 8 1 file changed, 8 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c b/src/mesa/drivers/dri/i965/brw_blorp.c index 44ae26e..1a4b333 100644 --- a/src/mesa/drivers/dr

[Mesa-dev] [v2 09/17] i965: Refactor check if color resolve is needed

2016-11-23 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen Reviewed-by: Jason Ekstrand --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 43 +-- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_

[Mesa-dev] [v2 17/17] i965: Enable fast clears for multi-lod

2016-11-23 Thread Topi Pohjolainen
From: Ben Widawsky On SKL (also fast clear is used for level 0, layer 0): Manhattan 3.0: 3.88434% +/- 0.814659% Manhattan 3.0 off: 3.25542% +/- 0.101149% Trex: 3.43501% +/- 0.31223% Trex off: 4.13781% +/- 0.0993569% ON BDW: Manhattan 3.0:

[Mesa-dev] [v2 07/17] i965: Add interface for checking multiple slices if any is unresolved

2016-11-23 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen Reviewed-by: Jason Ekstrand --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 8 src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 5 + 2 files changed, 13 insertions(+) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/d

[Mesa-dev] [v2 13/17] i965: Resolve non-compressed fast clears prior layered rendering

2016-11-23 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen Reviewed-by: Jason Ekstrand --- src/mesa/drivers/dri/i965/brw_draw.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c index 0e0bc27..21164f3 100644 --- a/src/mesa/driv

[Mesa-dev] [v2 04/17] i965: Provide slice details to color resolver

2016-11-23 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_blorp.c | 15 +-- src/mesa/drivers/dri/i965/brw_blorp.h | 3 ++- src/mesa/drivers/dri/i965/brw_context.c | 14 +- src/mesa/drivers/dri/i965/intel_blit.c| 4 ++-- src/mesa/driv

Re: [Mesa-dev] [PATCH 1/2] radeonsi: add a debug flag that disables optimized shader variants

2016-11-23 Thread Nicolai Hähnle
Thanks for this. The series is Reviewed-by: Nicolai Hähnle On 21.11.2016 22:41, Marek Olšák wrote: From: Marek Olšák --- src/gallium/drivers/radeon/r600_pipe_common.c | 1 + src/gallium/drivers/radeon/r600_pipe_common.h | 1 + src/gallium/drivers/radeonsi/si_state_shaders.c | 5 + 3

Re: [Mesa-dev] [PATCH 3/4] glsl: add gl_linked_shader::SourceChecksum

2016-11-23 Thread Nicolai Hähnle
On 22.11.2016 02:20, Marek Olšák wrote: From: Marek Olšák for debugging --- src/compiler/glsl/linker.cpp | 8 src/mesa/main/mtypes.h | 1 + 2 files changed, 9 insertions(+) diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp index 61a029c..9678a74 100644 --

Re: [Mesa-dev] [PATCH] [rfc] radv: add initial prime support.

2016-11-23 Thread Nicolai Hähnle
On 23.11.2016 06:28, Dave Airlie wrote: From: Dave Airlie This is kind of a gross hacks, but vulkan doesn't specify anything but it would be nice to let people with prime systems at least see some stuff rendering for now. This creates a linear shadow image in GART that gets blitted to at the i

Re: [Mesa-dev] [PATCH] [rfc] radv: add initial prime support.

2016-11-23 Thread Mike Lothian
I think it would be good to keep the DRI_PRIME switch to allow for switching between anvil and radv, handy for testing / comparing / benchmarking both It seems that Vulkan automatically uses the first card listed in vulkaninfo (in my case it's the amdgpu card) with no way to select which is used,

[Mesa-dev] [PATCH 01/14] glsl: ignore all but the rightmost layout-qualifier-name

2016-11-23 Thread Andres Gomez
When a layout contains a duplicated layout-qualifier-name in a single declaration, only the last occurrence should be taken into account. From page 59 (page 65 of the PDF) of the GLSL 4.40 spec: " More than one layout qualifier may appear in a single declaration. Additionally, the same layo

[Mesa-dev] [PATCH 02/14] glsl: merge layouts into the default one as the last step in interface blocks

2016-11-23 Thread Andres Gomez
Consider this example: " #version 150 core #extension GL_ARB_shading_language_420pack: require #extension GL_ARB_explicit_attrib_location: require layout(location=0) out vec4 o; layout(binding=2) layout(binding=3, std140) uniform U { vec4 a; } u[2];" A

[Mesa-dev] [PATCH v5 00/14] deal with multiple appearances of the same layout-qualifier-name in a single declaration

2016-11-23 Thread Andres Gomez
In the case of layout-qualifier-names that can appear multiple times in different declarations of the same shader or, even, the same program, but that have to consistently hold the same value we are using the ast_layout_expression class which holds a list to store all the appearances to be able to

[Mesa-dev] [PATCH 07/14] glsl: assert on incoherent point mode layout-id-qualifier validation

2016-11-23 Thread Andres Gomez
The point mode value in an ast_type_qualifier can only be true if the flag is already set since this layout-id-qualifier can only be or not be present in a shader. Hence, it is useless to check for its value if the flag is already set. Just replaced with an assert. V2: assert instead of checking

[Mesa-dev] [PATCH 06/14] glsl: remove unneeded check for incompatible primitive types in GS

2016-11-23 Thread Andres Gomez
The validation of the default in layout qualifier already assures that we won't have 2 ast_gs_input_layout objects with different primitive type values. In fact, the validation already assures that we won't have 2 ast_gs_input_layout objects in the AST tree at all. The check for an error in the sh

[Mesa-dev] [PATCH 05/14] glsl: simplifies the merge of the default in layout qualifier

2016-11-23 Thread Andres Gomez
The merge into the default in layout qualifier duplicates a lot of code that can be reused from the generic merge method. Now, we use the generic merge method inside the specific merge for the default in layout qualifier. The generic merge method has been completed with some bits that were only pr

[Mesa-dev] [PATCH 03/14] glsl: split default out layout qualifier merge

2016-11-23 Thread Andres Gomez
Currently, the default out layout qualifier merge performs specific validation and merge. We want to split out the validation from the merge so they can be done independently. Additionally, for simplification, the direction of the validation and merge is changed so the ast_type_qualifier calling

[Mesa-dev] [PATCH 10/14] glsl: simplified ast_type_qualifier::merge_into_[in|out]_qualifier API

2016-11-23 Thread Andres Gomez
Since we modified the way in which multiple repetitions of the same layout-qualifier-name in a single declaration collapse into the ast_type_qualifier class, we can simplify the merge_into_[in|out]_qualifier APIs through removing the create_node parameter. Reviewed-by: Timothy Arceri Signed-off-b

[Mesa-dev] [PATCH 08/14] glsl: refactor duplicated validations between 2 layout-qualifiers

2016-11-23 Thread Andres Gomez
Several layout-qualifier validations are duplicated in the merge_qualifier and validate_in_qualifier methods. We would rather have them refactored into single calls. Suggested by Timothy. Signed-off-by: Andres Gomez --- src/compiler/glsl/ast_type.cpp | 126 +

[Mesa-dev] [PATCH 04/14] glsl: split default in layout qualifier merge

2016-11-23 Thread Andres Gomez
Currently, the default in layout qualifier merge performs specific validation and merge. We want to split out the validation from the merge so they can be done independently. Additionally, for simplification, the direction of the validation and merge is changed so the ast_type_qualifier calling t

[Mesa-dev] [PATCH 14/14] Revert "glsl: allow layout qualifier overrides with ARB_shading_language_420pack"

2016-11-23 Thread Andres Gomez
This reverts commit aaa69c79cd584db4d9c6ea7794e93d29f3d54572. The commit was erroneous because the ast_layout_expression class is meant to hold a list used for an after check that all the declared values for a layout-qualifier-name are consistent. Therefore, the check for the possibility of dupli

[Mesa-dev] [PATCH 09/14] glsl: ignore all but the rightmost layout qualifier name from the rightmost layout qualifier

2016-11-23 Thread Andres Gomez
From page 46 (page 52 of the PDF) of the GLSL 4.20 spec: " More than one layout qualifier may appear in a single declaration. If the same layout-qualifier-name occurs in multiple layout qualifiers for the same declaration, the last one overrides the former ones." Consider this examp

[Mesa-dev] [PATCH 11/14] glsl: simplified error checking for duplicated layout-qualifiers

2016-11-23 Thread Andres Gomez
The GLSL parser has been simplified to check for the needed GL_ARB_shading_language_420pack extension just when merging the qualifiers in the proper cases. Reviewed-by: Timothy Arceri Signed-off-by: Andres Gomez --- src/compiler/glsl/ast_type.cpp | 6 ++ src/compiler/glsl/glsl_parser.yy

[Mesa-dev] [PATCH 13/14] Revert "glsl: geom shader max_vertices layout must match."

2016-11-23 Thread Andres Gomez
This reverts commit 4c863993780a11cea6f88fa0682796bee5794042. The commit was erroneous because the ast_layout_expression class was created to hold a list of values for a layout-qualifier-name which is allowed to appear in more than one expression in the same shader/program but not to hold differen

[Mesa-dev] [PATCH 12/14] glsl: push layout-qualifier-name values from variable declarations to global

2016-11-23 Thread Andres Gomez
After the previous modifications in the merging of the layout-qualifier-name values, we no longer push the final value in a declaration to the global values. This regression happens because we don't call for merging on the right-most layout qualifier of a declaration which is also the overriding o

[Mesa-dev] [Bug 98831] Constantly increasing memory consumption in JavaFX applications

2016-11-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98831 Bug ID: 98831 Summary: Constantly increasing memory consumption in JavaFX applications Product: Mesa Version: 12.0 Hardware: x86-64 (AMD64) OS: Linux (All)

Re: [Mesa-dev] [PATCH] glsl: Do not allow scalar types in vector relational functions

2016-11-23 Thread Boyan Ding
2016-11-07 20:27 GMT+08:00 Boyan Ding : > 2016-11-05 3:23 GMT+08:00 Matt Turner : >> On Sun, Oct 30, 2016 at 11:45 PM, Boyan Ding wrote: >>> According to OpenGL Shading Language 4.50 spec, Section 8.7 "Vector >>> Relational Functions", functions of this type do not operate on scalar >>> types, so

[Mesa-dev] [Bug 98831] Constantly increasing memory consumption in JavaFX applications

2016-11-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98831 Itai changed: What|Removed |Added Attachment #128164|0 |1 is obsolete|

[Mesa-dev] [Bug 98831] Constantly increasing memory consumption in JavaFX applications

2016-11-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98831 --- Comment #2 from Eero Tamminen --- Thanks for the bug! Which HW you have / with which Mesa drivers you tried this (Nouveau? Intel i965? swrast?)? Did it happen both with SW rendering & HW rendering? > Animations in JavaFX applications ca

Re: [Mesa-dev] [PATCH] scons: Recognize LLVM_CONFIG environment variable.

2016-11-23 Thread Emil Velikov
On 23 November 2016 at 01:23, Vinson Lee wrote: > Signed-off-by: Vinson Lee > --- > scons/llvm.py | 19 --- > 1 file changed, 12 insertions(+), 7 deletions(-) > > diff --git a/scons/llvm.py b/scons/llvm.py > index 977e47a..a27bf00 100644 > --- a/scons/llvm.py > +++ b/scons/llvm.p

[Mesa-dev] [Bug 98831] Constantly increasing memory consumption in JavaFX applications

2016-11-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98831 --- Comment #3 from Itai --- I'm running on Intel HD4000 graphics (i5-3210M integrated GPU). I believe I'm using the i965 driver, or whatever is the default on Debian systems. Here are what I believe to be the relevant lines from my Xorg.log fi

Re: [Mesa-dev] [PATCH] anv: fix enumeration of properties

2016-11-23 Thread Emil Velikov
On 23 November 2016 at 07:51, Iago Toral wrote: > Hey Emil, > > On Thu, 2016-10-06 at 14:12 +0100, Emil Velikov wrote: >> From: Emil Velikov >> >> Driver should enumerate only up-to min2(num_available, num_requested) >> properties and return VK_INCOMPLETE if the # of requested props is >> smaller

[Mesa-dev] [Bug 98831] Constantly increasing memory consumption in JavaFX applications

2016-11-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98831 --- Comment #4 from Itai --- Replaying with Apitrace does not exhibit the problem. Additionally, it seems to perform altogether much better, hardly taxing my CPU, while the original seems to constantly use up a whole core (~24% CPU usage). Sin

Re: [Mesa-dev] [PATCH v4 09/10] gallium: swr: Added swr build for windows

2016-11-23 Thread Kyriazis, George
Thanks Emil, One thing that I am clear about is: what is the difference between Reviewed-by:, Acked-by:, etc. It sounds like they do the same thing, however in the documentation they are worded as if they mean different things. I will also suggest some edits and send out a diff for review. Ge

Re: [Mesa-dev] [PATCH v4 09/10] gallium: swr: Added swr build for windows

2016-11-23 Thread Ilia Mirkin
On Wed, Nov 23, 2016 at 10:20 AM, Kyriazis, George wrote: > Thanks Emil, > > One thing that I am clear about is: what is the difference between > Reviewed-by:, Acked-by:, etc. It sounds like they do the same thing, however > in the documentation they are worded as if they mean different things.

[Mesa-dev] [PATCH] docs: fix minor edits and reviewer suggestions

2016-11-23 Thread George Kyriazis
--- docs/submittingpatches.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/submittingpatches.html b/docs/submittingpatches.html index 2d18c74..be49a2e 100644 --- a/docs/submittingpatches.html +++ b/docs/submittingpatches.html @@ -41,7 +41,7 @@ components. git bise

Re: [Mesa-dev] [PATCH v4 09/10] gallium: swr: Added swr build for windows

2016-11-23 Thread Emil Velikov
On 23 November 2016 at 15:39, Ilia Mirkin wrote: > On Wed, Nov 23, 2016 at 10:20 AM, Kyriazis, George > wrote: >> Thanks Emil, >> >> One thing that I am clear about is: what is the difference between >> Reviewed-by:, Acked-by:, etc. It sounds like they do the same thing, >> however in the docu

Re: [Mesa-dev] [PATCH v4 09/10] gallium: swr: Added swr build for windows

2016-11-23 Thread Kyriazis, George
> -Original Message- > From: mesa-dev [mailto:mesa-dev-boun...@lists.freedesktop.org] On > Behalf Of Emil Velikov > Sent: Wednesday, November 23, 2016 10:02 AM > To: Ilia Mirkin > Cc: Kyriazis, George ; ML mesa-dev d...@lists.freedesktop.org> > Subject: Re: [Mesa-dev] [PATCH v4 09/10] ga

[Mesa-dev] [PATCH 1/2] main/texobj: Check that texture id > 0 before looking it up in hash-table

2016-11-23 Thread Eduardo Lima Mitev
_mesa_lookup_texture_err() is not currently checking that the texture-id can be zero, but _mesa_HashLookup() doesn't expect the key to be zero, and will fail an assertion (crashing the driver on debug mode). Considering that _mesa_lookup_texture_err() is called from _mesa_GetTextureImage and _mesa

[Mesa-dev] [PATCH 0/2] A couple of fixes related to glGetTextureImage

2016-11-23 Thread Eduardo Lima Mitev
This mini-series addresses a couple of issues I found while fixing CTS test 'GL45-CTS.direct_state_access.textures_image_query_errors' on i965/BDW, which currently crashes the driver. There is a little issue with the test itself, for which I submitted a fix too, but these two patches should get ev

[Mesa-dev] [PATCH 2/2] mesa/getteximage: Add validation of target to glGetTextureImage

2016-11-23 Thread Eduardo Lima Mitev
There is an specific list of texture targets that can be used with glGetTextureImage. From OpenGL 4.5 spec, section '8.11 Texture Queries', page 234 of the PDF states: "An INVALID_ENUM error is generated if the effective target is not one of TEXTURE_1D , TEXTURE_2D , TEXTURE_3D , TEXTURE_1D

Re: [Mesa-dev] [PATCH 3/3] glsl/cache/tests: Cast cache_get result to avoid compiler warning

2016-11-23 Thread Aaron Watry
On Tue, Nov 22, 2016 at 8:27 PM, Aaron Watry wrote: > > > On Tue, Nov 22, 2016 at 2:48 PM, Matt Turner wrote: > >> On 11/22, Aaron Watry wrote: >> >>> disk_cache_get returns void*, but we were storing/comparing a char*. >>> >>> Signed-off-by: Aaron Watry >>> --- >>> Note that this did, and stil

[Mesa-dev] [PATCH] gdi: Add GALLIUM_TRACE and GALLIUM_RBUG to gdi

2016-11-23 Thread George Kyriazis
--- src/gallium/targets/libgl-gdi/SConscript | 1 + src/gallium/targets/libgl-gdi/libgl_gdi.c | 4 2 files changed, 5 insertions(+) diff --git a/src/gallium/targets/libgl-gdi/SConscript b/src/gallium/targets/libgl-gdi/SConscript index d3251ca..adb3581 100644 --- a/src/gallium/targets/libgl

Re: [Mesa-dev] [PATCH] gallium: create a debug screen wrapper around swrast screens

2016-11-23 Thread Emil Velikov
On 20 November 2016 at 16:28, Ilia Mirkin wrote: > Thanks Marek. > > Emil, I'd appreciate it if you could have a look as well. I believe > you were the last to touch these helpers. I'm highly confused by the > flow of things, and mainly want to ensure that we don't warp the same > screen *twice*.

Re: [Mesa-dev] [PATCH v4 09/10] gallium: swr: Added swr build for windows

2016-11-23 Thread Ilia Mirkin
On Wed, Nov 23, 2016 at 11:10 AM, Kyriazis, George wrote: > >> -Original Message- >> From: mesa-dev [mailto:mesa-dev-boun...@lists.freedesktop.org] On >> Behalf Of Emil Velikov >> Sent: Wednesday, November 23, 2016 10:02 AM >> To: Ilia Mirkin >> Cc: Kyriazis, George ; ML mesa-dev > d...@l

Re: [Mesa-dev] [PATCH v4 09/10] gallium: swr: Added swr build for windows

2016-11-23 Thread Kyriazis, George
Thanks, I'll update the docs explaining the *-By: a bit better and send it out for review. George > -Original Message- > From: mesa-dev [mailto:mesa-dev-boun...@lists.freedesktop.org] On > Behalf Of Ilia Mirkin > Sent: Wednesday, November 23, 2016 10:59 AM > To: Kyriazis, George > Cc:

Re: [Mesa-dev] [v2 02/17] i965/blorp: Skip redundant re-fast clear for non-compressed

2016-11-23 Thread Jason Ekstrand
On Wed, Nov 23, 2016 at 1:16 AM, Topi Pohjolainen < topi.pohjolai...@gmail.com> wrote: > Originally re-clears where skipped but when lossless compression > was introduced the re-clears where errorneously enabled also for > non-compressed fast clears. > > Signed-off-by: Topi Pohjolainen > CC: Ben

[Mesa-dev] [Bug 98831] Constantly increasing memory consumption in JavaFX applications

2016-11-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98831 --- Comment #5 from Eero Tamminen --- (In reply to Itai from comment #3) > The problem disappears completely when using SW rendering in Java > (-Dprism.order=sw), which as far as I understand surpasses Mesa, but I'm not > sure. It's not using M

Re: [Mesa-dev] [v2 04/17] i965: Provide slice details to color resolver

2016-11-23 Thread Jason Ekstrand
General comment: Does it make sense to squash this with the previous patch? I'm fine either way. On Wed, Nov 23, 2016 at 1:16 AM, Topi Pohjolainen < topi.pohjolai...@gmail.com> wrote: > Signed-off-by: Topi Pohjolainen > --- > src/mesa/drivers/dri/i965/brw_blorp.c | 15 +-- >

[Mesa-dev] [Bug 98833] [REGRESSION, bisected] Wayland revert commit breaks fullscreen frame updates

2016-11-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98833 Bug ID: 98833 Summary: [REGRESSION, bisected] Wayland revert commit breaks fullscreen frame updates Product: Mesa Version: git Hardware: Other OS: All

Re: [Mesa-dev] [PATCH] gdi: Add GALLIUM_TRACE and GALLIUM_RBUG to gdi

2016-11-23 Thread Emil Velikov
On 23 November 2016 at 16:14, George Kyriazis wrote: > --- > src/gallium/targets/libgl-gdi/SConscript | 1 + > src/gallium/targets/libgl-gdi/libgl_gdi.c | 4 > 2 files changed, 5 insertions(+) > > diff --git a/src/gallium/targets/libgl-gdi/SConscript > b/src/gallium/targets/libgl-gdi/SCons

Re: [Mesa-dev] [v2 02/17] i965/blorp: Skip redundant re-fast clear for non-compressed

2016-11-23 Thread Pohjolainen, Topi
On Wed, Nov 23, 2016 at 09:05:39AM -0800, Jason Ekstrand wrote: >On Wed, Nov 23, 2016 at 1:16 AM, Topi Pohjolainen ><[1]topi.pohjolai...@gmail.com> wrote: > > Originally re-clears where skipped but when lossless compression > was introduced the re-clears where errorneously enable

Re: [Mesa-dev] [v2 04/17] i965: Provide slice details to color resolver

2016-11-23 Thread Pohjolainen, Topi
On Wed, Nov 23, 2016 at 09:26:29AM -0800, Jason Ekstrand wrote: >General comment: Does it make sense to squash this with the previous >patch? I'm fine either way. >On Wed, Nov 23, 2016 at 1:16 AM, Topi Pohjolainen ><[1]topi.pohjolai...@gmail.com> wrote: > > Signed-off-by: Top

[Mesa-dev] [Bug 98833] [REGRESSION, bisected] Wayland revert commit breaks fullscreen frame updates

2016-11-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98833 Daniel Stone changed: What|Removed |Added CC||dan...@fooishbar.org --- Comment #1 from

Re: [Mesa-dev] [PATCH 2/3] radv: Use library mtime for cache UUID.

2016-11-23 Thread Bas Nieuwenhuizen
On Tue, Nov 22, 2016 at 2:31 PM, Emil Velikov wrote: > On 22 November 2016 at 01:19, Bas Nieuwenhuizen > wrote: >> We want to also invalidate the cache when LLVM gets changed. As the >> specific LLVM revision is not fixed at build time, we will need to >> check at runtime. Computing a checksum f

Re: [Mesa-dev] [PATCH] [rfc] radv: add initial prime support.

2016-11-23 Thread Mike Lothian
It works with the Talos Principle and performs well, I'm seeing some artefacts in the grass which can be seen in https://imgur.com/a/3litB I'm not sure if that's caused by one of the LLVM bugs that have been mentioned On Wed, 23 Nov 2016 at 11:13 Mike Lothian wrote: > I think it would be good to

[Mesa-dev] [Bug 98831] Constantly increasing memory consumption in JavaFX applications

2016-11-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98831 --- Comment #6 from Christoph Haag --- This was my test case for the same problem: https://gist.github.com/ChristophHaag/661be992429b451218e9ee1fb0eacdec The problematic calls being ImageView.setTranslateX() and ImageView.setTranslateY() and per

[Mesa-dev] [RFC PATCH] anv: implement pipeline statistics queries

2016-11-23 Thread Ilia Mirkin
The strategy is to just keep n anv_query_pool_slot entries per query instead of one. The available bit is only valid in the last one. Signed-off-by: Ilia Mirkin --- This was lightly tested with this patch to the vulkan loader cube.c: http://pastie.org/private/fe92867hwhxu7fzjw9pvzq Flipping it

Re: [Mesa-dev] [RFC PATCH] anv: implement pipeline statistics queries

2016-11-23 Thread Ilia Mirkin
On Wed, Nov 23, 2016 at 1:52 PM, Ilia Mirkin wrote: > The strategy is to just keep n anv_query_pool_slot entries per query > instead of one. The available bit is only valid in the last one. > > Signed-off-by: Ilia Mirkin > --- > > This was lightly tested with this patch to the vulkan loader cube.

[Mesa-dev] [PATCH] radv: Don't generate radv_timestamp.h

2016-11-23 Thread Bas Nieuwenhuizen
Not needed anymore. Signed-off-by: Bas Nieuwenhuizen --- src/amd/vulkan/Makefile.am | 6 +- src/amd/vulkan/Makefile.sources | 3 +-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/amd/vulkan/Makefile.am b/src/amd/vulkan/Makefile.am index c559a95..3f9b53e 100644 --- a

Re: [Mesa-dev] [PATCH] scons: Recognize LLVM_CONFIG environment variable.

2016-11-23 Thread Jose Fonseca
On 23/11/16 01:23, Vinson Lee wrote: Signed-off-by: Vinson Lee --- scons/llvm.py | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/scons/llvm.py b/scons/llvm.py index 977e47a..a27bf00 100644 --- a/scons/llvm.py +++ b/scons/llvm.py @@ -194,11 +194,16 @@ def

Re: [Mesa-dev] [PATCH] [rfc] radv: add initial prime support.

2016-11-23 Thread Dave Airlie
On 23 November 2016 at 20:46, Nicolai Hähnle wrote: > On 23.11.2016 06:28, Dave Airlie wrote: >> >> From: Dave Airlie >> >> This is kind of a gross hacks, but vulkan doesn't specify anything >> but it would be nice to let people with prime systems at least >> see some stuff rendering for now. >>

Re: [Mesa-dev] [PATCH] [rfc] radv: add initial prime support.

2016-11-23 Thread Dave Airlie
On 23 November 2016 at 21:13, Mike Lothian wrote: > I think it would be good to keep the DRI_PRIME switch to allow for switching > between anvil and radv, handy for testing / comparing / benchmarking both > > It seems that Vulkan automatically uses the first card listed in vulkaninfo > (in my case

Re: [Mesa-dev] [PATCH 3/4] swr: [rasterizer core] pipe renderTargetArrayIndex through to clears

2016-11-23 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley mailto:timothy.o.row...@intel.com>> On Nov 17, 2016, at 6:51 PM, Ilia Mirkin mailto:imir...@alum.mit.edu>> wrote: Currently clears only operate on the 0th array index (ignoring surface layout parameters). Instead normalize to take a RTAI like all the load/store tile logi

Re: [Mesa-dev] [PATCH 1/4] swr: [rasterizer core] actually perform clear before store in GetHotTile

2016-11-23 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley mailto:timothy.o.row...@intel.com>> On Nov 17, 2016, at 6:51 PM, Ilia Mirkin mailto:imir...@alum.mit.edu>> wrote: When switching render target array indexes (as might happen in a GS, or in a future change, with layered clears), if the previous state is HOTTILE_CLEAR, we

Re: [Mesa-dev] [v2 04/17] i965: Provide slice details to color resolver

2016-11-23 Thread Jason Ekstrand
On Wed, Nov 23, 2016 at 10:13 AM, Pohjolainen, Topi < topi.pohjolai...@gmail.com> wrote: > On Wed, Nov 23, 2016 at 09:26:29AM -0800, Jason Ekstrand wrote: > >General comment: Does it make sense to squash this with the previous > >patch? I'm fine either way. > >On Wed, Nov 23, 2016 at

Re: [Mesa-dev] [PATCH 4/4] swr: clear every layer of the attached surfaces

2016-11-23 Thread Rowley, Timothy O
This code seems to assume that all attached buffers have the same start layer, and that start will be zero. Maybe it should construct the clearMask inside the layer loop, which would also be a bit clearer than the code you added to drop bits out of the mask? -Tim > On Nov 17, 2016, at 6:51 PM

Re: [Mesa-dev] [v2 02/17] i965/blorp: Skip redundant re-fast clear for non-compressed

2016-11-23 Thread Jason Ekstrand
On Wed, Nov 23, 2016 at 10:16 AM, Pohjolainen, Topi < topi.pohjolai...@gmail.com> wrote: > On Wed, Nov 23, 2016 at 09:05:39AM -0800, Jason Ekstrand wrote: > >On Wed, Nov 23, 2016 at 1:16 AM, Topi Pohjolainen > ><[1]topi.pohjolai...@gmail.com> wrote: > > > > Originally re-clears where

[Mesa-dev] [PATCH v2] scons: Recognize LLVM_CONFIG environment variable.

2016-11-23 Thread Vinson Lee
Signed-off-by: Vinson Lee Reviewed-by: Emil Velikov --- v2 Use LLVM_CONFIG for swr too. Update common.py. Use local variable llvm_config instead of env['LLVM_CONFIG']. common.py | 2 +- scons/llvm.py | 17 + src/gallium/drivers/swr/

Re: [Mesa-dev] [PATCH 4/4] swr: clear every layer of the attached surfaces

2016-11-23 Thread Ilia Mirkin
On Wed, Nov 23, 2016 at 3:02 PM, Rowley, Timothy O wrote: > This code seems to assume that all attached buffers have the same start > layer, and that start will be zero. Maybe it should construct the clearMask > inside the layer loop, which would also be a bit clearer than the code you > added

Re: [Mesa-dev] [PATCH v2] scons: Recognize LLVM_CONFIG environment variable.

2016-11-23 Thread Jose Fonseca
On 23/11/16 20:09, Vinson Lee wrote: Signed-off-by: Vinson Lee Reviewed-by: Emil Velikov --- v2 Use LLVM_CONFIG for swr too. Update common.py. Use local variable llvm_config instead of env['LLVM_CONFIG']. common.py | 2 +- scons/llvm.py | 17

Re: [Mesa-dev] [PATCH 4/4] swr: clear every layer of the attached surfaces

2016-11-23 Thread Rowley, Timothy O
Ah, didn’t notice that they were all shifted by arrayIndex. Fine to leave the changes as they are, then. This series of four patches (or rather, the rebased versions in your repo) are Reviewed-by: Tim Rowley mailto:timothy.o.row...@intel.com>> On Nov 23, 2016, at 2:11 PM, Ilia Mirkin mailto

Re: [Mesa-dev] [PATCH 0/2] A couple of fixes related to glGetTextureImage

2016-11-23 Thread Nicolai Hähnle
Series is: Reviewed-by: Nicolai Hähnle On 23.11.2016 17:10, Eduardo Lima Mitev wrote: This mini-series addresses a couple of issues I found while fixing CTS test 'GL45-CTS.direct_state_access.textures_image_query_errors' on i965/BDW, which currently crashes the driver. There is a little issue

Re: [Mesa-dev] [v2 11/17] i965: Track fast color clear state in level/layer granularity

2016-11-23 Thread Jason Ekstrand
On Wed, Nov 23, 2016 at 1:16 AM, Topi Pohjolainen < topi.pohjolai...@gmail.com> wrote: > v2: Added intel_resolve_map_clear() into intel_miptree_release() > > Signed-off-by: Topi Pohjolainen > Reviewed-by: Jason Ekstrand (v1) > --- > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 64 > +

Re: [Mesa-dev] [v2 14/17] i965: Use ISL for CCS layouts

2016-11-23 Thread Jason Ekstrand
On Wed, Nov 23, 2016 at 1:16 AM, Topi Pohjolainen < topi.pohjolai...@gmail.com> wrote: > One can now also delete intel_get_non_msrt_mcs_alignment(). > > Signed-off-by: Topi Pohjolainen > --- > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 138 > +++--- > src/mesa/drivers/dr

[Mesa-dev] [PATCH] i965: Fix a mistake from porting the URB allocation code to arrays.

2016-11-23 Thread Kenneth Graunke
Commit 6d416bcd846a49414f210cd761789156c37a7b3e (i965: Use arrays in Gen7+ URB code.) introduced a regression which caused us to fail to allocate all of our URB space. - total_wants -= ds_wants; + total_wants -= additional; The new line should have been total_wants -= wants[

Re: [Mesa-dev] [PATCH] i965: Fix a mistake from porting the URB allocation code to arrays.

2016-11-23 Thread Matt Turner
Reviewed-by: Matt Turner ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [v2 08/17] i965: Add plumbing for fast clear layer/level details

2016-11-23 Thread Jason Ekstrand
On Wed, Nov 23, 2016 at 1:16 AM, Topi Pohjolainen < topi.pohjolai...@gmail.com> wrote: > Until now fast clear has been supported only for non-layered and > non-mipmapped buffers. However, from gen8 onwards there is hardware > support also for layered/mipmapped. Once this is enabled, fast clear > o

Re: [Mesa-dev] [PATCH 2/6] intel/blorp_blit: Split blorp blits if they are too large

2016-11-23 Thread Jason Ekstrand
On Tue, Nov 22, 2016 at 7:03 PM, Jordan Justen wrote: > We rename do_blorp_blit() to try_blorp_blit(), and add a return error > if the surface size for the blit is too large. Now, do_blorp_blit() is > rewritten to try to split the blit into smaller operations if > try_blorp_blit() fails. > > Note

[Mesa-dev] [PATCH 1/5] radv: add support for anisotropic filtering on SI-CI

2016-11-23 Thread Fredrik Höglund
Ported from radeonsi. Note that si_make_texture_descriptor() already sets img7 to the mask value referred to in the comment. --- src/amd/common/ac_nir_to_llvm.c | 31 +++ src/amd/vulkan/radv_device.c| 11 ++- 2 files changed, 33 insertions(+), 9 deletions(-

[Mesa-dev] [PATCH 2/5] radv: add support for VK_KHR_sampler_mirror_clamp_to_edge

2016-11-23 Thread Fredrik Höglund
radv_tex_wrap() already supports VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE, so all that's needed is to advertise support for the extension. --- src/amd/vulkan/radv_device.c | 4 1 file changed, 4 insertions(+) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index

[Mesa-dev] [PATCH 0/5] Random radv patches

2016-11-23 Thread Fredrik Höglund
These are some random patches for radv. The first adds support for anisotropic filtering on SI/CIK. Note that this patch has not been tested. Patches 2-4 add support for extensions; two of which are already supported in practice, and one that's trivial to implement. One thing I noticed is that

[Mesa-dev] [PATCH 3/5] radv: add support for VK_AMD_negative_viewport_height

2016-11-23 Thread Fredrik Höglund
The driver already supports this extension in practice. --- src/amd/vulkan/radv_device.c | 4 1 file changed, 4 insertions(+) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 0d79eee..58484bd 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_de

[Mesa-dev] [PATCH 4/5] radv: add support for VK_AMD_draw_indirect_count

2016-11-23 Thread Fredrik Höglund
--- src/amd/vulkan/radv_cmd_buffer.c | 94 ++-- src/amd/vulkan/radv_device.c | 4 ++ 2 files changed, 84 insertions(+), 14 deletions(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 824f9d8..d1e4deb 100644 --- a/src

[Mesa-dev] [PATCH 5/5] radv: use the marketing name in the deviceName string

2016-11-23 Thread Fredrik Höglund
This bumps the libdrm requirement to 2.4.72. --- configure.ac | 2 +- src/amd/vulkan/radv_radeon_winsys.h | 2 +- src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c | 43 +-- 3 files changed, 26 insertions(+), 21 deletions(-)

Re: [Mesa-dev] [PATCH] radv: Don't generate radv_timestamp.h

2016-11-23 Thread Dave Airlie
On 24 November 2016 at 05:07, Bas Nieuwenhuizen wrote: > Not needed anymore. > > Signed-off-by: Bas Nieuwenhuizen Reviewed-by: Dave Airlie ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-de

  1   2   >