Re: [Mesa-dev] [PATCH] Added pbuffer hooks for surfaceless platform

2016-05-06 Thread Chad Versace
On 05/06/2016 03:39 PM, Stéphane Marchesin wrote: > On Fri, May 6, 2016 at 3:32 PM, Gurchetan Singh > wrote: >> This change enables the creation of pbuffer >> surfaces on the surfaceless platform. >> >> V2: Use double-buffered pbuffer configuration > > Reviewed-by:

Re: [Mesa-dev] [PATCH] Added pbuffer hooks for surfaceless platform

2016-05-06 Thread Stéphane Marchesin
On Fri, May 6, 2016 at 3:32 PM, Gurchetan Singh wrote: > This change enables the creation of pbuffer > surfaces on the surfaceless platform. > > V2: Use double-buffered pbuffer configuration Reviewed-by: Stéphane Marchesin Chad, do you also

[Mesa-dev] [PATCH] Added pbuffer hooks for surfaceless platform

2016-05-06 Thread Gurchetan Singh
This change enables the creation of pbuffer surfaces on the surfaceless platform. V2: Use double-buffered pbuffer configuration --- src/egl/drivers/dri2/egl_dri2.h | 8 +- src/egl/drivers/dri2/platform_surfaceless.c | 219 +++- 2 files changed, 222

Re: [Mesa-dev] [v4 02/11] i965: Relax assertion of halign == 16 for lossless compressed aux

2016-05-06 Thread Ben Widawsky
On Fri, May 06, 2016 at 10:19:58AM +0300, Pohjolainen, Topi wrote: > On Thu, May 05, 2016 at 10:59:16AM -0700, Ben Widawsky wrote: > > On Thu, May 05, 2016 at 10:51:32AM -0700, Ben Widawsky wrote: > > > On Thu, Apr 21, 2016 at 02:58:57PM +0300, Topi Pohjolainen wrote: > > > > Signed-off-by: Topi

[Mesa-dev] [PATCH] glsl: enforce invariant conditions for built-in variables

2016-05-06 Thread Lars Hamre
The conditions for which certain built-in special variables can be declared invariant were not being checked. OpenGL ES 1.00 specification "Invariance and linkage": For the built-in special variables, gl_FragCoord can only be declared invariant if and only if gl_Position is declared invariant.

Re: [Mesa-dev] [PATCH] gallium: enable intel jitevents profiling

2016-05-06 Thread Roland Scheidegger
Am 06.05.2016 um 21:51 schrieb Rowley, Timothy O: > Would like to get this small change reviewed to help with performance > measuring. > > Thanks. > > -Tim > >> On Mar 28, 2016, at 2:29 PM, Rowley, Timothy O >> wrote: >> >> LLVM when configured with "intel

Re: [Mesa-dev] [PATCH] gallium: enable intel jitevents profiling

2016-05-06 Thread Rowley, Timothy O
Would like to get this small change reviewed to help with performance measuring. Thanks. -Tim > On Mar 28, 2016, at 2:29 PM, Rowley, Timothy O > wrote: > > LLVM when configured with "intel jitevents" enabled can inform > VTune about dynamic code, so individual

Re: [Mesa-dev] [PATCH 12/14] gallium/radeon: add a heuristic for better (S)DMA performance

2016-05-06 Thread Marek Olšák
On Thu, May 5, 2016 at 1:43 AM, Marek Olšák wrote: > From: Marek Olšák > > --- > src/gallium/drivers/radeon/r600_pipe_common.c | 16 > src/gallium/drivers/radeon/radeon_winsys.h| 2 ++ > src/gallium/winsys/amdgpu/drm/amdgpu_cs.c |

[Mesa-dev] [PATCH] winsys/amdgpu: add back multithreaded command submission

2016-05-06 Thread Marek Olšák
From: Marek Olšák Ported from the initial amdgpu winsys from the private AMD branch. The thread creates the buffer list, submits IBs, and cleans up the submission context, which can also destroy buffers. 3-5% reduction in CPU overhead is expected for apps submitting a lot

Re: [Mesa-dev] [04.5/11] i965: Add flag telling if miptree is for client consumption

2016-05-06 Thread Pohjolainen, Topi
On Thu, May 05, 2016 at 07:08:15PM -0700, Ben Widawsky wrote: > On Mon, Apr 25, 2016 at 08:10:01PM +0300, Topi Pohjolainen wrote: > > Signed-off-by: Topi Pohjolainen > > --- > > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 7 --- > >

