Re: [Mesa-dev] New GBM backend for dEQP

2016-12-20 Thread Tapani Pälli
On 12/20/2016 09:10 PM, Chad Versace wrote: On Mon 19 Dec 2016, Tapani Pälli wrote: On 12/17/2016 03:58 AM, Chad Versace wrote: Happy Christmas to everyone who's busy squashing dEQP bugs. I wrote a new GBM backend for dEQP. I even submitted it to dEQP's upstream Gerrit. Pyry, dEQP's

Re: [Mesa-dev] [PATCH] egl/dri2: implement query surface hook

2016-12-20 Thread Tapani Pälli
On 12/20/2016 08:58 PM, Chad Versace wrote: On Tue 20 Dec 2016, Tapani Pälli wrote: This makes better guarantee that the values we return are in sync what the underlying drawable currently has. Together with dEQP change bug #98327 this fixes following test:

[Mesa-dev] [Bug 99055] Games hang / freeze completely

2016-12-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99055 --- Comment #20 from Kenneth Graunke --- (In reply to Eero Tamminen from comment #17) > (In reply to Kenneth Graunke from comment #15) > > Renaming the binaries or editing scripts installed with the game is liable > > to

Re: [Mesa-dev] [PATCH 04/12] nir: Add a LCSAA-pass

2016-12-20 Thread Timothy Arceri
On Tue, 2016-12-20 at 15:14 -0800, Jason Ekstrand wrote: > I did have a couple of "real" comments on this one that I'd like to > at least see a reply to.  Does look pretty good though. > > On Sun, Dec 18, 2016 at 9:47 PM, Timothy Arceri bora.com> wrote: > > From: Thomas

[Mesa-dev] [PATCH 3/4] gallivm: optimize lp_build_unpack_arith_rgba_aos slightly

2016-12-20 Thread sroland
From: Roland Scheidegger This code uses a vector shift which has to be emulated on x86 unless there's AVX2. Luckily in some cases we can actually avoid the shift altogether, so do that. Also make sure we hit the fast lp_build_conv() path when applicable, albeit that's quite

[Mesa-dev] [PATCH 4/4] gallivm: implement aos unpack (to unorm8) for small unorm formats

