Re: [Mesa-dev] i915: Enable EGL_KHR_{fence,wait}_sync

2016-07-14 Thread Mauro Rossi
2016-07-14 5:33 GMT+02:00 Mauro Rossi : > Sending patches to implement DRI2_Fence extension for i915, > to enable EGL_KHR_fence_sync and EGL_KHR_wait_sync. > > It is the step-by-step porting to i915 of i965/sync, > plus patch to support {server,client}_wait_sync without bound context. > > [PATCH 1

Re: [Mesa-dev] [PATCH 01/12] vl: add parameters for VAAPI encode

2016-07-14 Thread Christian König
Am 05.07.2016 um 13:17 schrieb Christian König: Am 01.07.2016 um 18:18 schrieb Andy Furniss: Christian König wrote: Am 01.07.2016 um 18:02 schrieb Andy Furniss: Christian König wrote: Am 01.07.2016 um 16:42 schrieb Andy Furniss: Boyuan Zhang wrote: Signed-off-by: Boyuan Zhang Is this sup

Re: [Mesa-dev] [ANNOUNCE] mesa 12.0.1

2016-07-14 Thread Eero Tamminen
Hi, On 12.07.2016 18:43, Brian Paul wrote: Done. Thanks! I was going through the fixed bugs list from the release notes, and noticed that at least this one wasn't marked as fixed although claimed to: https://bugs.freedesktop.org/show_bug.cgi?id=93840 Is fixed bugs list generated fr

Re: [Mesa-dev] [PATCH 01/11] vl: add parameters for VAAPI encode

2016-07-14 Thread Christian König
Am 14.07.2016 um 00:51 schrieb Boyuan Zhang: Allow to specify more parameters in the encoding interface which previously just hardcoded in the encoder Signed-off-by: Boyuan Zhang I'm still not convinced what exactly this is_idr flag should do, but for now I've reviewed and push patch 1, 3 a

Re: [Mesa-dev] [PATCH 06/11] st/va: add copy function for yv12 image to nv12 surface

2016-07-14 Thread Christian König
Am 14.07.2016 um 00:51 schrieb Boyuan Zhang: Add function to copy from yv12 image to nv12 surface for VAAPI putimage call. Existing function only work for copying from yv12 surface to nv12 image. Signed-off-by: Boyuan Zhang Two nitpicks here, the subject should read "vl/util: ..." and the co

[Mesa-dev] [PATCH 1/5] i965: Handle default interpolation modes and locations in NIR.

2016-07-14 Thread Kenneth Graunke
This consolidates a bunch of hacks in a single place - by setting the interpolation modes and locations on variables appropriately, we can simply trust them in the rest of the code. This avoids having to handle INTERP_QUALIFIER_NONE, gl_Color overrides, sample-shading overrides, and Gen4-5 centroi

[Mesa-dev] [PATCH 5/5] i965: Remove the emit_linterp() helper.

2016-07-14 Thread Kenneth Graunke
Rather than computing the barycentric mode each time we emit a LINTERP, we can simply compute it once, as soon as we know we're doing non-flat interpolation. At that point, emit_linterp() doesn't do much, so fold it into the call sites and drop it. Signed-off-by: Kenneth Graunke --- src/mesa/dr

[Mesa-dev] [PATCH 2/5] i965: Rename brw_wm_barycentric_interp_mode to brw_barycentric_mode.

2016-07-14 Thread Kenneth Graunke
brw_wm_barycentric_interp_mode is wordy, brw_barycentric_mode is less typing and suffers from fewer line wrapping problems. The enum values themselves don't really benefit from "WM" in the name, either. Put "BARYCENTRIC" first instead of at the end and drop "WM". Generated by: for file in *.c *

[Mesa-dev] [PATCH 3/5] i965: Make a barycentric_mode() helper function.

2016-07-14 Thread Kenneth Graunke
This combines two copies of basically the same code. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs.cpp | 100 +-- 1 file changed, 49 insertions(+), 51 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i96

[Mesa-dev] [PATCH 4/5] i965: Reduce the number of fs_reg(brw_reg) calls in LINTERP handling.

2016-07-14 Thread Kenneth Graunke
A bit tidier. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs.cpp | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index c6f193a..1f6ff59 100644 --- a/src/mesa/drivers/dri/

Re: [Mesa-dev] [PATCH 02/11] vl: add entry point

2016-07-14 Thread Christian König
Am 14.07.2016 um 00:51 schrieb Boyuan Zhang: Add entry point for encoding which previously hardcoded for decoding purpose only I still can't figure out why we would want this? The variable doesn't seem to be used in the whole patchset. Christian. Signed-off-by: Boyuan Zhang --- src/ga

[Mesa-dev] [PATCH] mesa: standardize naming Mesa3D, MESA -> Mesa

2016-07-14 Thread Vedran Miletić
Signed-off-by: Vedran Miletić --- docs/xlibdriver.html| 2 +- src/gallium/docs/source/drivers/openswr/faq.rst | 4 ++-- src/gallium/include/pipe/p_defines.h| 2 +- src/mesa/main/version.c | 2 +- 4 files changed, 5 insertions(+), 5 d

Re: [Mesa-dev] [PATCH] main: memcpy larger chunks in _mesa_propagate_uniforms_to_driver_storage

2016-07-14 Thread Nils Wallménius
Den 13 juli 2016 9:48 em skrev "Kenneth Graunke" : > > On Wednesday, July 13, 2016 1:53:26 PM PDT Nils Wallménius wrote: > > When possible, do the memcpy on larger blocks. This reduces cycles > > spent in _mesa_propagate_uniforms_to_driver_storage from > > 1.51 % to 0.62% according to perf during

[Mesa-dev] libglvnd support in Mesa 12

2016-07-14 Thread Stefan Dirsch
I've played around with libglvnd support in Mesa12. I'm using libglvnd from git master (commit id 1b30d15) and Mesa 12.0.1. It tries to open the last fallback libGLX_indirect. I workarounded this via setting __GLX_VENDOR_LIBRARY_NAME environment variable to "mesa". This resulted in a crash when tr

[Mesa-dev] [PATCH glx/glxglvnd] Avoid overflow in 'last' variable of FindGLXFunction(...)

2016-07-14 Thread Stefan Dirsch
This 'last' variable used in FindGLXFunction(...) may become negative, but has been defined as unsigned int resulting in an overflow, finally resulting in a segfault when accessing _glXDispatchTableStrings[...]. Fixed this by definining it as signed int. 'first' variable also needs to be defined as

[Mesa-dev] [PATCH mesa v2] vl: fix memory leak

2016-07-14 Thread Eric Engestrom
CovID: 1363008 Signed-off-by: Eric Engestrom --- v2: avoid using malloc() altogether (Christian König) --- src/gallium/auxiliary/vl/vl_bicubic_filter.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/gallium/auxiliary/vl/vl_bicubic_filter.c b/src/gallium/auxiliar

Re: [Mesa-dev] [PATCH 0/4] RadeonSI: Multithreaded shader

2016-07-14 Thread Trek
On Sat Jul 9 23:24:35 UTC 2016, Marek Olšák wrote: > I'm open to having the on-disk shader cache for radeonsi just because > of Borderlands 2. I have yet to discover other games that would > benefit from it. it is possible that wined3d does on-demand compilation? I read it in talks about gallium

Re: [Mesa-dev] mesa from git fails to compile

2016-07-14 Thread Pali Rohár
Any news? Or possible fix? On Sunday 10 July 2016 18:26:28 Jason Ekstrand wrote: > This smells like strange Python problems. Ccing the resident Python expert. > Hello, compiling mesa from git is failing on this error: > > Making all in isl > make[5]: Entering directory `/«PKGBUILDDIR»/build/dri/

Re: [Mesa-dev] [PATCH mesa] vl: fix memory leak

2016-07-14 Thread Eric Engestrom
On Wed, Jul 13, 2016 at 01:48:03PM +0200, Christian König wrote: > Good catch, since we need only 16 offsets I think we could simply allocate > it on the stack as well. > > Or am I missing something? You're entirely right, and that's a much better fix too. v2 coming in a few minutes. > > Regard

Re: [Mesa-dev] [PATCH] Revert "gallium: Force blend color to 16-byte alignment"

2016-07-14 Thread Nicolai Hähnle
Thanks! In addition to Emil's suggestion, please be sure to definitely reference the bugreport in the commit message: Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96835 With that fixed, the patch is Reviewed-by: Nicolai Hähnle On 13.07.2016 17:39, Tim Rowley wrote: This reverts c

Re: [Mesa-dev] [PATCH 1/3] freedreno/a2xx: Fix sign compare warnings

2016-07-14 Thread Rob Clark
I've pushed 'em, thx On Wed, Jul 13, 2016 at 1:03 PM, Francesco Ansanelli wrote: > Yes, please. > > Cheers, > Francesco ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 1/2] glsl/types: Fix function type comparison function

2016-07-14 Thread Iago Toral
Both patches are: Reviewed-by: Iago Toral Quiroga On Wed, 2016-07-13 at 14:28 -0700, Jason Ekstrand wrote: > It was returning true if the function types have different lengths > rather > than false.  This was new with the SPIR-V to NIR pass and I thought > I'd > fixed it a while ago but it may ha

Re: [Mesa-dev] [PATCH glx/glxglvnd] Avoid overflow in 'last' variable of FindGLXFunction(...)

2016-07-14 Thread Eric Engestrom
On Thu, Jul 14, 2016 at 03:21:20PM +0200, Stefan Dirsch wrote: > This 'last' variable used in FindGLXFunction(...) may become negative, > but has been defined as unsigned int resulting in an overflow, > finally resulting in a segfault when accessing _glXDispatchTableStrings[...]. > Fixed this by de

[Mesa-dev] [PATCH shader-db 3/4] si-report.py: report % change correctly for 0->N

2016-07-14 Thread Marek Olšák
From: Marek Olšák not all places are fixed --- si-report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/si-report.py b/si-report.py index c5855ff..523c452 100755 --- a/si-report.py +++ b/si-report.py @@ -39,7 +39,7 @@ def get_str(value, suffix = ' %'): def calculate_pe

[Mesa-dev] [PATCH shader-db 2/4] si-report.py: report scratch in terms of VGPRs = dwords per thread

2016-07-14 Thread Marek Olšák
From: Marek Olšák Scratch VGPRs = spilled VGPRs + private memory per thread + an incorrectly-counted multiple of spilled SGPRs --- si-report.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/si-report.py b/si-report.py index 3e39350..c5855ff 100755 --- a/

[Mesa-dev] [PATCH shader-db 4/4] si-report.py: add completely new shader statistics reporting

2016-07-14 Thread Marek Olšák
From: Marek Olšák We can remove the old reporting if people are OK with that. The old reporting has a bug that it reports 0->N changes as 0 % in several places. (should be inf %) The new reporting shows: - VGPR spilling shaders and apps (from the second file only) - the same for SGPRs - worst re

[Mesa-dev] [PATCH shader-db 1/4] si-report.py: show spilled SGPRs and VGPRs

2016-07-14 Thread Marek Olšák
From: Marek Olšák --- si-report.py | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/si-report.py b/si-report.py index 69af89e..3e39350 100755 --- a/si-report.py +++ b/si-report.py @@ -58,6 +58,8 @@ class si_stats: metrics = [ ('sgprs', 'SGPRS', ''),

Re: [Mesa-dev] mesa from git fails to compile

2016-07-14 Thread Eric Engestrom
On Thu, Jul 14, 2016 at 12:24:32PM +0200, Pali Rohár wrote: > Any news? Or possible fix? Have you tried Emil's suggestion, ie. upgrading to at least 0.8.0? Build system wizards: Any way to check the version and abort the compilation before running into this issue? If it helps, this prints the ve

[Mesa-dev] [PATCH] radeonsi: remove the DRAW_PREAMBLE packet

2016-07-14 Thread Nicolai Hähnle
From: Nicolai Hähnle According to firmware guys, the new sequence that we added for Polaris should work on all CIK parts, and should actually be faster on some parts. --- src/gallium/drivers/radeonsi/si_debug.c | 5 - src/gallium/drivers/radeonsi/si_state_draw.c | 7 +-- src/gallium

Re: [Mesa-dev] mesa from git fails to compile

2016-07-14 Thread Rob Clark
On Thu, Jul 14, 2016 at 10:41 AM, Eric Engestrom wrote: > On Thu, Jul 14, 2016 at 12:24:32PM +0200, Pali Rohár wrote: >> Any news? Or possible fix? > > Have you tried Emil's suggestion, ie. upgrading to at least 0.8.0? > > Build system wizards: > Any way to check the version and abort the compilat

Re: [Mesa-dev] mesa from git fails to compile

2016-07-14 Thread Eric Engestrom
On Thu, Jul 14, 2016 at 10:51:43AM -0400, Rob Clark wrote: > On Thu, Jul 14, 2016 at 10:41 AM, Eric Engestrom > wrote: > > On Thu, Jul 14, 2016 at 12:24:32PM +0200, Pali Rohár wrote: > >> Any news? Or possible fix? > > > > Have you tried Emil's suggestion, ie. upgrading to at least 0.8.0? > > > >

Re: [Mesa-dev] [PATCH 3/4] anv/blit2d: Copy with stencil sources when needed

2016-07-14 Thread Nanley Chery
On Fri, Jul 01, 2016 at 02:29:25PM -0700, Jason Ekstrand wrote: > seems fine to me > Should I use the Acked-by tag for this patch? Or push without a reviewer tag? Thanks, Nanley > On Fri, Jul 1, 2016 at 2:25 PM, Chad Versace wrote: > > > On Mon 27 Jun 2016, Nanley Chery wrote: > > > In the ne

[Mesa-dev] [PATCH] vl/dri3: fix a memory leak from front buffer

2016-07-14 Thread Leo Liu
Inspired by fix for mem leak of vdpau interop, resource_from_handle set texture reference count, that need to be decreased and released, recall there is a similar case for DRI3, that is with VA-API glx extension, there is temporary TFP(texture from pixmap), we target it through dma-buf. leak happen

Re: [Mesa-dev] [PATCH 02/11] vl: add entry point

2016-07-14 Thread Zhang, Boyuan
For example, in patch 5/11 when " VaCreateContext", we used to CALLOC_STRUCT for "pps" and "sps" whenever we see video format is H.264. This is fine for decode ONLY case. Now, since we added H.264 encoding, "pps" and "sps" shouldn't be allocated. So we need to use the entry_point to determine th

Re: [Mesa-dev] [PATCH 5/5] i965: Remove the emit_linterp() helper.

2016-07-14 Thread Matt Turner
On Thu, Jul 14, 2016 at 12:57 AM, Kenneth Graunke wrote: > Rather than computing the barycentric mode each time we emit a LINTERP, > we can simply compute it once, as soon as we know we're doing non-flat > interpolation. > > At that point, emit_linterp() doesn't do much, so fold it into the > call

[Mesa-dev] [PATCH v2 2/4] anv/image: Fix initialization of the ISL tiling

2016-07-14 Thread Nanley Chery
If an internal user creates an image with Vulkan tiling VK_IMAGE_TILING_OPTIMAL and an ISL tiling that isn't set, ISL will fail to create the image as anv_image_create_info::isl_tiling_flags will be an invalid value. Correct this by making anv_image_create_info::isl_tiling_flags an opt-in, filteri

Re: [Mesa-dev] mesa from git fails to compile

2016-07-14 Thread Emil Velikov
On 14 July 2016 at 15:41, Eric Engestrom wrote: > On Thu, Jul 14, 2016 at 12:24:32PM +0200, Pali Rohár wrote: >> Any news? Or possible fix? > > Have you tried Emil's suggestion, ie. upgrading to at least 0.8.0? > Other than this, I'm out of ideas. My python/mako isn't that great. > Build system w

Re: [Mesa-dev] [PATCH] gallium/dri: Add shared glapi to LIBADD on Android

2016-07-14 Thread Emil Velikov
On 14 July 2016 at 04:11, Tomasz Figa wrote: > Hi Emil, > > On Thu, Jul 14, 2016 at 1:28 AM, Emil Velikov > wrote: >> On 13 July 2016 at 04:29, Nicolas Boichat wrote: >>> From: Tomasz Figa >>> >>> An earlier patch fixed the problem for classic drivers, however Gallium >>> was still left broken

[Mesa-dev] GLSL Debugging

2016-07-14 Thread Rob Conde
Hello, It occurred to me that the llvmpipe might be a good basis for a GLSL debugger. Has anyone thought about this and how it might be approached? Rob Conde ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mai

Re: [Mesa-dev] [PATCH glx/glxglvnd] Avoid overflow in 'last' variable of FindGLXFunction(...)

2016-07-14 Thread Emil Velikov
On 14 July 2016 at 15:23, Eric Engestrom wrote: > On Thu, Jul 14, 2016 at 03:21:20PM +0200, Stefan Dirsch wrote: >> This 'last' variable used in FindGLXFunction(...) may become negative, >> but has been defined as unsigned int resulting in an overflow, >> finally resulting in a segfault when acces

Re: [Mesa-dev] GLSL Debugging

2016-07-14 Thread Roland Scheidegger
Am 14.07.2016 um 15:25 schrieb Rob Conde: > Hello, > >It occurred to me that the llvmpipe might be a good basis for a GLSL > debugger. Has anyone thought about this and how it might be approached? > > > Rob Conde I'm not entirely sure what exactly you want to debug, but if you just want to

Re: [Mesa-dev] GLSL Debugging

2016-07-14 Thread Rob Conde
I'll take a look at that. The idea would be to be able to step through a shader and watch values etc. Rob From: Roland Scheidegger Sent: Thursday, July 14, 2016 12:26:58 PM To: Rob Conde; mesa-dev@lists.freedesktop.org Subject: Re: [Mesa-dev] GLSL Debugging Am

[Mesa-dev] Required Mako version? (WAS: mesa from git fails to compile)

2016-07-14 Thread Eric Engestrom
On Thu, Jul 14, 2016 at 04:01:13PM +0100, Eric Engestrom wrote: > Oh right, there's already check for the Mako version, but the minimum is > currently set to 0.3.4 (configure.ac:92). > > Emil, you were the one to mention 0.8.0; is that the actual minimum, or > just a known working version? OK, so

Re: [Mesa-dev] GLSL Debugging

2016-07-14 Thread Ilia Mirkin
Note that various GPUs (definitely NVIDIA ones, but I think others too) also include instruction stepping/breakpoints/etc functionality. However it's never been clear to me how that sort of thing could be effectively exposed to userspace. -ilia On Thu, Jul 14, 2016 at 12:29 PM, Rob Conde wrot

Re: [Mesa-dev] GLSL Debugging

2016-07-14 Thread Rob Conde
If you have an Nvidia card and are using a sufficiently new version of opengl you can debug shaders in Visual Studio, but those are some significant limitations. It would also be nice to have a reference driver to help distinguish buggy driver behavior. From: ibm

Re: [Mesa-dev] GLSL Debugging

2016-07-14 Thread Ilia Mirkin
My point is ... any stepping you can do with softpipe/llvmpipe, you can also do with an NVIDIA G80+ GPU. The trick is in coming up with an interface to expose the debugging capability in a useful manner. An application might do any number of draws, each of which might generate any number of primit

Re: [Mesa-dev] [PATCH 02/11] vl: add entry point

2016-07-14 Thread Emil Velikov
On 14 July 2016 at 16:06, Zhang, Boyuan wrote: > For example, in patch 5/11 when " VaCreateContext", we used to CALLOC_STRUCT > for "pps" and "sps" whenever we see video format is H.264. This is fine for > decode ONLY case. Now, since we added H.264 encoding, "pps" and "sps" > shouldn't be allo

[Mesa-dev] [PATCH] compiler: Rename INTERP_QUALIFIER_* to INTERP_MODE_*.

2016-07-14 Thread Kenneth Graunke
Likewise, rename the enum type to glsl_interp_mode. Beyond the GLSL front-end, talking about "interpolation modes" seems more natural than "interpolation qualifiers" - in the IR, we're removed from how exactly the source language specifies how to interpolate an input. Also, SPIR-V calls these "de

Re: [Mesa-dev] [PATCH v2 2/4] anv/image: Fix initialization of the ISL tiling

2016-07-14 Thread Jason Ekstrand
rb On Thu, Jul 14, 2016 at 8:32 AM, Nanley Chery wrote: > If an internal user creates an image with Vulkan tiling > VK_IMAGE_TILING_OPTIMAL > and an ISL tiling that isn't set, ISL will fail to create the image as > anv_image_create_info::isl_tiling_flags will be an invalid value. > > Correct thi

Re: [Mesa-dev] [PATCH 1/2] glsl/types: Fix function type comparison function

2016-07-14 Thread Jason Ekstrand
On Thu, Jul 14, 2016 at 6:59 AM, Iago Toral wrote: > Both patches are: > Reviewed-by: Iago Toral Quiroga > Thanks! > > On Wed, 2016-07-13 at 14:28 -0700, Jason Ekstrand wrote: > > It was returning true if the function types have different lengths > > rather > > than false. This was new with

Re: [Mesa-dev] [PATCH 3/4] anv/blit2d: Copy with stencil sources when needed

2016-07-14 Thread Jason Ekstrand
R-B On Thu, Jul 14, 2016 at 8:02 AM, Nanley Chery wrote: > On Fri, Jul 01, 2016 at 02:29:25PM -0700, Jason Ekstrand wrote: > > seems fine to me > > > > Should I use the Acked-by tag for this patch? Or push without a reviewer > tag? > > Thanks, > Nanley > > > On Fri, Jul 1, 2016 at 2:25 PM, Chad

Re: [Mesa-dev] [PATCH 5/5] i965: Remove the emit_linterp() helper.

2016-07-14 Thread Kenneth Graunke
On Thursday, July 14, 2016 8:23:23 AM PDT Matt Turner wrote: > On Thu, Jul 14, 2016 at 12:57 AM, Kenneth Graunke > wrote: > > Rather than computing the barycentric mode each time we emit a LINTERP, > > we can simply compute it once, as soon as we know we're doing non-flat > > interpolation. > > >

[Mesa-dev] [PATCH 1/6] nir: Make a 'var' temporary in nir_lower_io.

2016-07-14 Thread Kenneth Graunke
Less typing and word wrapping issues than intrin->variables[0]->var. Signed-off-by: Kenneth Graunke --- src/compiler/nir/nir_lower_io.c | 28 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/src/compiler/nir/nir_lower_io.c b/src/compiler/nir/nir_lower_

[Mesa-dev] [PATCH 3/6] nir: Share destination rewriting and replacement code in IO lowering.

2016-07-14 Thread Kenneth Graunke
Both loads and atomics had identical code to rewrite destinations, and all cases had the same two lines to replace instructions. Signed-off-by: Kenneth Graunke --- src/compiler/nir/nir_lower_io.c | 44 ++--- 1 file changed, 19 insertions(+), 25 deletions(-) d

[Mesa-dev] [PATCH 4/6] nir: Drop bogus nir_var_shader_in case in nir_lower_io's store_op().

2016-07-14 Thread Kenneth Graunke
This can't happen, the caller asserts that mode is shader_out or shared. Signed-off-by: Kenneth Graunke --- src/compiler/nir/nir_lower_io.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/compiler/nir/nir_lower_io.c b/src/compiler/nir/nir_lower_io.c index 3a8587a..914e0e1 100644 --- a/src

[Mesa-dev] [PATCH 5/6] nir: Split nir_lower_io's input/output/atomic handling into helpers.

2016-07-14 Thread Kenneth Graunke
The original function was becoming a bit hard to read, with the details of creating and filling out load/store/atomic atomics all in one function. This patch makes helpers for creating each type of intrinsic, and also combines them with the *_op() helpers, as they're closely coupled and not too la

[Mesa-dev] [PATCH 6/6] nir: Update outdated intrinsic const_index comments.

2016-07-14 Thread Kenneth Graunke
Signed-off-by: Kenneth Graunke --- src/compiler/nir/nir_intrinsics.h | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/compiler/nir/nir_intrinsics.h b/src/compiler/nir/nir_intrinsics.h index ccca1ff..2f74555 100644 --- a/src/compiler/nir/nir_intrinsics.h ++

[Mesa-dev] [PATCH 2/6] nir: Share get_io_offset handling in nir_lower_io.

2016-07-14 Thread Kenneth Graunke
The load/store/atomic cases all duplicated the get_io_offset code, with a few tiny differences: stores didn't bother checking for per-vertex inputs, because they can't be stored to, and atomics didn't check at all, since shared variables aren't per-vertex. However, it's harmless to check, and allo

[Mesa-dev] [PATCH] main/shaderimage: image unit invalid if texture is incomplete, independently of the level

2016-07-14 Thread Alejandro Piñeiro
Without this commit, a image is considered valid if the level of the texture bound to the image is complete, something we can check as mesa save independently if it is "base incomplete" of "mipmap incomplete". But, from the OpenGL 4.3 Core Specification, section 8.25 ("Texture Image Loads and Stor

Re: [Mesa-dev] [PATCH 1/3] mesa: Add the infrastructure for KHR_texture_compression_astc_sliced_3d

2016-07-14 Thread Nanley Chery
On Thu, Jul 07, 2016 at 07:34:24PM -0700, Anuj Phogat wrote: > Signed-off-by: Anuj Phogat > --- > src/mapi/glapi/registry/gl.xml | 1 + > src/mesa/main/extensions_table.h | 1 + > src/mesa/main/mtypes.h | 1 + > src/mesa/main/teximage.c | 5 +++-- > 4 files changed, 6 insertio

Re: [Mesa-dev] [PATCH 3/3] docs: Mark KHR_texture_compression_astc_sliced_3d done on i965

2016-07-14 Thread Nanley Chery
On Thu, Jul 07, 2016 at 07:34:26PM -0700, Anuj Phogat wrote: > Signed-off-by: Anuj Phogat > --- Patches 2 and 3 are: Reviewed-by: Nanley Chery > docs/GL3.txt | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/docs/GL3.txt b/docs/GL3.txt > index ce34869..883604a 100644 > --- a/docs/GL3.t

Re: [Mesa-dev] [PATCH] isl/state: Divide the aux qpitch by 2

2016-07-14 Thread Chad Versace
On Thu 14 Jul 2016, Pohjolainen, Topi wrote: > > Subject says: "isl/state: Divide the aux qpitch by 2". Should be > divide by 4 or shift by 2. > > Otherwise: > > Reviewed-by: Topi Pohjolainen Ditto. Fix that and Reviewed-by: Chad Versace ___ mesa-d

Re: [Mesa-dev] [PATCH] isl: Fix the bs assertion in isl_tiling_get_info

2016-07-14 Thread Chad Versace
On Wed 13 Jul 2016, Jason Ekstrand wrote: > --- > src/intel/isl/isl.c | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) Reviewed-by: Chad Versace ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailm

Re: [Mesa-dev] [PATCH v4 01/34] isl: Fix the bs assertion in isl_tiling_get_info

2016-07-14 Thread Chad Versace
On Wed 13 Jul 2016, Jason Ekstrand wrote: > --- > src/intel/isl/isl.c | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) Reviewed-by: Chad Versace ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailma

Re: [Mesa-dev] [PATCH v4 09/34] i965: Add an isl_device to the brw_context

2016-07-14 Thread Chad Versace
On Wed 13 Jul 2016, Jason Ekstrand wrote: > --- > src/mesa/drivers/dri/i965/brw_context.c | 2 ++ > src/mesa/drivers/dri/i965/brw_context.h | 4 > 2 files changed, 6 insertions(+) Reviewed-by: Chad Versace ___ mesa-dev mailing list mesa-dev@lists.

[Mesa-dev] [PATCH V2 1/3] mesa: Add the infrastructure for KHR_texture_compression_astc_sliced_3d

2016-07-14 Thread Anuj Phogat
V2: Drop the changes to gl.xml. Signed-off-by: Anuj Phogat --- src/mesa/main/extensions_table.h | 1 + src/mesa/main/mtypes.h | 1 + src/mesa/main/teximage.c | 5 +++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/extensions_table.h b/src/mesa/ma

[Mesa-dev] [PATCH] st/nine: add missing copyright headers

2016-07-14 Thread Vedran Miletić
Few files were missing the copyright headers. This patch adds correct copyright headers according to the commit author and date. Signed-off-by: Vedran Miletić --- src/gallium/state_trackers/nine/nine_dump.c | 21 + src/gallium/state_trackers/nine/nine_dump.h | 21 ++

Re: [Mesa-dev] [PATCH V2 1/3] mesa: Add the infrastructure for KHR_texture_compression_astc_sliced_3d

2016-07-14 Thread Nanley Chery
On Thu, Jul 14, 2016 at 11:12:45AM -0700, Anuj Phogat wrote: > V2: Drop the changes to gl.xml. > > Signed-off-by: Anuj Phogat > --- > src/mesa/main/extensions_table.h | 1 + > src/mesa/main/mtypes.h | 1 + > src/mesa/main/teximage.c | 5 +++-- > 3 files changed, 5 insertions(+)

Re: [Mesa-dev] [PATCH v4 11/34] i965/miptree: Add a helper for getting the ISL clear color from a miptree

2016-07-14 Thread Chad Versace
On Wed 13 Jul 2016, Jason Ekstrand wrote: > Reviewed-by: Topi Pohjolainen > --- > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 24 > src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 4 > 2 files changed, 28 insertions(+) > > diff --git a/src/mesa/drivers/dri/i965

Re: [Mesa-dev] [PATCH v4 10/34] i965/miptree: Add a helper for getting an isl_surf from a miptree

2016-07-14 Thread Chad Versace
On Wed 13 Jul 2016, Jason Ekstrand wrote: > Reviewed-by: Topi Pohjolainen > --- > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 175 > +- > src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 6 + > 2 files changed, 179 insertions(+), 2 deletions(-) > > diff --git a/src/

Re: [Mesa-dev] [PATCH v4 10/34] i965/miptree: Add a helper for getting an isl_surf from a miptree

2016-07-14 Thread Jason Ekstrand
On Thu, Jul 14, 2016 at 11:42 AM, Chad Versace wrote: > On Wed 13 Jul 2016, Jason Ekstrand wrote: > > Reviewed-by: Topi Pohjolainen > > --- > > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 175 > +- > > src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 6 + > > 2 file

Re: [Mesa-dev] [PATCH V2 1/3] mesa: Add the infrastructure for KHR_texture_compression_astc_sliced_3d

2016-07-14 Thread Anuj Phogat
On Thu, Jul 14, 2016 at 11:30 AM, Nanley Chery wrote: > On Thu, Jul 14, 2016 at 11:12:45AM -0700, Anuj Phogat wrote: >> V2: Drop the changes to gl.xml. >> >> Signed-off-by: Anuj Phogat >> --- >> src/mesa/main/extensions_table.h | 1 + >> src/mesa/main/mtypes.h | 1 + >> src/mesa/main/t

[Mesa-dev] [PATCH] gallium/u_queue: add optional cleanup callback

2016-07-14 Thread Rob Clark
Adds a second optional cleanup callback, called after the fence is signaled. This is needed if, for example, the queue has the last reference to the object that embeds the util_queue_fence. In this case we cannot drop the ref in the main callback, since that would result in the fence being destro

Re: [Mesa-dev] [PATCH] main/shaderimage: image unit invalid if texture is incomplete, independently of the level

2016-07-14 Thread Francisco Jerez
Alejandro Piñeiro writes: > Without this commit, a image is considered valid if the level of the > texture bound to the image is complete, something we can check as mesa > save independently if it is "base incomplete" of "mipmap incomplete". > > But, from the OpenGL 4.3 Core Specification, sectio

Re: [Mesa-dev] [PATCH 1/6] nir: Make a 'var' temporary in nir_lower_io.

2016-07-14 Thread Jason Ekstrand
On Thu, Jul 14, 2016 at 10:49 AM, Kenneth Graunke wrote: > Less typing and word wrapping issues than intrin->variables[0]->var. > > Signed-off-by: Kenneth Graunke > --- > src/compiler/nir/nir_lower_io.c | 28 > 1 file changed, 12 insertions(+), 16 deletions(-) > > d

Re: [Mesa-dev] [PATCH 3/6] nir: Share destination rewriting and replacement code in IO lowering.

2016-07-14 Thread Jason Ekstrand
On Thu, Jul 14, 2016 at 10:49 AM, Kenneth Graunke wrote: > Both loads and atomics had identical code to rewrite destinations, > and all cases had the same two lines to replace instructions. > > Signed-off-by: Kenneth Graunke > --- > src/compiler/nir/nir_lower_io.c | 44 > ++-

Re: [Mesa-dev] [PATCH 5/6] nir: Split nir_lower_io's input/output/atomic handling into helpers.

2016-07-14 Thread Jason Ekstrand
On Thu, Jul 14, 2016 at 10:49 AM, Kenneth Graunke wrote: > The original function was becoming a bit hard to read, with the details > of creating and filling out load/store/atomic atomics all in one > function. > > This patch makes helpers for creating each type of intrinsic, and also > combines t

Re: [Mesa-dev] [PATCH 6/6] nir: Update outdated intrinsic const_index comments.

2016-07-14 Thread Jason Ekstrand
I gave a few trivial comments. Series is Reviewed-by: Jason Ekstrand On Thu, Jul 14, 2016 at 10:49 AM, Kenneth Graunke wrote: > Signed-off-by: Kenneth Graunke > --- > src/compiler/nir/nir_intrinsics.h | 16 +--- > 1 file changed, 9 insertions(+), 7 deletions(-) > > diff --git a/

[Mesa-dev] [PATCH] mesa/st: reduce size of state->st bitmask

2016-07-14 Thread Rob Clark
In d035d50 this changed to 64b.. which I'm pretty sure was unintentional. Revert it back to 32b so the entire state struct is a nice round 64b (cache-line size). (Note sure that it would actually be measurable, but I did notice that check_state() was hot in some benchmarks.) Signed-off-by: Rob C

Re: [Mesa-dev] [PATCH] mesa/st: reduce size of state->st bitmask

2016-07-14 Thread Gustaw Smolarczyk
2016-07-14 22:14 GMT+02:00 Rob Clark : > In d035d50 this changed to 64b.. which I'm pretty sure was > unintentional. Revert it back to 32b so the entire state struct > is a nice round 64b (cache-line size). Actually, cache line size, at least on most x86 and ARM processors, is 64B (bytes) not 64b

Re: [Mesa-dev] [PATCH] swrast: fix active attribs with atifragshader

2016-07-14 Thread Miklós Máté
On 07/07/2016 07:11 PM, Miklós Máté wrote: On 06/26/2016 09:48 PM, Miklós Máté wrote: Only include the ones that can be used by the shader. This fixes texture coordinates, which were completely wrong, because WPOS was included in the list of attribs. It also increases performance noticeably. S

Re: [Mesa-dev] [PATCH] mesa/st: reduce size of state->st bitmask

2016-07-14 Thread Rob Clark
On Thu, Jul 14, 2016 at 4:41 PM, Gustaw Smolarczyk wrote: > 2016-07-14 22:14 GMT+02:00 Rob Clark : >> In d035d50 this changed to 64b.. which I'm pretty sure was >> unintentional. Revert it back to 32b so the entire state struct >> is a nice round 64b (cache-line size). > Actually, cache line size

Re: [Mesa-dev] [PATCH v4 10/34] i965/miptree: Add a helper for getting an isl_surf from a miptree

2016-07-14 Thread Jason Ekstrand
On Thu, Jul 14, 2016 at 11:56 AM, Jason Ekstrand wrote: > > > On Thu, Jul 14, 2016 at 11:42 AM, Chad Versace > wrote: > >> On Wed 13 Jul 2016, Jason Ekstrand wrote: >> > Reviewed-by: Topi Pohjolainen >> > --- >> > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 175 >> +

Re: [Mesa-dev] [PATCH v4 10/34] i965/miptree: Add a helper for getting an isl_surf from a miptree

2016-07-14 Thread Chad Versace
On Thu 14 Jul 2016, Jason Ekstrand wrote: > On Thu, Jul 14, 2016 at 11:42 AM, Chad Versace > wrote: > > > On Wed 13 Jul 2016, Jason Ekstrand wrote: > > > Reviewed-by: Topi Pohjolainen > > > --- > > > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 175 > > +- > > > src/m

Re: [Mesa-dev] [PATCH v4 10/34] i965/miptree: Add a helper for getting an isl_surf from a miptree

2016-07-14 Thread Chad Versace
On Thu 14 Jul 2016, Jason Ekstrand wrote: > On Thu, Jul 14, 2016 at 11:56 AM, Jason Ekstrand > wrote: > > > > > > > On Thu, Jul 14, 2016 at 11:42 AM, Chad Versace > > wrote: > > > >> On Wed 13 Jul 2016, Jason Ekstrand wrote: > >> > Reviewed-by: Topi Pohjolainen > >> > --- > >> > src/mesa/drive

Re: [Mesa-dev] [PATCH v4 12/34] i965/miptree: Add a helper for getting the aux isl_surf from a miptree

2016-07-14 Thread Chad Versace
On Wed 13 Jul 2016, Jason Ekstrand wrote: > Reviewed-by: Topi Pohjolainen > --- > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 120 > ++ > src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 5 ++ > 2 files changed, 125 insertions(+) > > diff --git a/src/mesa/drivers/dr

[Mesa-dev] [PATCH 2/2] st/vdapu: use lanczos filter for scaling

2016-07-14 Thread Nayan Deshmukh
HIGH_QUALITY_SCALING_L2 to HIGH_QUALTIY_SCALING_L9 uses lanczos filter with number representing the size of the sinc window. Signed-off-by: Nayan Deshmukh --- src/gallium/state_trackers/vdpau/mixer.c | 150 ++- src/gallium/state_trackers/vdpau/query.c | 8 ++

[Mesa-dev] [PATCH 0/2] Implement lanczos scaling

2016-07-14 Thread Nayan Deshmukh
Hi guys, I have tried to implement a simple lanczos filter but I am getting line artifacts in the output. I was not able to spot the error even after going over the code many times. Please have a look at code and suggest changes. Thanks, Nayan. Nayan Deshmukh (2): vl: add a lanczos interpolat

[Mesa-dev] [PATCH 1/2] vl: add a lanczos interpolation filter

2016-07-14 Thread Nayan Deshmukh
Signed-off-by: Nayan Deshmukh --- src/gallium/auxiliary/Makefile.sources | 2 + src/gallium/auxiliary/vl/vl_lanczos_filter.c | 436 +++ src/gallium/auxiliary/vl/vl_lanczos_filter.h | 63 3 files changed, 501 insertions(+) create mode 100755 src/gallium/auxil

[Mesa-dev] [PATCH 05/11] st/va: add encode entrypoint

2016-07-14 Thread Boyuan Zhang
VAAPI passes PIPE_VIDEO_ENTRYPOINT_ENCODE as entry point for encoding case. We will save this encode entry point in config. config_id was used as profile previously. Now, config has both profile and entrypoint field, and config_id is used to get the config object. Later on, we pass this entrypoi

[Mesa-dev] [PATCH 09/11] st/va: add functions for VAAPI encode

2016-07-14 Thread Boyuan Zhang
Add necessary functions/changes for VAAPI encoding to buffer and picture. These changes will allow driver to handle all Vaapi encode related operations. This patch doesn't change the Vaapi decode behaviour. Signed-off-by: Boyuan Zhang --- src/gallium/state_trackers/va/buffer.c | 6 ++ sr

[Mesa-dev] [PATCH 07/11] st/va: add conversion for yv12 to nv12in putimage

2016-07-14 Thread Boyuan Zhang
For putimage call, if image format is yv12 (or IYUV with U V field swap) and surface format is nv12, then we need to convert yv12 to nv12 and then copy the converted data from image to surface. We can't use the existing logic where surface is destroyed and re-created with yv12 format. Signed-of

[Mesa-dev] [PATCH 11/11] st/va: enable h264 VAAPI encode

2016-07-14 Thread Boyuan Zhang
Enable H.264 VAAPI encoding through config. Currently only H.264 baseline is supported. Signed-off-by: Boyuan Zhang --- src/gallium/state_trackers/va/config.c | 32 ++-- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/src/gallium/state_trackers/va/con

[Mesa-dev] [PATCH 02/11] vl: add entry point

2016-07-14 Thread Boyuan Zhang
Add entrypoint to distinguish H.264 decode and encode. For example, in patch 5/11 when is calling "VaCreateContext", "pps" and "sps" shouldn't be allocated for H.264 encoding. So we need to use the entry_point to determine this is H.264 decode or H.264 encode. We can use config to determine the

[Mesa-dev] [PATCH 06/11] vl/util: add copy func for yv12image to nv12surface

2016-07-14 Thread Boyuan Zhang
Add function to copy from yv12 image to nv12 surface for VAAPI putimage call. We need this function in VaPutImage call where copying from yv12 image to nv12 surface for encoding. Existing function can't be used because it only work for copying from yv12 surface to nv12 image in Vaapi. Signed-of

[Mesa-dev] [PATCH 10/11] st/va: add preset values for VAAPI encode

2016-07-14 Thread Boyuan Zhang
Add some hardcoded values hardware needs mainly for rate control purpose. With previously hardcoded values for OMX, the rate control result is not correct. This change fixed the rate control result by setting correct values for Vaapi. Signed-off-by: Boyuan Zhang --- src/gallium/state_trackers/

Re: [Mesa-dev] [PATCH 02/11] vl: add entry point

2016-07-14 Thread Zhang, Boyuan
Thanks for the suggestion Emil. I modified each un-submitted patch based on the article you provided. Please see the newly submitted patch set. Regards, Boyuan -Original Message- From: Emil Velikov [mailto:emil.l.veli...@gmail.com] Sent: July-14-16 1:07 PM To: Zhang, Boyuan Cc: Christia

Re: [Mesa-dev] [PATCH 06/11] st/va: add copy function for yv12 image to nv12 surface

2016-07-14 Thread Zhang, Boyuan
Fixed both subject and coding style in newly submitted patch set. Regards, Boyuan -Original Message- From: Christian König [mailto:deathsim...@vodafone.de] Sent: July-14-16 3:56 AM To: Zhang, Boyuan; mesa-dev@lists.freedesktop.org Subject: Re: [PATCH 06/11] st/va: add copy function for y

Re: [Mesa-dev] [PATCH v4 12/34] i965/miptree: Add a helper for getting the aux isl_surf from a miptree

2016-07-14 Thread Jason Ekstrand
On Thu, Jul 14, 2016 at 1:54 PM, Chad Versace wrote: > On Wed 13 Jul 2016, Jason Ekstrand wrote: > > Reviewed-by: Topi Pohjolainen > > --- > > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 120 > ++ > > src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 5 ++ > > 2 file

[Mesa-dev] [PATCH 08/11] st/va: get rate control method from configattrib

2016-07-14 Thread Boyuan Zhang
Rate control method is passed from app to driver through config attrib list. That is why we need to store this rate control method to config. And later on, we will pass this value to context->desc.h264enc.rate_ctrl.rate_ctrl_method. Signed-off-by: Boyuan Zhang --- src/gallium/state_trackers/va

  1   2   >