Re: [Mesa-dev] [PATCH v2 9/9] gbm: Add map/unmap functions

2016-05-06 Thread Eric Anholt
Rob Herring writes: > This adds map and unmap functions to GBM utilizing the DRIimage extension > mapImage/unmapImage functions or existing internal mapping for dumb > buffers. Unlike prior attempts, this version provides a region to map and > usage flags for the mapping. The

Re: [Mesa-dev] [PATCH v2 6/9] st/dri: Add support for DRIimage extension mapImage/unmapImage

2016-05-06 Thread Eric Anholt
Rob Herring writes: > Implement support for mapImage/unmapImage functions in version 12 of the > DRIimage extension. > > Signed-off-by: Rob Herring > --- > v2: > - Make READ flag optional > > src/gallium/state_trackers/dri/dri2.c | 43 >

[Mesa-dev] [AppVeyor] mesa master #1162 completed

2016-05-06 Thread AppVeyor
Build mesa 1162 completed Commit a1f698881e by Eric Anholt on 5/6/2016 1:04 AM: vc4: Add support for loading immediate values in QIR.\n\nThis will be used for resetting the uniform stream in the presence of\nbranching, but may also be useful as an optimization

Re: [Mesa-dev] [PATCH v2] glsl: Copy propagate in array index function parameters

2016-05-06 Thread Ilia Mirkin
Could you add something to piglit which tries this with AoA to make sure that your logic is right? On Fri, May 6, 2016 at 11:54 AM, Juan A. Suarez Romero wrote: > Copy propagate is not applied in function parameters when they are out > or inout. > > But if the parameter is

Re: [Mesa-dev] [PATCH] scons: Improve Python module dependency discovery.

2016-05-06 Thread Brian Paul
On 05/06/2016 10:04 AM, Jose Fonseca wrote: Several NIR scripts were using `from ... import ...` syntax, which wasn't supported. Using Python standard libary's modulefinder solves the problem with less effort and hacks. --- scons/custom.py | 27 +-- 1 file changed, 9

[Mesa-dev] [PATCH v2 3/3] i965: Stop splitting fma() prior to optimization

2016-05-06 Thread Jason Ekstrand
According to the GLSL spec, if the user uses the fma() intrinsic to generate a precise-consumed value, and you have it in your hardware, you shouldn't split it. For a while now, we've been splitting all ffma's up-front and then planned to fuse them later which isn't valid. Correctly handling the

[Mesa-dev] [PATCH] scons: Improve Python module dependency discovery.

2016-05-06 Thread Jose Fonseca
Several NIR scripts were using `from ... import ...` syntax, which wasn't supported. Using Python standard libary's modulefinder solves the problem with less effort and hacks. --- scons/custom.py | 27 +-- 1 file changed, 9 insertions(+), 18 deletions(-) diff --git

[Mesa-dev] [Bug 95296] nir_lower_double_packing.c:79:4: error: void function 'lower_double_pack_impl' should not return a value [-Wreturn-type]

2016-05-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=95296 --- Comment #2 from Jason Ekstrand --- (In reply to Jose Fonseca from comment #1) > GCC (at least 5.2.1) also throws an warning... > > src/compiler/nir/nir_lower_double_packing.c: In function >

[Mesa-dev] [PATCH v2] glsl: Copy propagate in array index function parameters

2016-05-06 Thread Juan A. Suarez Romero
Copy propagate is not applied in function parameters when they are out or inout. But if the parameter is an array, we can copy propagate the index array. This also fixes shaders@out-parameter-indexing piglit tests, that exposes a wrong handling of inout function parameters in Mesa. This commit

Re: [Mesa-dev] [PATCH] glsl: correctly handle inout parameters post function inlining

2016-05-06 Thread Lars Hamre
Sounds good to me, go ahead and push the new version! On Fri, May 6, 2016 at 10:44 AM, Juan A. Suarez Romero wrote: > On Fri, 2016-05-06 at 10:39 -0400, Lars Hamre wrote: >> Hi Juan, >> >> Sorry I missed that. >> >> It looks like your patch doesn't fix the out parameter

Re: [Mesa-dev] [PATCH] glsl: correctly handle inout parameters post function inlining