2016-12-20 Thread sroland
From: Roland Scheidegger Using bit replication. This path now resembles something which might make sense. (The logic was mostly copied from llvmpipe fs backend.) I am not convinced though it is actually faster than SoA sampling (actually I'm quite certain it's always a loss

[Mesa-dev] [PATCH 1/4] llvmpipe: (trivial) minimally simplify mask construction

2016-12-20 Thread sroland
From: Roland Scheidegger simd instruction sets usually have comparisons for equal, not unequal. So use a different comparison against the mask itself - which also means we don't need a all-zero as well as a all-one (for the pxor) reg. Also add code to avoid scalar expansion

[Mesa-dev] [PATCH 2/4] gallivm: use 2 srcs for 32->16bit conversions in lp_bld_conv_auto

2016-12-20 Thread sroland
From: Roland Scheidegger If we only feed one source vector at a time, we cannot use pack intrinsics (as we only have a 64bit destination dst vector). lp_bld_conv_auto is specifically designed to alter the length and number of destination vectors, so this works just fine (if

Re: [Mesa-dev] [PATCH 1/2] radeonsi: add Polaris12 support (v3)

2016-12-20 Thread Zhang, Jerry
Hi Alex and Marek, > > > > Reviewed-by: Marek Olšák > > > > Has it ever been tested with Mesa? > > It was tested when the code was originally written and the hybrid stack > (including > mesa MM) has been tested recently. I don't have a > polaris12 card at the moment. Just

[Mesa-dev] [Bug 99076] dEQP-GLES3.functional.negative_api.texture#teximage3d fails due to wrong Error code

2016-12-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99076 Jordan Justen changed: What|Removed |Added Resolution|WONTFIX |NOTOURBUG -- You

[Mesa-dev] [Bug 99076] dEQP-GLES3.functional.negative_api.texture#teximage3d fails due to wrong Error code

2016-12-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99076 Randy changed: What|Removed |Added Resolution|--- |WONTFIX

Re: [Mesa-dev] [PATCH] Mesa: Fix error code for glTexImage3D in GLES

2016-12-20 Thread Xu, Randy
Hi, Kenneth The patch https://android-review.googlesource.com/#/c/291429/ for GLES3.1 has been merged to dEQP master branch, so expect the GLES3 change should be merged also. In this case, we don't need this change in Mesa. Thanks, Randy -Original Message- From: Kenneth Graunke

[Mesa-dev] [PATCH V2] mesa: use gl_program for CurrentProgram rather than gl_shader_program

2016-12-20 Thread Timothy Arceri
This makes much more sense and should be more performant in some critical paths such as SSO validation which is called at draw time. Previously the CurrentProgram array could have contained multiple pointers to the same struct which was confusing and we would often need to fish out the

Re: [Mesa-dev] [PATCH] Mesa: Fix error code for glTexImage3D in GLES

2016-12-20 Thread Kenneth Graunke
On Wednesday, December 21, 2016 9:05:27 AM PST Randy Xu wrote: > From the OGLES 3.2 spec, Section 8.5 Texture Image Specification, page 158: > "An INVALID_OPERATION error is generated if a combination of > values for format, type, and internalformat is specified that is > not listed as a

Re: [Mesa-dev] [PATCH 09/12] nir: add a loop unrolling pass

2016-12-20 Thread Jason Ekstrand
On Tue, Dec 20, 2016 at 5:06 PM, Timothy Arceri < timothy.arc...@collabora.com> wrote: > On Tue, 2016-12-20 at 16:31 -0800, Jason Ekstrand wrote: > > On Sun, Dec 18, 2016 at 9:47 PM, Timothy Arceri > bora.com> wrote: > > > V2: > > > - tidy ups suggested by Connor. > > > -

Re: [Mesa-dev] [PATCH 09/12] nir: add a loop unrolling pass

2016-12-20 Thread Timothy Arceri
On Tue, 2016-12-20 at 16:31 -0800, Jason Ekstrand wrote: > On Sun, Dec 18, 2016 at 9:47 PM, Timothy Arceri bora.com> wrote: > > V2: > > - tidy ups suggested by Connor. > > - tidy up cloning logic and handle copy propagation > >  based of suggestion by Connor. > > - use

[Mesa-dev] [PATCH] Mesa: Fix error code for glTexImage3D in GLES

2016-12-20 Thread Randy Xu
From the OGLES 3.2 spec, Section 8.5 Texture Image Specification, page 158: "An INVALID_OPERATION error is generated if a combination of values for format, type, and internalformat is specified that is not listed as a valid combination in tables 8.2 or 8.3." It means that TexImage3D should

Re: [Mesa-dev] [PATCH v3] compiler/glsl: fix precision problem of tanh

2016-12-20 Thread Roland Scheidegger
Am 20.12.2016 um 22:12 schrieb Giuseppe Bilotta: > On Tue, Dec 20, 2016 at 2:17 AM, Matt Turner wrote: >> On Mon, Dec 19, 2016 at 5:12 PM, Giuseppe Bilotta >> wrote: >>> Just one question though —not knowing much of the shader language, can >>> I

Re: [Mesa-dev] [PATCH 04/12] nir: Add a LCSAA-pass

2016-12-20 Thread Timothy Arceri
On Tue, 2016-12-20 at 16:34 -0800, Jason Ekstrand wrote: > On Tue, Dec 20, 2016 at 3:36 PM, Timothy Arceri bora.com> wrote: > > On Tue, 2016-12-20 at 15:14 -0800, Jason Ekstrand wrote: > > > I did have a couple of "real" comments on this one that I'd like > > to > > > at

Re: [Mesa-dev] [Mesa-stable] [PATCH] Mesa: Fix error code for glTexImage3D in GLES

2016-12-20 Thread Xu, Randy
Thanks, Chad I will update the patch per your suggestion. -Original Message- From: Chad Versace [mailto:chadvers...@chromium.org] Sent: Wednesday, December 21, 2016 5:05 AM To: Xu, Randy Cc: Ian Romanick ; mesa-dev@lists.freedesktop.org;

Re: [Mesa-dev] [PATCH 04/12] nir: Add a LCSAA-pass

2016-12-20 Thread Jason Ekstrand
On Tue, Dec 20, 2016 at 3:36 PM, Timothy Arceri < timothy.arc...@collabora.com> wrote: > On Tue, 2016-12-20 at 15:14 -0800, Jason Ekstrand wrote: > > I did have a couple of "real" comments on this one that I'd like to > > at least see a reply to. Does look pretty good though. > > > > On Sun, Dec

Re: [Mesa-dev] [PATCH 09/12] nir: add a loop unrolling pass

2016-12-20 Thread Jason Ekstrand
On Sun, Dec 18, 2016 at 9:47 PM, Timothy Arceri < timothy.arc...@collabora.com> wrote: > V2: > - tidy ups suggested by Connor. > - tidy up cloning logic and handle copy propagation > based of suggestion by Connor. > - use nir_ssa_def_rewrite_uses to fix up lcssa phis > suggested by Connor. > -

Re: [Mesa-dev] [PATCH 04/12] nir: Add a LCSAA-pass

2016-12-20 Thread Timothy Arceri
On Tue, 2016-12-20 at 15:14 -0800, Jason Ekstrand wrote: > I did have a couple of "real" comments on this one that I'd like to > at least see a reply to.  Does look pretty good though. > > On Sun, Dec 18, 2016 at 9:47 PM, Timothy Arceri bora.com> wrote: > > From: Thomas

Re: [Mesa-dev] [PATCH 04/12] nir: Add a LCSAA-pass

2016-12-20 Thread Jason Ekstrand
I did have a couple of "real" comments on this one that I'd like to at least see a reply to. Does look pretty good though. On Sun, Dec 18, 2016 at 9:47 PM, Timothy Arceri < timothy.arc...@collabora.com> wrote: > From: Thomas Helland > > V2: Do a "depth first search"

Re: [Mesa-dev] [PATCH 03/12] nir: Add a loop analysis pass

2016-12-20 Thread Jason Ekstrand
I made a bunch more comments but they're all cosmetic. The one non-cosmetic thing I'd like to see changed before we merge is that we fix the case where the break is in the else. Feel free to grab the tip of my jenkins_vulkan branch and squash it in if you like the approach I took. Or you can do

Re: [Mesa-dev] [PATCH 5/6] radv: do not open random render node(s)

2016-12-20 Thread Bas Nieuwenhuizen
On Fri, Dec 2, 2016 at 5:31 PM, Emil Velikov wrote: > From: Emil Velikov > > drmGetDevices2() provides us with enough flexibility to build heuristics > upon. Opening a random node on the other hand will wake up the device, > regardless if

Re: [Mesa-dev] [PATCH] clover: Use Clang's diagnostics

2016-12-20 Thread Francisco Jerez
Vedran Miletić writes: > Presently errors from frontend are handled only if they occur in > clang::CompilerInvocation::CreateFromArgs(). This patch uses > clang::DiagnosticsEngine to detect errors such as invalid values for > Clang frontend arguments. > > Fixes Piglit's

[Mesa-dev] [PATCH 3/4] st/vdpau: add h264 constrained baseline profile

2016-12-20 Thread boyuan.zhang
From: Boyuan Zhang Signed-off-by: Boyuan Zhang --- src/gallium/state_trackers/vdpau/vdpau_private.h | 4 1 file changed, 4 insertions(+) diff --git a/src/gallium/state_trackers/vdpau/vdpau_private.h

[Mesa-dev] [PATCH 1/4] vl: add h264 constrained baseline profile

2016-12-20 Thread boyuan.zhang
From: Boyuan Zhang Signed-off-by: Boyuan Zhang --- src/gallium/auxiliary/util/u_video.h | 1 + src/gallium/include/pipe/p_video_enums.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/gallium/auxiliary/util/u_video.h

[Mesa-dev] [PATCH 2/4] radeon/uvd: add h264 constrained baseline support

2016-12-20 Thread boyuan.zhang
From: Boyuan Zhang Signed-off-by: Boyuan Zhang --- src/gallium/drivers/radeon/radeon_uvd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/radeon/radeon_uvd.c b/src/gallium/drivers/radeon/radeon_uvd.c index d5d654a..228c20d

[Mesa-dev] [PATCH 4/4] st/va: add h264 constrained baseline profile

2016-12-20 Thread boyuan.zhang
From: Boyuan Zhang Signed-off-by: Boyuan Zhang --- src/gallium/state_trackers/va/va_private.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/state_trackers/va/va_private.h b/src/gallium/state_trackers/va/va_private.h index

Re: [Mesa-dev] [PATCH 1/2] nir: update nir_lower_returns to only predicate instructions when needed

2016-12-20 Thread Timothy Arceri
On Tue, 2016-12-20 at 09:44 -0800, Jason Ekstrand wrote: > On Mon, Dec 19, 2016 at 8:18 PM, Timothy Arceri bora.com> wrote: > > Unless an if statement contains nested returns we can simply add > > any following instructions to the branch without the return. > > > > V2: fix

Re: [Mesa-dev] [PATCH v2 043/103] i965/vec4: handle 32 and 64 bit channels in liveness analysis

2016-12-20 Thread Francisco Jerez
"Juan A. Suarez Romero" writes: > On Mon, 2016-12-19 at 13:58 -0800, Francisco Jerez wrote: >> Iago Toral Quiroga writes: >> >> > From: "Juan A. Suarez Romero" >> > >> > Our current data flow analysis does not take into account

Re: [Mesa-dev] [PATCH 2/6] gallivm: optimize SoA AoS fallback fetch path a little

2016-12-20 Thread Roland Scheidegger
Am 20.12.2016 um 15:13 schrieb Jose Fonseca: > On 12/12/16 00:11, srol...@vmware.com wrote: >> From: Roland Scheidegger >> >> We should do transpose, not extract/insert, at least with "sufficient" >> amount >> of channels (for 4 channels, extract/insert shuffles generated >>

Re: [Mesa-dev] [PATCH v3] compiler/glsl: fix precision problem of tanh

2016-12-20 Thread Giuseppe Bilotta
On Tue, Dec 20, 2016 at 2:17 AM, Matt Turner wrote: > On Mon, Dec 19, 2016 at 5:12 PM, Giuseppe Bilotta > wrote: >> Just one question though —not knowing much of the shader language, can >> I expect expm1 to be available? > > No, expm1 doesn't

Re: [Mesa-dev] [Mesa-stable] [PATCH] Mesa: Fix error code for glTexImage3D in GLES

2016-12-20 Thread Chad Versace
On Mon 19 Dec 2016, Xu, Randy wrote: > Hi, Chad & Ian > > Thanks for your suggestion, and I understand and agree your point, > while the texsubimage_error_check (in teximage.c) calls > _mesa_error_check_format_and_type first, and if error happens, it will > return immediately (in 2175) and not

Re: [Mesa-dev] [PATCH] mesa: don't attempt to unlock an unlocked debug state mutex

2016-12-20 Thread Kenneth Graunke
On Tuesday, December 20, 2016 12:08:06 PM PST Jonathan Gray wrote: > Can someone push this to master? Pushed: To ssh://git.freedesktop.org/git/mesa/mesa ab8ea1b..62b8bcd master -> master Have you thought about applying for commit access? signature.asc Description: This is a digitally

Re: [Mesa-dev] [PATCH 2/9] i965: Consider surface resolves just before draw

2016-12-20 Thread Kenneth Graunke
On Tuesday, December 20, 2016 5:20:43 PM PST Pohjolainen, Topi wrote: > On Tue, Dec 20, 2016 at 03:05:14PM +, Ben Widawsky wrote: > > On 16-12-20 16:45:30, Topi Pohjolainen wrote: > > > If gl-state remains intact api_validate.c::_mesa_valid_to_render() > > > and brw_try_draw_prims() skip

Re: [Mesa-dev] [PATCH] glsl: Elminate the open-coded version of process_block_array_leaf

2016-12-20 Thread Alejandro Piñeiro
typo on the subject: "Eliminate" On 20/12/16 00:45, Timothy Arceri wrote: > Reviewed-by: Timothy Arceri > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org >

Re: [Mesa-dev] [PATCH] i965: Don't bail on vertex element processing if we need draw params.

2016-12-20 Thread Jason Ekstrand
Bah... Forgot this: Reviewed-by: Jason Ekstrand On Dec 20, 2016 13:12, "Jason Ekstrand" wrote: > On Dec 19, 2016 13:27, "Kenneth Graunke" wrote: > > BaseVertex, BaseInstance, DrawID, and some edge flag conditions need >

Re: [Mesa-dev] [PATCH] i965: Don't bail on vertex element processing if we need draw params.

2016-12-20 Thread Jason Ekstrand
On Dec 19, 2016 13:27, "Kenneth Graunke" wrote: BaseVertex, BaseInstance, DrawID, and some edge flag conditions need vertex buffer and elements structs. We can't bail early in this case. Gen4-7 already do this properly. Gen8+ did not. Thanks to Ilia Mirkin for helping

Re: [Mesa-dev] New GBM backend for dEQP

2016-12-20 Thread Chad Versace
On Mon 19 Dec 2016, Tapani Pälli wrote: > > > On 12/17/2016 03:58 AM, Chad Versace wrote: > > Happy Christmas to everyone who's busy squashing dEQP bugs. > > > > I wrote a new GBM backend for dEQP. I even submitted it to dEQP's > > upstream Gerrit. Pyry, dEQP's maintainer, told me over beer

Re: [Mesa-dev] [PATCH 1/2] radeonsi: add Polaris12 support (v3)

2016-12-20 Thread Alex Deucher
On Tue, Dec 20, 2016 at 1:34 PM, Marek Olšák wrote: > For the series: > > Reviewed-by: Marek Olšák > > Has it ever been tested with Mesa? It was tested when the code was originally written and the hybrid stack (including mesa MM) has been tested recently.

Re: [Mesa-dev] [PATCH] egl/dri2: implement query surface hook

2016-12-20 Thread Chad Versace
On Tue 20 Dec 2016, Tapani Pälli wrote: > This makes better guarantee that the values we return are > in sync what the underlying drawable currently has. > > Together with dEQP change bug #98327 this fixes following test: > >dEQP-EGL.functional.resize.surface_size.grow > > Signed-off-by:

Re: [Mesa-dev] [PATCH 1/2] radeonsi: add Polaris12 support (v3)

2016-12-20 Thread Marek Olšák
For the series: Reviewed-by: Marek Olšák Has it ever been tested with Mesa? Marek On Mon, Dec 19, 2016 at 11:45 PM, Alex Deucher wrote: > From: Junwei Zhang > > v2: use gfxip names for llvm 4.0+ > v3: use tonga for llvm <= 3.8

Re: [Mesa-dev] [PATCH 2/2] gallium-docs: Add documentation for when using several contexts

2016-12-20 Thread Marek Olšák
For the series: Reviewed-by: Marek Olšák Marek On Mon, Dec 19, 2016 at 8:09 PM, Axel Davy wrote: > Add documentation to explicit what can be expected and what is allowed > when using several contexts. > > Signed-off-by: Axel Davy > ---

Re: [Mesa-dev] [PATCH 1/2] nir: update nir_lower_returns to only predicate instructions when needed

2016-12-20 Thread Jason Ekstrand
On Mon, Dec 19, 2016 at 8:18 PM, Timothy Arceri < timothy.arc...@collabora.com> wrote: > Unless an if statement contains nested returns we can simply add > any following instructions to the branch without the return. > > V2: fix handling if_nested_return value when there is a sibling if/loop >

Re: [Mesa-dev] [PATCH] nir/algebraic: Add optimizations for "a == a && a CMP b"

2016-12-20 Thread Jason Ekstrand
On Tue, Dec 20, 2016 at 12:49 AM, Gustaw Smolarczyk wrote: > 2016-12-20 6:32 GMT+01:00 Jason Ekstrand : > > This sequence shows up The Talos Principal, at least under Vulkan, > > and prevents loop analysis from properly computing trip counts in a > >

Re: [Mesa-dev] [RFC PATCH] clover: Return correct CL_EVENT_REFERENCE_COUNT

2016-12-20 Thread Vedran Miletić
On 12/20/2016 11:59 AM, Jan Vesely wrote: > On Fri, 2016-12-16 at 13:43 -0800, Francisco Jerez wrote: >> Vedran Miletić writes: >> >>> Current implementation of event handling keeps an extra reference to >>> the hardware event, in addition to the reference returned via the

[Mesa-dev] [PATCH] clover: Use Clang's diagnostics

2016-12-20 Thread Vedran Miletić
Presently errors from frontend are handled only if they occur in clang::CompilerInvocation::CreateFromArgs(). This patch uses clang::DiagnosticsEngine to detect errors such as invalid values for Clang frontend arguments. Fixes Piglit's cl/program/build/fail/invalid-version-declaration.cl test.

Re: [Mesa-dev] [PATCH 1/2] radeonsi: add Polaris12 support (v3)

2016-12-20 Thread Alex Deucher
On Tue, Dec 20, 2016 at 6:49 AM, Andreas Boll wrote: > 2016-12-19 23:45 GMT+01:00 Alex Deucher : >> From: Junwei Zhang >> >> v2: use gfxip names for llvm 4.0+ >> v3: use tonga for llvm <= 3.8 >> >> Signed-off-by: Junwei

Re: [Mesa-dev] [PATCH 2/9] i965: Consider surface resolves just before draw

2016-12-20 Thread Pohjolainen, Topi
On Tue, Dec 20, 2016 at 03:05:14PM +, Ben Widawsky wrote: > On 16-12-20 16:45:30, Topi Pohjolainen wrote: > > If gl-state remains intact api_validate.c::_mesa_valid_to_render() > > and brw_try_draw_prims() skip checking if textures and shader > > images need resolves. > > This can lead to a

Re: [Mesa-dev] [PATCH 2/9] i965: Consider surface resolves just before draw

2016-12-20 Thread Ben Widawsky
On 16-12-20 16:45:30, Topi Pohjolainen wrote: If gl-state remains intact api_validate.c::_mesa_valid_to_render() and brw_try_draw_prims() skip checking if textures and shader images need resolves. This can lead to a case where a surface is left unresolved due to driver writing it internally

[Mesa-dev] i965/gen6+: Yet another blorp path - tex_(sub)image2d

2016-12-20 Thread Topi Pohjolainen
This series introduces new use of brw_blorp_blit_miptrees()/ brw_blorp_copy_miptrees(). Initial intention was to enable compression on SKL already at the time of upload. That, however, didn't help benchmarks but quite contrary regressed performance in some of them (Synmark OglDrvRer for one).

[Mesa-dev] [PATCH 6/9] i965: Add support for tex upload using gpu

2016-12-20 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/intel_tex.h | 8 + src/mesa/drivers/dri/i965/intel_tex_subimage.c | 194 + 2 files changed, 202 insertions(+) diff --git a/src/mesa/drivers/dri/i965/intel_tex.h

[Mesa-dev] [PATCH 2/9] i965: Consider surface resolves just before draw

2016-12-20 Thread Topi Pohjolainen
If gl-state remains intact api_validate.c::_mesa_valid_to_render() and brw_try_draw_prims() skip checking if textures and shader images need resolves. This can lead to a case where a surface is left unresolved due to driver writing it internally using blorp. Blorp doesn't trash global gl state but

[Mesa-dev] [PATCH 4/9] i965: Estimate batch space per shader stage

2016-12-20 Thread Topi Pohjolainen
Current estimate doesn't consider space needed for surface states and it only calculates for one shader stage. Each stage can have its own sampler and surface state configuration. While this is only matter of runtime dynamics we don't seem to hit it currently. However, this becomes visible with

[Mesa-dev] [PATCH 9/9] i965: Drop _mesa_meta_pbo_TexSubImage() even for gen < 6

2016-12-20 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/intel_tex_image.c| 24 +++- src/mesa/drivers/dri/i965/intel_tex_subimage.c | 19 +-- 2 files changed, 12 insertions(+), 31 deletions(-) diff --git

[Mesa-dev] [PATCH 5/9] meta: Refactor texture format translation

2016-12-20 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/common/meta_tex_subimage.c | 9 +++-- src/mesa/main/glformats.c | 15 +++ src/mesa/main/glformats.h | 4 3 files changed, 22 insertions(+), 6 deletions(-)

[Mesa-dev] [PATCH 3/9] intel/blorp/dbg: Name blit shaders for easy recognition in dumps

2016-12-20 Thread Topi Pohjolainen
Blorp clears already have an equivalent. Signed-off-by: Topi Pohjolainen --- src/intel/blorp/blorp_blit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c index 8abe3a8..9dcd33f 100644 ---

[Mesa-dev] [PATCH 7/9] i965/gen6+: Use blorp for tex_image_2d

2016-12-20 Thread Topi Pohjolainen
instead of _mesa_meta_pbo_TexSubImage(). While the newly introduced intel_texsubimage_gpu_copy() is capable of handling all the cases _mesa_meta_pbo_TexSubImage() can, it is also capable of handling everything intel_texsubimage_tiled_memcpy() does. And in addition part of the cases left to

[Mesa-dev] [PATCH 8/9] i965/gen6+: Use for tex_subimage_2d

2016-12-20 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/intel_tex_subimage.c | 9 + 1 file changed, 9 insertions(+) diff --git a/src/mesa/drivers/dri/i965/intel_tex_subimage.c b/src/mesa/drivers/dri/i965/intel_tex_subimage.c index f999a93..741637a

[Mesa-dev] [PATCH 1/9] i965: Refactor surface resolves prior to draw call

2016-12-20 Thread Topi Pohjolainen
and move it to brw_draw.c where it will be eventually used. Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_context.c | 174 +-- src/mesa/drivers/dri/i965/brw_draw.c| 178

Re: [Mesa-dev] [PATCH 2/6] gallivm: optimize SoA AoS fallback fetch path a little

2016-12-20 Thread Jose Fonseca
On 12/12/16 00:11, srol...@vmware.com wrote: From: Roland Scheidegger We should do transpose, not extract/insert, at least with "sufficient" amount of channels (for 4 channels, extract/insert shuffles generated otherwise look truly terrifying). Albeit we shouldn't fallback

Re: [Mesa-dev] [PATCH 1/6] gallivm: (trivial) handle non-aligned fetch for lp_build_fetch_rgba_soa

2016-12-20 Thread Jose Fonseca
On 12/12/16 00:11, srol...@vmware.com wrote: From: Roland Scheidegger soa fetch so far always assumed that data was aligned. However, we want to use this for vertex fetch, and data might not be aligned there, so handle it in this path too (basically just pass through

Re: [Mesa-dev] [PATCH 6/6] draw: use SoA fetch, not AoS one

2016-12-20 Thread Jose Fonseca
On 12/12/16 00:12, srol...@vmware.com wrote: From: Roland Scheidegger Now that there's some SoA fetch which never falls back, we should usually get results which are better or at least not worse (something like rgba32f will stay the same). I suppose though it might be worse

Re: [Mesa-dev] [PATCH 4/6] gallivm: provide soa fetch path handling formats with more than 32bit

2016-12-20 Thread Jose Fonseca
On 12/12/16 00:12, srol...@vmware.com wrote: From: Roland Scheidegger This previously always fell back to AoS conversion. Even for 4-float formats (which is the optimal case by far for that fallback case) this was suboptimal, since it meant the conversion couldn't be done

Re: [Mesa-dev] [PATCH 5/6] gallivm: generalize the compressed format soa fetch a bit

2016-12-20 Thread Jose Fonseca
On 12/12/16 00:12, srol...@vmware.com wrote: From: Roland Scheidegger This can now handle rgtc (unorm) too - this path no longer handles plain formats, but that's unnecessary they now all have their proper SoA unpack (this will still be dog-slow though due to the actual

Re: [Mesa-dev] [PATCH 1/2] radeonsi: add Polaris12 support (v3)

2016-12-20 Thread Andreas Boll
2016-12-19 23:45 GMT+01:00 Alex Deucher : > From: Junwei Zhang > > v2: use gfxip names for llvm 4.0+ > v3: use tonga for llvm <= 3.8 > > Signed-off-by: Junwei Zhang > Reviewed-by: Nicolai Hähnle >

Re: [Mesa-dev] [RFC PATCH] clover: Return correct CL_EVENT_REFERENCE_COUNT

2016-12-20 Thread Jan Vesely
On Fri, 2016-12-16 at 13:43 -0800, Francisco Jerez wrote: > Vedran Miletić writes: > > > Current implementation of event handling keeps an extra reference to > > the hardware event, in addition to the reference returned via the OpenCL > > API. This additional reference is

Re: [Mesa-dev] [PATCH] vulkan/wsi/x11: don't crash on null wsi x11 connection

2016-12-20 Thread Eero Tamminen
Hi, I think it fixed one of the segfaults with closed vkreplay window, but it still segfaults. For details, see backtrace here: https://github.com/LunarG/VulkanTools/issues/124 - Eero On 20.12.2016 05:59, Arda Coskunses wrote: Without this check driver crash when application

[Mesa-dev] [PATCH 52/70] st/mesa/glsl: change xfb_program field to last_vert_prog

2016-12-20 Thread Timothy Arceri
Now that the i965 backend doesn't depend on this field we can make it more generic and short circuit a bunch of code paths. The new field will be used in a following patch for another clean-up. --- src/compiler/glsl/link_varyings.cpp| 5 +++- src/compiler/glsl/linker.cpp |

[Mesa-dev] [PATCH 67/70] mesa/glsl/i965: set and get tes layouts directly to and from shader_info

2016-12-20 Thread Timothy Arceri
--- src/compiler/glsl/linker.cpp| 60 ++--- src/mesa/drivers/dri/i965/brw_tcs.c | 6 ++-- src/mesa/main/shaderapi.c | 15 +++--- 3 files changed, 37 insertions(+), 44 deletions(-) diff --git a/src/compiler/glsl/linker.cpp

[Mesa-dev] [PATCH 57/70] st/mesa/glsl: set early_fragment_tests directly in shader_info

2016-12-20 Thread Timothy Arceri
We also move EarlyFragmentTests out of the gl_shader_info struct as it is now only used by gl_shader. --- src/compiler/glsl/glsl_parser_extras.cpp | 2 +- src/compiler/glsl/linker.cpp | 4 ++-- src/mesa/main/mtypes.h | 12 ++--

[Mesa-dev] [PATCH 47/70] mesa/glsl: move ProgramResourceList to gl_shader_program_data

2016-12-20 Thread Timothy Arceri
We also move NumProgramResourceList at the same time. GLES does interface validation on SSO at runtime so we need to move this to be able to switch to storing gl_program pointers in CurrentProgram. --- src/compiler/glsl/linker.cpp | 20 +-- src/mesa/main/mtypes.h |

[Mesa-dev] [PATCH 49/70] mesa: use gl_program for CurrentProgram rather than gl_shader_program

2016-12-20 Thread Timothy Arceri
This makes much more sense and should be more performant in some critical paths such as SSO validation which is called at draw time. Previously the CurrentProgram array could have contained multiple pointers to the same struct which was confusing and we would often need to fish out the

[Mesa-dev] [PATCH 41/70] st/mesa: pass gl_program to st_bind_ssbos()

2016-12-20 Thread Timothy Arceri
We no longer need to pass gl_shader_program. Reviewed-by: Nicolai Hähnle --- src/mesa/state_tracker/st_atom_storagebuf.c | 30 ++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/mesa/state_tracker/st_atom_storagebuf.c

[Mesa-dev] [PATCH 60/70] mesa/glsl: move uses_gl_fragcoord to gl_shader

2016-12-20 Thread Timothy Arceri
This is only used by gl_linked_shader as a temp during linking so use a temp there instead. --- src/compiler/glsl/glsl_parser_extras.cpp | 2 +- src/compiler/glsl/linker.cpp | 12 +--- src/mesa/main/mtypes.h | 2 +- 3 files changed, 7 insertions(+), 9

[Mesa-dev] [PATCH 48/70] mesa: don't always set _NEW_PROGRAM when linking

2016-12-20 Thread Timothy Arceri
We only need to set it when linking was successful and the program being linked is currently active. The programs_in_use mask is just used as a flag for now but in a following patch we will use it to update the CurrentProgram array. --- src/mesa/main/shaderapi.c | 22 +- 1

[Mesa-dev] [PATCH 42/70] st/mesa/glsl: set num_images directly in shader_info

2016-12-20 Thread Timothy Arceri
This change also removes the now duplicate NumImages field. Reviewed-by: Nicolai Hähnle --- src/compiler/glsl/link_uniforms.cpp| 2 +- src/compiler/glsl/linker.cpp | 7 --- src/mesa/main/mtypes.h | 7 ---

[Mesa-dev] [PATCH 50/70] mesa/meta: rewrite _mesa_shader_program_use() and _mesa_program_use()

2016-12-20 Thread Timothy Arceri
These are rewritten to do what the function name suggests, that is _mesa_shader_program_use() sets the use of all stage and _mesa_program_use() sets the use of a single stage. This patch is split out to make review easier but will be squashed into mesa: use gl_program for CurrentProgram rather

[Mesa-dev] [PATCH 69/70] mesa/glsl: set and get cs layouts to and from shader_info

2016-12-20 Thread Timothy Arceri
--- src/compiler/glsl/linker.cpp | 35 +++ src/mesa/main/mtypes.h | 10 -- src/mesa/main/shaderapi.c| 6 ++ src/mesa/main/shaderobj.c| 2 -- 4 files changed, 17 insertions(+), 36 deletions(-) diff --git a/src/compiler/glsl/linker.cpp

[Mesa-dev] [PATCH 40/70] st/mesa/glsl: move SamplerTargets to gl_program

2016-12-20 Thread Timothy Arceri
This will help allow us to simplify the handling of samplers by storing them in a single location rather than duplicating them in both gl_linked_shader and gl_program. --- src/compiler/glsl/link_uniforms.cpp | 7 --- src/mesa/main/mtypes.h| 14 --

[Mesa-dev] [PATCH 62/70] mesa/glsl: move pixel_center_integer to gl_shader

2016-12-20 Thread Timothy Arceri
This is only used by gl_linked_shader as a temp during linking so use a temp there instead. --- src/compiler/glsl/glsl_parser_extras.cpp | 2 +- src/compiler/glsl/linker.cpp | 8 +++- src/mesa/main/mtypes.h | 3 +-- 3 files changed, 5 insertions(+), 8

[Mesa-dev] [PATCH 58/70] mesa/glsl: move ARB_fragment_coord_conventions_enable field

2016-12-20 Thread Timothy Arceri
This is only used by gl_shader not gl_linked_shader so move it there. --- src/compiler/glsl/glsl_parser_extras.cpp | 2 +- src/compiler/glsl/linker.cpp | 2 +- src/mesa/main/mtypes.h | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git

[Mesa-dev] [PATCH 43/70] st/mesa: stop passing gl_linked_shader to set_affected_state_flags()

2016-12-20 Thread Timothy Arceri
We now get everything we need from the gl_program param. Reviewed-by: Nicolai Hähnle --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp

[Mesa-dev] [PATCH 63/70] glsl: tidy up PostDepthCoverage shader field

2016-12-20 Thread Timothy Arceri
There is no reason for this to be in the shared gl_shader_info or to copy it to gl_program at the end of linking (its already there). --- src/compiler/glsl/glsl_parser_extras.cpp | 2 +- src/compiler/glsl/linker.cpp | 2 +- src/mesa/main/mtypes.h | 3 ++-

[Mesa-dev] [PATCH 53/70] mesa/glsl: set {clip, cull}_distance_array_size directly in gl_program

2016-12-20 Thread Timothy Arceri
There are some line wrapping violations here but those lines will get deleted in the following patch. --- src/compiler/glsl/glsl_to_nir.cpp | 2 -- src/compiler/glsl/linker.cpp| 32 +++ src/mesa/drivers/dri/i965/brw_vs.c | 2 +- src/mesa/main/mtypes.h

[Mesa-dev] [PATCH 66/70] mesa/glsl: move TransformFeedbackBufferStride to gl_shader

2016-12-20 Thread Timothy Arceri
Here we remove the single use of this field in gl_linked_shader which allows us to move the field out of gl_shader_info While we are at it we rewrite link_xfb_stride_layout_qualifiers() to be more clear. --- src/compiler/glsl/glsl_parser_extras.cpp | 2 +- src/compiler/glsl/link_varyings.cpp

[Mesa-dev] [PATCH 61/70] mesa/glsl: move origin_upper_left to gl_shader

2016-12-20 Thread Timothy Arceri
This is only used by gl_linked_shader as a temp during linking so use a temp there instead. --- src/compiler/glsl/glsl_parser_extras.cpp | 2 +- src/compiler/glsl/linker.cpp | 8 +++- src/mesa/main/mtypes.h | 9 + 3 files changed, 9 insertions(+), 10

[Mesa-dev] [PATCH 65/70] glsl: exit loop early if we find xfb layout qualifers

2016-12-20 Thread Timothy Arceri
--- src/compiler/glsl/link_varyings.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/glsl/link_varyings.cpp b/src/compiler/glsl/link_varyings.cpp index da51fd8..398e1da 100644 --- a/src/compiler/glsl/link_varyings.cpp +++ b/src/compiler/glsl/link_varyings.cpp @@ -120,6 +120,7

[Mesa-dev] [PATCH 70/70] mesa: remove unused gl_shader_info field from gl_linked_shader

2016-12-20 Thread Timothy Arceri
--- src/mesa/main/mtypes.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 9f84735..1a56382 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -2352,8 +2352,6 @@ struct gl_linked_shader struct exec_list

[Mesa-dev] [PATCH 54/70] glsl: use last_vert_prog to get last {clip, cull}_distance_array_size

2016-12-20 Thread Timothy Arceri
--- src/compiler/glsl/link_varyings.cpp | 6 -- src/compiler/glsl/linker.cpp| 14 -- src/mesa/main/mtypes.h | 7 --- 3 files changed, 4 insertions(+), 23 deletions(-) diff --git a/src/compiler/glsl/link_varyings.cpp

[Mesa-dev] [PATCH 56/70] mesa/glsl/i965: set and use tcs vertices_out directly

2016-12-20 Thread Timothy Arceri
--- src/compiler/glsl/linker.cpp| 25 - src/mesa/drivers/dri/i965/brw_tcs.c | 6 ++ src/mesa/main/shaderapi.c | 6 +- 3 files changed, 15 insertions(+), 22 deletions(-) diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp

[Mesa-dev] [PATCH 32/70] i965: make use of new is_arb_asm flag

2016-12-20 Thread Timothy Arceri
--- src/mesa/drivers/dri/i965/brw_vs.c | 11 +-- src/mesa/drivers/dri/i965/brw_wm.c | 13 ++--- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_vs.c b/src/mesa/drivers/dri/i965/brw_vs.c index c08be1f..dfa40ac 100644 ---

[Mesa-dev] [PATCH 30/70] i965: pass gl_program directly to brw_compile_tes()

2016-12-20 Thread Timothy Arceri
This is the only thing we use from gl_shader_program so pass it directly. --- src/mesa/drivers/dri/i965/brw_compiler.h | 2 +- src/mesa/drivers/dri/i965/brw_shader.cpp | 6 ++ src/mesa/drivers/dri/i965/brw_tes.c | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git

[Mesa-dev] [PATCH 64/70] glsl: set InnerCoverage directly in gl_program

2016-12-20 Thread Timothy Arceri
Also move out of the shared gl_shader_info. --- src/compiler/glsl/glsl_parser_extras.cpp | 2 +- src/compiler/glsl/linker.cpp | 3 +-- src/mesa/main/mtypes.h | 3 +-- src/mesa/main/shaderapi.c| 1 - 4 files changed, 3 insertions(+), 6 deletions(-)

[Mesa-dev] [PATCH 35/70] mesa: make _CurrentFragmentProgram a gl_program struct pointer

2016-12-20 Thread Timothy Arceri
Making this point to a gl_program struct rather than a gl_shader_program struct will allow use to later also make the CurrentProgram array hold gl_program structs which in turn will allow for code simpilifcation. --- src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 8 ++--

[Mesa-dev] [PATCH 37/70] mesa: simplify sampler setting code

2016-12-20 Thread Timothy Arceri
There is no need to loop over active samplers the code above this would have already exited if the sampler was inactive, or errored if the count was larger than the uniforms array size. --- src/mesa/main/uniform_query.cpp | 33 +++-- 1 file changed, 11 insertions(+),

[Mesa-dev] [PATCH 59/70] mesa/glsl: move redeclares_gl_fragcoord to gl_shader

2016-12-20 Thread Timothy Arceri
This is never used in gl_linked_shader other than as a temp during linking so just use a temp instead. --- src/compiler/glsl/glsl_parser_extras.cpp | 3 +-- src/compiler/glsl/linker.cpp | 21 - src/mesa/main/mtypes.h | 3 ++- 3 files changed, 11

  1   2   >