2016-05-06 Thread Juan A. Suarez Romero
On Fri, 2016-05-06 at 10:39 -0400, Lars Hamre wrote: > Hi Juan, > > Sorry I missed that. > > It looks like your patch doesn't fix the out parameter indexing for: > vs-inout-index-inout-mat2-col > vs-inout-index-inout-vec4-array > > I was able to extend your patch to get these tests passing by:

Re: [Mesa-dev] [PATCH] glsl: correctly handle inout parameters post function inlining

2016-05-06 Thread Ilia Mirkin
I think you want a loop there, peeling off all array dereferences, due to AoA (and maybe throw in some piglit tests to cover that). [Assuming AoA's can be function arguments... haven't checked the spec.] On Fri, May 6, 2016 at 10:39 AM, Lars Hamre wrote: > Hi Juan, > > Sorry

Re: [Mesa-dev] [PATCH] glsl: correctly handle inout parameters post function inlining

2016-05-06 Thread Lars Hamre
Hi Juan, Sorry I missed that. It looks like your patch doesn't fix the out parameter indexing for: vs-inout-index-inout-mat2-col vs-inout-index-inout-vec4-array I was able to extend your patch to get these tests passing by: - if the ir_array->array was a dereferenced_array, copy propagate

Re: [Mesa-dev] [PATCH] glsl: correctly handle inout parameters post function inlining

2016-05-06 Thread Juan A. Suarez Romero
On Fri, 2016-05-06 at 08:49 -0400, Lars Hamre wrote: > Inout parameters which depended on other inout parameters > where not assigned in the correct order. > > Fixes the following piglit tests in shaders/out-parameter-indexing: > vs-inout-index-inout-float-array > vs-inout-index-inout-mat2-col >

[Mesa-dev] [Bug 95294] Support importing R8 and GR88 dma_bufs on ARM

2016-05-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=95294 --- Comment #1 from Nicolas Dufresne --- Hey, just a note that Stanimir Varbanov reported on both gstreamer and mesa devel that he added that already for Qualcomm driver. As this is a Gallium driver, I suppose he also added

[Mesa-dev] [AppVeyor] mesa master #1161 failed

2016-05-06 Thread AppVeyor
Build mesa 1161 failed Commit 44de03b0f8 by Samuel Pitoiset on 5/6/2016 2:25 PM: nvc0: unreference images when the context is destroyed\n\nLike other resources, we need to unreference all images.\n\nSigned-off-by: Samuel Pitoiset

Re: [Mesa-dev] [PATCH] nvc0: unreference images when the context is destroyed

2016-05-06 Thread Ilia Mirkin
Reviewed-by: Ilia Mirkin On May 6, 2016 9:09 AM, "Samuel Pitoiset" wrote: > Like other resources, we need to unreference all images. > > Signed-off-by: Samuel Pitoiset > --- >

[Mesa-dev] [PATCH] nvc0: unreference images when the context is destroyed

2016-05-06 Thread Samuel Pitoiset
Like other resources, we need to unreference all images. Signed-off-by: Samuel Pitoiset --- src/gallium/drivers/nouveau/nvc0/nvc0_context.c | 4 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_context.c

[Mesa-dev] [PATCH] glsl: correctly handle inout parameters post function inlining

2016-05-06 Thread Lars Hamre
Inout parameters which depended on other inout parameters where not assigned in the correct order. Fixes the following piglit tests in shaders/out-parameter-indexing: vs-inout-index-inout-float-array vs-inout-index-inout-mat2-col vs-inout-index-inout-mat2-row vs-inout-index-inout-vec4

Re: [Mesa-dev] [PATCH demos] egl: Add es2eglkms demo

2016-05-06 Thread Hwang, Dongseong
Andreas, Adam, could you review? Br, DS On Fri, Apr 29, 2016 at 7:54 AM, Dongseong Hwang wrote: > This demo shows how ChromeOS renders OpenGL ES2 via kms, drm and gbm. > This demo consists of > 1. kms modesetting and vsync > 2. EGL and GLES2 context creation > 3. gbm

[Mesa-dev] [Bug 95296] nir_lower_double_packing.c:79:4: error: void function 'lower_double_pack_impl' should not return a value [-Wreturn-type]

2016-05-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=95296 Jose Fonseca changed: What|Removed |Added Status|NEW |RESOLVED

Re: [Mesa-dev] [PATCH 00/14] RadeonSI: SDMA texture copy rewrite

2016-05-06 Thread Michel Dänzer
On 06.05.2016 19:09, Marek Olšák wrote: > On Fri, May 6, 2016 at 12:01 PM, Michel Dänzer wrote: >> On 06.05.2016 02:01, Marek Olšák wrote: There is one more hardware limitation that can cause VM faults with T2L copies and needs a workaround. The exact workaround is

Re: [Mesa-dev] [PATCH 00/14] RadeonSI: SDMA texture copy rewrite

2016-05-06 Thread Marek Olšák
On Fri, May 6, 2016 at 12:01 PM, Michel Dänzer wrote: > On 06.05.2016 02:01, Marek Olšák wrote: >>> There is one more hardware limitation that can cause VM faults with T2L >>> copies and needs a workaround. The exact workaround is still under >>> discussion, but I think this

Re: [Mesa-dev] [PATCH] radeonsi: Compute correct LDS size for fragment shaders.

2016-05-06 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Thu, May 5, 2016 at 10:33 PM, Bas Nieuwenhuizen wrote: > No sure where the 36 came from, but we clearly need at least > 48 bytes per attribute per primitive. > > Signed-off-by: Bas Nieuwenhuizen

Re: [Mesa-dev] [PATCH 00/14] RadeonSI: SDMA texture copy rewrite

2016-05-06 Thread Michel Dänzer
On 06.05.2016 02:01, Marek Olšák wrote: >> There is one more hardware limitation that can cause VM faults with T2L >> copies and needs a workaround. The exact workaround is still under >> discussion, but I think this is good enough for review already. > > BTW, the T2L VM fault is completely

[Mesa-dev] [PATCH] glsl: use var with initializer on global var validation

2016-05-06 Thread Juan A. Suarez Romero
Currently, when cross validating global variables, all global variables seen in the shaders that are part of a program are saved in a table. When checking a variable this already exist in the table, we check both are initialized to the same value. If the already saved variable does not have an

[Mesa-dev] [v6 05/11] i965: Deferred allocation of mcs for lossless compressed

2016-05-06 Thread Topi Pohjolainen
Until now mcs was associated to single sampled buffers only for fast clear purposes and it was therefore the responsibility of the clear logic to allocate the aux buffer when needed. Now that normal 3D render or blorp blit may render with mcs enabled also, they need to prepare the mcs just as

Re: [Mesa-dev] [v4 04/11] i965: Add helper for lossless compression support

2016-05-06 Thread Pohjolainen, Topi
On Thu, May 05, 2016 at 11:17:41AM -0700, Ben Widawsky wrote: > On Thu, Apr 21, 2016 at 02:58:59PM +0300, Topi Pohjolainen wrote: > > v2: Check explicitly against base type of GL_FLOAT instead of > > using _mesa_is_format_integer_color(). Otherwise we miss > > GL_UNSIGNED_NORMALIZED. > >

[Mesa-dev] [Bug 95296] nir_lower_double_packing.c:79:4: error: void function 'lower_double_pack_impl' should not return a value [-Wreturn-type]

2016-05-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=95296 Bug ID: 95296 Summary: nir_lower_double_packing.c:79:4: error: void function 'lower_double_pack_impl' should not return a value [-Wreturn-type] Product: Mesa

Re: [Mesa-dev] [RFC] add MAINTAINERS and get_maintainer.pl script

2016-05-06 Thread Michel Dänzer
On 02.05.2016 20:01, Daniel Stone wrote: > On 2 May 2016 at 11:44, Rob Clark wrote: >> On Mon, May 2, 2016 at 2:15 AM, Michel Dänzer wrote: >>> So, what is this based on? Maybe I'm not looking in the right place, but >>> out of hundreds of changes in Git

Re: [Mesa-dev] [PATCH v2 56/59] i965/fs: push first double-based uniforms in push constant buffer

2016-05-06 Thread Samuel Iglesias Gonsálvez
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Kenneth gave his R-b to this patch on IRC: "i965/fs: push first double-based uniforms in push constant buffer" gets my R-b On 06/05/16 08:56, Samuel Iglesias Gonsálvez wrote: > When there is a mix of definitions of uniforms with 32-bit or >

[Mesa-dev] [PATCH] i965/gen8: Expose auxiliary mode resolver

2016-05-06 Thread Topi Pohjolainen
Also use the opportunity to drop the unused surface type argument. Signed-off-by: Topi Pohjolainen Reviewed-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_state.h | 2 ++ src/mesa/drivers/dri/i965/gen8_surface_state.c | 9 - 2

Re: [Mesa-dev] [RFC] add MAINTAINERS and get_maintainer.pl script

2016-05-06 Thread Michel Dänzer
On 04.05.2016 00:11, Rob Clark wrote: > On Tue, May 3, 2016 at 9:56 AM, Daniel Vetter wrote: >> On Mon, May 02, 2016 at 06:44:34AM -0400, Rob Clark wrote: >>> On Mon, May 2, 2016 at 2:15 AM, Michel Dänzer wrote: On 25.04.2016 21:36, Daniel Stone wrote:

[Mesa-dev] [Bug 95294] Support importing R8 and GR88 dma_bufs on ARM

2016-05-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=95294 Bug ID: 95294 Summary: Support importing R8 and GR88 dma_bufs on ARM Product: Mesa Version: unspecified Hardware: ARM OS: Linux (All) Status: NEW

Re: [Mesa-dev] [v4 02/11] i965: Relax assertion of halign == 16 for lossless compressed aux

2016-05-06 Thread Pohjolainen, Topi
On Thu, May 05, 2016 at 10:59:16AM -0700, Ben Widawsky wrote: > On Thu, May 05, 2016 at 10:51:32AM -0700, Ben Widawsky wrote: > > On Thu, Apr 21, 2016 at 02:58:57PM +0300, Topi Pohjolainen wrote: > > > Signed-off-by: Topi Pohjolainen > > > --- > > >

Re: [Mesa-dev] [v4 01/11] i965/blorp: Set full resolve for lossless compressed

2016-05-06 Thread Pohjolainen, Topi
On Thu, May 05, 2016 at 10:36:07AM -0700, Ben Widawsky wrote: > On Thu, Apr 21, 2016 at 02:58:56PM +0300, Topi Pohjolainen wrote: > > Signed-off-by: Topi Pohjolainen > > --- > > src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 5 - > > 1 file changed, 4

Re: [Mesa-dev] [v4 06/11] i965/blorp: Prepare blits for lossless compression

2016-05-06 Thread Pohjolainen, Topi
On Fri, May 06, 2016 at 09:30:27AM +0300, Pohjolainen, Topi wrote: > On Thu, May 05, 2016 at 11:01:54PM -0700, Ben Widawsky wrote: > > On Thu, Apr 21, 2016 at 02:59:01PM +0300, Topi Pohjolainen wrote: > > > Signed-off-by: Topi Pohjolainen > > > --- > > >

[Mesa-dev] [PATCH v2 56/59] i965/fs: push first double-based uniforms in push constant buffer

2016-05-06 Thread Samuel Iglesias Gonsálvez
When there is a mix of definitions of uniforms with 32-bit or 64-bit data type sizes, the driver ends up doing misaligned access to double based variables in the push constant buffer. To fix this, this patch pushes first all the 64-bit variables and then the rest. Then, all the variables would be

Re: [Mesa-dev] [v4 06/11] i965/blorp: Prepare blits for lossless compression

2016-05-06 Thread Pohjolainen, Topi
On Thu, May 05, 2016 at 11:01:54PM -0700, Ben Widawsky wrote: > On Thu, Apr 21, 2016 at 02:59:01PM +0300, Topi Pohjolainen wrote: > > Signed-off-by: Topi Pohjolainen > > --- > > src/mesa/drivers/dri/i965/brw_blorp.cpp | 2 +- > >

[Mesa-dev] [PATCH v2] nir: Put nir_variable's memory qualifiers in its own struct

2016-05-06 Thread Eduardo Lima Mitev
ARB_shader_storage_buffer_object allows for memory qualifiers defined for ARB_shader_image_load_store, to be applied to SSBOs using the same semantics. So, for clarity, we might want to take these qualifiers out into its own category, rather than putting them inside the 'image' specific struct. I

Re: [Mesa-dev] [v4 06/11] i965/blorp: Prepare blits for lossless compression

2016-05-06 Thread Ben Widawsky
On Thu, Apr 21, 2016 at 02:59:01PM +0300, Topi Pohjolainen wrote: > Signed-off-by: Topi Pohjolainen > --- > src/mesa/drivers/dri/i965/brw_blorp.cpp | 2 +- > src/mesa/drivers/dri/i965/brw_blorp_blit.cpp | 26 +- > 2 files changed, 22