Re: [Mesa-dev] [PATCH v2] mesa/main: Fix missing return in non void function

2016-08-25 Thread Alejandro Piñeiro
On 25/08/16 23:48, Tobias Klausmann wrote: > This was found by obs: > I: Program returns random data in a function > E: Mesa no-return-in-nonvoid-function main/program_resource.c:109 > > Signed-off-by: Tobias Klausmann > Reviewed-by: Ian Romanick > --- > V2: > Remove the !, cosmetic change, as

Re: [Mesa-dev] [PATCH] mesa/main: missing return in a non-void function

2016-08-25 Thread Alejandro Piñeiro
On 26/08/16 08:38, Alejandro Piñeiro wrote: > On 25/08/16 22:38, Ian Romanick wrote: >> On 08/25/2016 08:19 AM, Emil Velikov wrote: >>> On 25 August 2016 at 13:24, Francesco Ansanelli wrote: Signed-off-by: Francesco Ansanelli --- src/mesa/main/program_resource.c |1 + 1 f

Re: [Mesa-dev] [PATCH] mesa/main: missing return in a non-void function

2016-08-25 Thread Alejandro Piñeiro
On 25/08/16 22:38, Ian Romanick wrote: > On 08/25/2016 08:19 AM, Emil Velikov wrote: >> On 25 August 2016 at 13:24, Francesco Ansanelli wrote: >>> Signed-off-by: Francesco Ansanelli >>> --- >>> src/mesa/main/program_resource.c |1 + >>> 1 file changed, 1 insertion(+) >>> >>> diff --git a/src

Re: [Mesa-dev] [PATCH 0/4] Resolving Android + desktop OpenGL 'hack'

2016-08-25 Thread Tomasz Figa
On Fri, Aug 26, 2016 at 1:06 PM, Ryan Houdek wrote: > Dolphin Emulator does ;) Do we really have any devices that provide desktop OpenGL? If yes, any idea how front buffers are implemented there? Android's windowing system is quite specific and in my understanding it generally provides only a bac

[Mesa-dev] [PATCH] st/vdpau: use temporary buffers while applying filters

2016-08-25 Thread Nayan Deshmukh
We use temporary buffers so that we don't read and write to the same surface at the same time. We don't need to use linear layout now. Signed-off-by: Nayan Deshmukh --- src/gallium/state_trackers/vdpau/mixer.c | 87 ++-- 1 file changed, 59 insertions(+), 28 deletions(

Re: [Mesa-dev] [PATCH 00/31] i965: Separate blorp from the rest of the driver

2016-08-25 Thread Jason Ekstrand
On Aug 25, 2016 9:41 PM, "Pohjolainen, Topi" wrote: > > On Thu, Aug 25, 2016 at 02:34:37PM -0700, Jason Ekstrand wrote: > >On Thu, Aug 25, 2016 at 1:10 AM, Pohjolainen, Topi > ><[1]topi.pohjolai...@gmail.com> wrote: > > > >On Fri, Aug 19, 2016 at 09:55:37AM -0700, Jason Ekstrand wrote:

Re: [Mesa-dev] [PATCH] isl: Allow multisampled array textures

2016-08-25 Thread Pohjolainen, Topi
On Thu, Aug 25, 2016 at 03:58:24PM -0700, Jason Ekstrand wrote: > This probably isn't the only thing that needs to be done to get > multisampled array textures working in Vulkan but I think this is all that > ISL really needs and it does fix 8 of the new CTS tests. Reviewed-by: Topi Pohjolainen

Re: [Mesa-dev] [PATCH 00/31] i965: Separate blorp from the rest of the driver

2016-08-25 Thread Pohjolainen, Topi
On Thu, Aug 25, 2016 at 02:34:37PM -0700, Jason Ekstrand wrote: >On Thu, Aug 25, 2016 at 1:10 AM, Pohjolainen, Topi ><[1]topi.pohjolai...@gmail.com> wrote: > >On Fri, Aug 19, 2016 at 09:55:37AM -0700, Jason Ekstrand wrote: >> This little patch series is even more blorp code churn.Ã

Re: [Mesa-dev] [PATCH 0/4] Resolving Android + desktop OpenGL 'hack'

2016-08-25 Thread Ryan Houdek
Dolphin Emulator does ;) On Thu, Aug 25, 2016 at 4:47 PM, Tomasz Figa wrote: > Hi Emil, > > On Fri, Aug 26, 2016 at 1:07 AM, Emil Velikov > wrote: > > Hi all, > > > > While in the area, I've noticed an odd behaviour (and somewhat of a bug) > > in the egl/android code. > > > > Namely: although w

Re: [Mesa-dev] [PATCH 2/3] glsl: Fix incorrect hard-coded location of the gl_SecondaryFragColorEXT built-in.

2016-08-25 Thread Ilia Mirkin
On Thu, Aug 25, 2016 at 12:57 AM, Francisco Jerez wrote: > Ilia Mirkin writes: > >> On Thu, Aug 25, 2016 at 12:45 AM, Francisco Jerez >> wrote: >>> Ilia Mirkin writes: >>> On Wed, Aug 24, 2016 at 4:30 PM, Francisco Jerez wrote: > Ilia Mirkin writes: > >> I had trouble

Re: [Mesa-dev] simple gallium clean-up task

2016-08-25 Thread Rob Clark
On Thu, Aug 25, 2016 at 8:00 PM, Brian Paul wrote: > If someone is looking for a simple task in gallium... > > In commit 0135bd44 Marek introduced some new enum types in p_defines.h > > In p_context.h we should replace several instances of "unsigned shader" with > "enum pipe_shader_type shader" an

[Mesa-dev] [Bug 97260] [bisected] R9 290 low performance in Linux 4.7

2016-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=97260 --- Comment #31 from Michel Dänzer --- (In reply to Clésio Luiz from comment #30) > Well, I'm too much a newbie to compile those things (I'm using Ubuntu...). The change is in Mesa Git master now, so you can test it with a PPA using that. -- Y

[Mesa-dev] simple gallium clean-up task

2016-08-25 Thread Brian Paul
If someone is looking for a simple task in gallium... In commit 0135bd44 Marek introduced some new enum types in p_defines.h In p_context.h we should replace several instances of "unsigned shader" with "enum pipe_shader_type shader" and propagate that change into the driver functions which cor

[Mesa-dev] [PATCH] docs: add links to clarify patch mailing section

2016-08-25 Thread Nicholas Bishop
From: Nicholas Bishop - Changed "Mesa mailing list" to "mesa-dev mailing list" to clarify which list patches should be sent to - Added an explicit link to https://lists.freedesktop.org/mailman/listinfo/mesa-dev to show where to subscribe to the list - Added a link to https://git-scm.com/d

Re: [Mesa-dev] [PATCH 0/4] Resolving Android + desktop OpenGL 'hack'

2016-08-25 Thread Tomasz Figa
Hi Emil, On Fri, Aug 26, 2016 at 1:07 AM, Emil Velikov wrote: > Hi all, > > While in the area, I've noticed an odd behaviour (and somewhat of a bug) > in the egl/android code. > > Namely: although we allow binding the EGL_OPENGL_API we explicitly clear > the OPENGL_BIT for all the configs at eglI

[Mesa-dev] [PATCH] i915g: fix incorrect gl_FragCoord value

2016-08-25 Thread Nicholas Bishop
From: Nicholas Bishop On Intel Pineview M hardware, the i915 gallium driver doesn't output the correct gl_FragCoord. It seems to always have an X coord of 0.0 and a Y coord of the window's height in pixels, e.g. 600.0f or such. I believe this is a regression caused in part by this commit: afa035

Re: [Mesa-dev] [PATCH] nv50/ir: always emit the NDV bit for OP_QUADOP

2016-08-25 Thread Ilia Mirkin
Reviewed-by: Ilia Mirkin On Thu, Aug 25, 2016 at 12:41 PM, Samuel Pitoiset wrote: > This fixes a divergent error found with F1 2015. > > GM107 emitter already sets that bit. > > Signed-off-by: Samuel Pitoiset > Cc: > --- > src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp | 5 + >

Re: [Mesa-dev] [PATCH] nv50/ir: always emit the NDV bit for OP_QUADOP

2016-08-25 Thread Ilia Mirkin
Although "silences" is more accurate than "fixes". On Thu, Aug 25, 2016 at 7:05 PM, Ilia Mirkin wrote: > Reviewed-by: Ilia Mirkin > > On Thu, Aug 25, 2016 at 12:41 PM, Samuel Pitoiset > wrote: >> This fixes a divergent error found with F1 2015. >> >> GM107 emitter already sets that bit. >> >> S

[Mesa-dev] [PATCH] isl: Allow multisampled array textures

2016-08-25 Thread Jason Ekstrand
This probably isn't the only thing that needs to be done to get multisampled array textures working in Vulkan but I think this is all that ISL really needs and it does fix 8 of the new CTS tests. --- src/intel/isl/isl.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sr

Re: [Mesa-dev] [PATCH 6/6] anv: Rework pipeline caching

2016-08-25 Thread Roland Mainz
On Fri, Aug 26, 2016 at 12:28 AM, Jason Ekstrand wrote: > The original pipeline cache the Kristian wrote was based on a now-false > premise that the shaders can be stored in the pipeline cache. The Vulkan > 1.0 spec explicitly states that the pipeline cache object is transiant and > you are allow

Re: [Mesa-dev] [PATCH 2/2] intel: Flatten the makefile structure

2016-08-25 Thread Jason Ekstrand
On Thu, Aug 25, 2016 at 3:19 PM, Matt Turner wrote: > Both are > > Reviewed-by: Matt Turner > Thanks! ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 1/6] anv/descriptor_set: memset anv_descriptor_set_layout

2016-08-25 Thread Jason Ekstrand
We hash this data structure so we can't afford to have uninitialized data even if it is just structure padding. --- src/intel/vulkan/anv_descriptor_set.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/intel/vulkan/anv_descriptor_set.c b/src/intel/vulkan/anv_descriptor_s

[Mesa-dev] [PATCH 5/6] anv: Add a struct for storing a compiled shader

2016-08-25 Thread Jason Ekstrand
This new anv_shader_bin struct stores the compiled kernel (as an anv_state) as well as all of the metadata that is generated at shader compile time. The storage for the kernels comes from a state pool. The struct itself is reference-counted so that it can be used by multiple pipelines at a time wi

[Mesa-dev] [PATCH 2/6] anv/pipeline: Fix bind maps for fragment output arrays

2016-08-25 Thread Jason Ekstrand
Found by inspection. --- src/intel/vulkan/anv_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 48d267b..933e45b 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @

[Mesa-dev] [PATCH 4/6] anv: Add pipeline_has_stage guards a few places

2016-08-25 Thread Jason Ekstrand
All of these worked before because they were depending on prog_data to be null. Soon, we won't be able to depend on a nice prog_data pointer and it's nice to be more explicit anyway. --- src/intel/vulkan/anv_cmd_buffer.c | 28 ++-- src/intel/vulkan/anv_private.h

[Mesa-dev] [PATCH 6/6] anv: Rework pipeline caching

2016-08-25 Thread Jason Ekstrand
The original pipeline cache the Kristian wrote was based on a now-false premise that the shaders can be stored in the pipeline cache. The Vulkan 1.0 spec explicitly states that the pipeline cache object is transiant and you are allowed to delete it after using it to create a pipeline with no ill e

[Mesa-dev] [PATCH 3/6] anv: Remove unused fields from anv_pipeline_bind_map

2016-08-25 Thread Jason Ekstrand
--- src/intel/vulkan/anv_private.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index f03dba0..c081c14 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -1458,11 +1458,9 @@ struct anv_pipeline

[Mesa-dev] [PATCH 0/6] anv: Rework the pipeline cache

2016-08-25 Thread Jason Ekstrand
When looking at GPU hangs in the new dEQP-VK.syncronization.* tests, I realized that our pipeline cache didn't follow the spec. The spec requires that the user be able to delete the pipeline cache after creating a pipeline using it and then go on to use the pipeline. This took me down the followi

Re: [Mesa-dev] [PATCH 2/2] intel: Flatten the makefile structure

2016-08-25 Thread Matt Turner
Both are Reviewed-by: Matt Turner ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] i965: Embrace "unlimited" GTT mmap support

2016-08-25 Thread Chris Wilson
On Thu, Aug 25, 2016 at 01:43:53PM -0700, Ian Romanick wrote: > On 08/24/2016 12:42 PM, Chris Wilson wrote: > > +#define I915_PARAM_MMAP_GTT_VERSION 40 /* XXX delete me with new libdrm */ > > + if (intel_get_integer(intelScreen, I915_PARAM_MMAP_GTT_VERSION) >= 1) { > > + /* Theorectically un

[Mesa-dev] [PATCH v2] mesa/main: Fix missing return in non void function

2016-08-25 Thread Tobias Klausmann
This was found by obs: I: Program returns random data in a function E: Mesa no-return-in-nonvoid-function main/program_resource.c:109 Signed-off-by: Tobias Klausmann Reviewed-by: Ian Romanick --- V2: Remove the !, cosmetic change, as the macro expansion stringifies everything: __assert_fail ("!

Re: [Mesa-dev] [PATCH 4/7] egl/surfaceless: tweak surfaceless_add_configs_for_visuals()

2016-08-25 Thread Eric Engestrom
On Thu, Aug 25, 2016 at 10:53:22AM -0700, Gurchetan Singh wrote: > >> unsigned int format_count[ARRAY_SIZE(visuals)] = {}; > > Isn't this invalid in C? > http://stackoverflow.com/questions/17589533/is-an-empty-initializer-list-valid-c-code Agreed, that should probably be `{0}` I'll wait for v2 t

Re: [Mesa-dev] [PATCH 7/7] egl/drm: set eglError and provide an error message on failure

2016-08-25 Thread Eric Engestrom
On Thu, Aug 25, 2016 at 05:23:46PM +0100, Emil Velikov wrote: > From: Emil Velikov > > Signed-off-by: Emil Velikov > --- > src/egl/drivers/dri2/platform_drm.c | 22 -- > 1 file changed, 16 insertions(+), 6 deletions(-) > > diff --git a/src/egl/drivers/dri2/platform_drm.c >

Re: [Mesa-dev] [PATCH 3/7] egl/android: tweak droid_add_configs_for_visuals()

2016-08-25 Thread Eric Engestrom
On Thu, Aug 25, 2016 at 05:23:42PM +0100, Emil Velikov wrote: > From: Emil Velikov > > Iterate over the driver_configs first in order to cut down the number of > getConfigAttrib() calls by a factor of 5. > > While we're here, also drop the sentinel of the visuals array. We > already know its siz

Re: [Mesa-dev] [PATCH 00/31] i965: Separate blorp from the rest of the driver

2016-08-25 Thread Jason Ekstrand
On Thu, Aug 25, 2016 at 1:10 AM, Pohjolainen, Topi < topi.pohjolai...@gmail.com> wrote: > On Fri, Aug 19, 2016 at 09:55:37AM -0700, Jason Ekstrand wrote: > > This little patch series is even more blorp code churn. The end > objective > > is in patch 31 which pulls blorp into its own directory com

Re: [Mesa-dev] [PATCH 2/7] egl/drm: introduce drm_add_configs_for_visuals() helper

2016-08-25 Thread Eric Engestrom
On Thu, Aug 25, 2016 at 05:23:41PM +0100, Emil Velikov wrote: > From: Emil Velikov > > Factor out and rework the existing code so that it prints a debug > message if we have zero configs for any visual. > > As a nice side effect we now provide a correct (sequential ID) when > creating a config (

Re: [Mesa-dev] [PATCH] i965/blorp: Add a format parameter to blorp_fast_clear

2016-08-25 Thread Jason Ekstrand
On Thu, Aug 25, 2016 at 7:09 AM, Pohjolainen, Topi < topi.pohjolai...@gmail.com> wrote: > On Tue, Aug 23, 2016 at 11:08:00AM -0700, Jason Ekstrand wrote: > > We were inferring the format from the surface but that doesn't always > work > > as the surface format is the texture format and we want the

Re: [Mesa-dev] [PATCH 1/7] egl/surfaceless: print out a message on zero configs for given format

2016-08-25 Thread Gurchetan Singh
Reviewed-by: Gurchetan Singh On Thu, Aug 25, 2016 at 9:23 AM, Emil Velikov wrote: > From: Emil Velikov > > Currently we print a debug message if the total configs is non-zero only > to do the same (at an error level) as we return from the function. > > Rework the message to print if we're miss

Re: [Mesa-dev] [PATCH 14/30] egl/surfaceless: trivial coding style fixes

2016-08-25 Thread Gurchetan Singh
Reviewed-by: Gurchetan Singh On Thu, Aug 25, 2016 at 9:18 AM, Emil Velikov wrote: > From: Emil Velikov > > Remove a few gratious blank lines and use the correct level of > indentation. > > Signed-off-by: Emil Velikov > --- > src/egl/drivers/dri2/egl_dri2.h | 1 - > src/egl/driver

Re: [Mesa-dev] [PATCH 12/30] egl/surfaceless: remove unused dri2_loader_extension implementation

2016-08-25 Thread Gurchetan Singh
Reviewed-by: Gurchetan Singh On Thu, Aug 25, 2016 at 9:18 AM, Emil Velikov wrote: > From: Emil Velikov > > Earlier commit introduced support for image_loader and left the > dri2_loader code dangling/unused. Let's remove it. > > Fixes: 63c5d5c6c46 ("Added pbuffer hooks for surfaceless platform

Re: [Mesa-dev] [PATCH] nir/phi_builder: Don't recurse in value_get_block_def

2016-08-25 Thread Jason Ekstrand
On Thu, Aug 25, 2016 at 11:32 AM, Matt Turner wrote: > On Wed, Aug 24, 2016 at 10:49 PM, Jason Ekstrand > wrote: > > In some programs, we can have very deep dominance trees and the recursion > > can cause us to risk stack overflows. Instead, we replace the recursion > > with a pair of loops, on

Re: [Mesa-dev] [PATCH] nir: Walk blocks in source code order in lower_vars_to_ssa.

2016-08-25 Thread Jason Ekstrand
On Wed, Aug 24, 2016 at 9:04 PM, Matt Turner wrote: > Prior to this commit rename_variables_block() is recursively called, > performing a depth-first traversal of the control flow graph. The > function uses a non-trivial amount of stack space for local variables, > which puts us in danger of smas

Re: [Mesa-dev] [PATCH] i965: Embrace "unlimited" GTT mmap support

2016-08-25 Thread Ian Romanick
On 08/24/2016 12:42 PM, Chris Wilson wrote: > From about kernel 4.9, GTT mmaps are virtually unlimited. A new > parameter, I915_PARAM_MMAP_GTT_VERSION, is added to advertise the > feature so query it and use it to avoid limiting tiled allocations to > only fit within the mappable aperture. > > Sig

Re: [Mesa-dev] [PATCH] mesa/main: Fix missing return in non void function

2016-08-25 Thread Ian Romanick
On 08/25/2016 06:46 AM, Tobias Klausmann wrote: > This was found by obs: > I: Program returns random data in a function > E: Mesa no-return-in-nonvoid-function main/program_resource.c:109 > > Signed-off-by: Tobias Klausmann > --- > src/mesa/main/program_resource.c | 2 +- > 1 file changed, 1 ins

Re: [Mesa-dev] [PATCH] mesa/main: missing return in a non-void function

2016-08-25 Thread Ian Romanick
On 08/25/2016 08:19 AM, Emil Velikov wrote: > On 25 August 2016 at 13:24, Francesco Ansanelli wrote: >> Signed-off-by: Francesco Ansanelli >> --- >> src/mesa/main/program_resource.c |1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/src/mesa/main/program_resource.c >> b/src/mesa/mai

Re: [Mesa-dev] [Mesa-stable] [PATCH 0/2] i965: Fix dEQP-EGL.functional.image.create.gles2_cubemap_*

2016-08-25 Thread Chad Versace
On Thu 25 Aug 2016, Kenneth Graunke wrote: > On Thursday, August 25, 2016 11:06:01 AM PDT Chad Versace wrote: > > Bump. Can I get a reviewed-by? Or at least a tested-by? This patch fixes > > failures on Chrome OS. > > Oh, sorry, I thought these had been reviewed a while ago. But I see it > was ju

Re: [Mesa-dev] [PATCH] gallium/radeon: unify and simplify checking for an empty gfx IB

2016-08-25 Thread Marek Olšák
FYI, I've already committed this because our other team needs this bug fix. Marek On Thu, Aug 25, 2016 at 10:56 AM, Marek Olšák wrote: > From: Marek Olšák > > We can take advantage of the fact that multi_fence does the obvious thing > with NULL fences. > > This fixes unflushed fences that can g

Re: [Mesa-dev] [PATCH] radeonsi: don't use allocas for arrays with LLVM 3.8

2016-08-25 Thread Marek Olšák
FYI, I've already committed this because our other team needs this bug fix. Marek On Thu, Aug 25, 2016 at 8:26 PM, Marek Olšák wrote: > From: Marek Olšák > > It crashes. > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97413 > --- > src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c

Re: [Mesa-dev] [PATCH] configure.ac: add llvm inteljitevents component if enabled

2016-08-25 Thread Rowley, Timothy O
Review ping. Missed this in my original jitevents patch because I had built llvm as one lib. > On Aug 2, 2016, at 12:54 PM, Rowley, Timothy O > wrote: > > Needed to successfully link llvmpipe or swr when using shared llvm libs. > --- > configure.ac | 5 + > 1 file changed, 5 insertions(+) >

Re: [Mesa-dev] [Request for Testing] i965: import prime buffers in the current context, not screen

2016-08-25 Thread Kristian Høgsberg
On Thu, Aug 25, 2016 at 11:38 AM, Chad Versace wrote: > On Thu 25 Aug 2016, Martin Peres wrote: >> This mirrors the codepath taken by DRI2 in IntelSetTexBuffer2() and >> fixes many applications when using DRI3: >> - Totem with libva on hw-accelerated decoding >> - obs-studio, using Window Captur

[Mesa-dev] [Bug 32946] piglit glx-make-current gives X error BadMatch

2016-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=32946 --- Comment #2 from Rahul --- Is there any update over this ? I am also facing the same issue. -- You are receiving this mail because: You are the assignee for the bug.___ mesa-dev mailing list mesa-d

Re: [Mesa-dev] [PATCH] nir: Walk blocks in source code order in lower_vars_to_ssa.

2016-08-25 Thread Connor Abbott
On Thu, Aug 25, 2016 at 2:26 PM, Matt Turner wrote: > On Wed, Aug 24, 2016 at 11:25 PM, Connor Abbott wrote: >> On Thu, Aug 25, 2016 at 12:04 AM, Matt Turner wrote: >>> Prior to this commit rename_variables_block() is recursively called, >>> performing a depth-first traversal of the control flow

Re: [Mesa-dev] [PATCH 13/30] egl/surfaceless: don't check the mask(s) prior to calling dri2_add_config

2016-08-25 Thread Gurchetan Singh
Reviewed-by: Gurchetan Singh On Thu, Aug 25, 2016 at 9:18 AM, Emil Velikov wrote: > From: Emil Velikov > > The latter already does it for us. > > As we're here annotate the masks as const and use unsigned for the > index(es). > > Cc: Gurchetan Singh > Cc: Chad Versace > Signed-off-by: Emil V

Re: [Mesa-dev] [PATCH 0/2] i965: Fix dEQP-EGL.functional.image.create.gles2_cubemap_*

2016-08-25 Thread Kenneth Graunke
On Thursday, August 25, 2016 11:06:01 AM PDT Chad Versace wrote: > Bump. Can I get a reviewed-by? Or at least a tested-by? This patch fixes > failures on Chrome OS. Oh, sorry, I thought these had been reviewed a while ago. But I see it was just chatter about running dEQP-EGL. Both are: Reviewed-

Re: [Mesa-dev] [Request for Testing] i965: import prime buffers in the current context, not screen

2016-08-25 Thread Chad Versace
On Thu 25 Aug 2016, Martin Peres wrote: > This mirrors the codepath taken by DRI2 in IntelSetTexBuffer2() and > fixes many applications when using DRI3: > - Totem with libva on hw-accelerated decoding > - obs-studio, using Window Capture (Xcomposite) as a Source > - gstreamer with VAAPI > > Bug

Re: [Mesa-dev] [PATCH] nir/phi_builder: Don't recurse in value_get_block_def

2016-08-25 Thread Matt Turner
On Wed, Aug 24, 2016 at 10:49 PM, Jason Ekstrand wrote: > In some programs, we can have very deep dominance trees and the recursion > can cause us to risk stack overflows. Instead, we replace the recursion > with a pair of loops, one at the start and one at the end. This is > functionally equiva

Re: [Mesa-dev] [PATCH 0/2] i965: Fix dEQP-EGL.functional.image.create.gles2_cubemap_*

2016-08-25 Thread Chad Versace
Bump. Can I get a reviewed-by? Or at least a tested-by? This patch fixes failures on Chrome OS. On Thu 04 Aug 2016, Chad Versace wrote: > Hi Intel folks, could one of you please run this through Jenkins? > I verified manually that it fixes the listed dEQP tests on Skylake. > > Chad Versace (2): >

[Mesa-dev] [PATCH] radeonsi: don't use allocas for arrays with LLVM 3.8

2016-08-25 Thread Marek Olšák
From: Marek Olšák It crashes. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97413 --- src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c b/src/gallium/drivers/ra

Re: [Mesa-dev] [PATCH] nir: Walk blocks in source code order in lower_vars_to_ssa.

2016-08-25 Thread Matt Turner
On Wed, Aug 24, 2016 at 11:25 PM, Connor Abbott wrote: > On Thu, Aug 25, 2016 at 12:04 AM, Matt Turner wrote: >> Prior to this commit rename_variables_block() is recursively called, >> performing a depth-first traversal of the control flow graph. The >> function uses a non-trivial amount of stack

Re: [Mesa-dev] [PATCH 2/2] mesa: Fix glFramebufferTexture* error codes (v2)

2016-08-25 Thread Chad Versace
Bump. On Thu 11 Aug 2016, Chad Versace wrote: > If check_textarget() determined that textarget was incorrect, it emitted > GL_INVALID_OPERATION. This is the correct behavior when target and > textarget are mismatched but textarget is a valid textarget enum. > > When textarget is not a valid text

[Mesa-dev] [PATCH v2] egl: return corresponding offset of EGLImage instead of 0.

2016-08-25 Thread Chuanbo Weng
The offset should not always be 0. For example, if EGLImage is created from a 2D texture with EGL_GL_TEXTURE_LEVEL=1, then the offset should be the actual start of miplevel 1 in drm bo. v2: version bump on the EGL image interface and add gallium pieces. Signed-off-by: Chuanbo Weng --- include/G

Re: [Mesa-dev] [PATCH 3/3] intel/isl/gen9: Only use the magic 1D alignment for GEN9_2D surfaces

2016-08-25 Thread Chad Versace
On Thu 25 Aug 2016, Pohjolainen, Topi wrote: > > In the title did you mean GEN_1D? > > Otherwise patches two and three look good also: > > Reviewed-by: Topi Pohjolainen Yep. Patches 2 and 3 are Reviewed-by: Chad Versace ___ mesa-dev mailing list mes

Re: [Mesa-dev] [PATCH 4/7] egl/surfaceless: tweak surfaceless_add_configs_for_visuals()

2016-08-25 Thread Gurchetan Singh
>> unsigned int format_count[ARRAY_SIZE(visuals)] = {}; Isn't this invalid in C? http://stackoverflow.com/questions/17589533/is-an-empty-initializer-list-valid-c-code Other than that, this patch is Reviewed-by: Gurchetan Singh On Thu, Aug 25, 2016 at 9:23 AM, Emil Velikov wrote: > From: Emil

Re: [Mesa-dev] [PATCH 1/3] intel/isl: Use DIM_LAYOUT_GEN4_2D for tiled 1-D surfaces on SKL

2016-08-25 Thread Chad Versace
On Thu 25 Aug 2016, Pohjolainen, Topi wrote: > On Tue, Aug 23, 2016 at 09:53:46PM -0700, Jason Ekstrand wrote: > > The Sky Lake 1D layout is only used if the surface is linear. For tiled > > surfaces such as depth and stenil the old gen4 2D layout is used. > > stencil

Re: [Mesa-dev] [PATCH v2] egl: return corresponding offset of EGLImage instead of 0.

2016-08-25 Thread Weng, Chuanbo
Sorry, please ignore this patch. I'll send out a new one. Thanks. -Original Message- From: mesa-dev [mailto:mesa-dev-boun...@lists.freedesktop.org] On Behalf Of Chuanbo Weng Sent: Thursday, August 25, 2016 6:47 PM To: mesa-dev@lists.freedesktop.org; airl...@redhat.com Cc: emil.l.veli...@g

Re: [Mesa-dev] [PATCH 25/30] egl/dri2: use dri2_bind_extensions to manage the optional extensions

2016-08-25 Thread Kristian Høgsberg
On Thu, Aug 25, 2016 at 9:18 AM, Emil Velikov wrote: > From: Emil Velikov > > Signed-off-by: Emil Velikov > --- > src/egl/drivers/dri2/egl_dri2.c | 28 ++-- > 1 file changed, 10 insertions(+), 18 deletions(-) > > diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/dri

Re: [Mesa-dev] [PATCH 21/30] egl/x11: don't crash if dri2_dpy->conn is NULL

2016-08-25 Thread Kristian Høgsberg
On Thu, Aug 25, 2016 at 9:18 AM, Emil Velikov wrote: > From: Emil Velikov > > The dri3 version of commits 60e9c35b3a0 and 6de9a03bed4. > > CC: > Signed-off-by: Emil Velikov > --- > src/egl/drivers/dri2/platform_x11.c | 14 +- > 1 file changed, 5 insertions(+), 9 deletions(-) > > di

Re: [Mesa-dev] [PATCH 16/30] egl/x11: don't populate dri2_dpy->dri2_loader_extension

2016-08-25 Thread Kristian Høgsberg
On Thu, Aug 25, 2016 at 9:18 AM, Emil Velikov wrote: > From: Emil Velikov > > Analogous to the earlier android and wayland patches. As we're here we > can drop exposing the old version of the extension. > > Any dri loader/driver interface use lower bound checking thus exposing > dri2 loader v3 to

[Mesa-dev] [PATCH] nv50/ir: always emit the NDV bit for OP_QUADOP

2016-08-25 Thread Samuel Pitoiset
This fixes a divergent error found with F1 2015. GM107 emitter already sets that bit. Signed-off-by: Samuel Pitoiset Cc: --- src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp | 5 + src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp | 5 + 2 files changed, 2 insertions

Re: [Mesa-dev] [PATCH 2/3] nir: Change nir_shader_get_entrypoint to return an impl.

2016-08-25 Thread Eric Anholt
Kenneth Graunke writes: > Jason suggested adding an assert(function->impl) here. All callers > of this function actually want ->impl, so I decided just to change > the API. > > We also change the nir_lower_io_to_temporaries API here. All but one > caller passed nir_shader_get_entrypoint(), and

[Mesa-dev] [PATCH 6/7] egl/x11: attribute for dri2_add_config failure

2016-08-25 Thread Emil Velikov
From: Emil Velikov ... in dri2_x11_add_configs_for_visuals(). Currently the latter does not consider that, thus in such cases it adds "empty" configs in the list. Properly account for things and as we do that we can reuse count, instead of calling _eglGetArraySize to deterime if we've added any

[Mesa-dev] [PATCH 5/7] egl/wayland: introduce dri2_wl_add_configs_for_visuals() helper

2016-08-25 Thread Emil Velikov
From: Emil Velikov Analogous to previous commits - with an extra bonus. Current code, apart from not attributing the lack of 'per visual' and overall configs also overwrites the newly added config. Namely if the dpy supports two or more of the supported formats (XRGB, ARGB and RGB565) e

[Mesa-dev] [PATCH 4/7] egl/surfaceless: tweak surfaceless_add_configs_for_visuals()

2016-08-25 Thread Emil Velikov
From: Emil Velikov Analogous to previous commit. Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/platform_surfaceless.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/egl/drivers/dri2/platform_surfaceless.c b/src/egl/drivers/dri2/platform_surfacel

[Mesa-dev] [PATCH 7/7] egl/drm: set eglError and provide an error message on failure

2016-08-25 Thread Emil Velikov
From: Emil Velikov Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/platform_drm.c | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/src/egl/drivers/dri2/platform_drm.c b/src/egl/drivers/dri2/platform_drm.c index aa9a186..df711cf 100644 --- a/src/e

[Mesa-dev] [PATCH 1/7] egl/surfaceless: print out a message on zero configs for given format

2016-08-25 Thread Emil Velikov
From: Emil Velikov Currently we print a debug message if the total configs is non-zero only to do the same (at an error level) as we return from the function. Rework the message to print if we're missing a config for the given format. Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/platf

[Mesa-dev] [PATCH 3/7] egl/android: tweak droid_add_configs_for_visuals()

2016-08-25 Thread Emil Velikov
From: Emil Velikov Iterate over the driver_configs first in order to cut down the number of getConfigAttrib() calls by a factor of 5. While we're here, also drop the sentinel of the visuals array. We already know its size so we can use that and save a few bytes. Signed-off-by: Emil Velikov ---

[Mesa-dev] [PATCH 0/7] egl: *_add_configs_for_visuals() polish

2016-08-25 Thread Emil Velikov
Hi all, This egl series depends on the previous one (although can be split and applied independently). It includes a bunch of polish and 'not big enough for -stable' bugfixes. As always: speak up if you have a preference on splitting and/or folding the patches. Thanks Emil __

[Mesa-dev] [PATCH 2/7] egl/drm: introduce drm_add_configs_for_visuals() helper

2016-08-25 Thread Emil Velikov
From: Emil Velikov Factor out and rework the existing code so that it prints a debug message if we have zero configs for any visual. As a nice side effect we now provide a correct (sequential ID) when creating a config (via dri2_add_config). Signed-off-by: Emil Velikov --- src/egl/drivers/dri

[Mesa-dev] [PATCH 17/30] egl/wayland: don't populate dri2_dpy->swrast_loader_extension

2016-08-25 Thread Emil Velikov
From: Emil Velikov Similar to the dri2 one - the extension stored in struct dri2_egl_display is unused. Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/platform_wayland.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/egl/drivers/dri2/platform_

[Mesa-dev] [PATCH 22/30] egl/dri2: coding style cleanup

2016-08-25 Thread Emil Velikov
From: Emil Velikov Consistently indent with space rather than a mix of tab and spaces. Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/egl_dri2.c | 286 src/egl/drivers/dri2/egl_dri2.h | 18 +-- 2 files changed, 152 insertions(+), 152 deletions(-)

[Mesa-dev] [PATCH 25/30] egl/dri2: use dri2_bind_extensions to manage the optional extensions

2016-08-25 Thread Emil Velikov
From: Emil Velikov Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/egl_dri2.c | 28 ++-- 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index f41f9a9..6edee68 100644 --- a/src/egl/dri

[Mesa-dev] [PATCH 19/30] egl/dri2: remove unused dri2_egl_display::{dri2, swrast}_loader_extension

2016-08-25 Thread Emil Velikov
From: Emil Velikov Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/egl_dri2.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h index 7156955..f902006 100644 --- a/src/egl/drivers/dri2/egl_dri2.h +++ b/src/egl/drivers/dri

[Mesa-dev] [PATCH 26/30] egl/dri2: annotate dri2_extension_match instances as const data

2016-08-25 Thread Emil Velikov
From: Emil Velikov Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/egl_dri2.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index 6edee68..3ec2c53 100644 --- a/src/egl/drivers/dri2/egl_dr

[Mesa-dev] [PATCH 12/30] egl/surfaceless: remove unused dri2_loader_extension implementation

2016-08-25 Thread Emil Velikov
From: Emil Velikov Earlier commit introduced support for image_loader and left the dri2_loader code dangling/unused. Let's remove it. Fixes: 63c5d5c6c46 ("Added pbuffer hooks for surfaceless platform") Cc: Gurchetan Singh Cc: Chad Versace Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/

[Mesa-dev] [PATCH 27/30] egl/dri2: micro optimise dri2_bind_extensions()

2016-08-25 Thread Emil Velikov
From: Emil Velikov Do not loop over all matches if we've already found one. Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/egl_dri2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index 3ec2c53..e638fc9 100644 --- a/

[Mesa-dev] [PATCH 30/30] egl/dri2: set WL_bind_wayland_display in a consistent way

2016-08-25 Thread Emil Velikov
From: Emil Velikov Introduce a helper and use it throughout the platform code. This allows us to reduce the amount of ifdef(s) and (potentially) use kms_swrast_dri.so for platform !drm (namely wayland and x11). Note: in the future as other platforms (android, surfaceless) support the extension t

[Mesa-dev] [PATCH 20/30] egl/dri2: rework dri2_egl_display::extensions storage

2016-08-25 Thread Emil Velikov
From: Emil Velikov Remove the error prone fixed size array. While we're here also rename to loader_extensions like in the GLX code. Signed-off-by: Emil Velikov --- There's a single easter egg hidden within (functionality change) which... I should keep separate, perhaps :-\ XXX: - Any ideas why

[Mesa-dev] [PATCH 28/30] loader/dri3: constify the loader_dri3_vtable

2016-08-25 Thread Emil Velikov
From: Emil Velikov Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/platform_x11_dri3.c | 2 +- src/glx/dri3_glx.c | 2 +- src/loader/loader_dri3_helper.c | 2 +- src/loader/loader_dri3_helper.h | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(

[Mesa-dev] [PATCH 11/30] egl/android: don't populate dri2_dpy->dri2_loader_extension

2016-08-25 Thread Emil Velikov
From: Emil Velikov The extension stored in struct dri2_egl_display isn't used, thus we can create a static const instance of the extension and point extensions[] to it. Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/platform_android.c | 16 +--- src/egl/drivers/dri2/platf

[Mesa-dev] [PATCH 29/30] egl/android: remove duplicate KHR_image_base set

2016-08-25 Thread Emil Velikov
From: Emil Velikov The core egl/dri2 already sets the extension bit _only_ when possible - which in Android's case is always. Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/platform_android.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/egl/drivers/dri2/platform_android.c b/sr

[Mesa-dev] [PATCH 23/30] egl/dri2: add support for optional extensions in dri2_bind_extensions()

2016-08-25 Thread Emil Velikov
From: Emil Velikov Will allow us to reuse the function for optional extensions and fold a bit of code. Cc: Rob Clark Signed-off-by: Emil Velikov --- Rob, you were thinking about a similar thing on the GBM front, correct ? Low hanging fruit for anyone: move this, amongst others, to loader_dri.

[Mesa-dev] [PATCH 24/30] gbm: rename gbm_dri_device::{, loader_}extensions

2016-08-25 Thread Emil Velikov
From: Emil Velikov To align with the name used in the EGL and GLX loaders. Signed-off-by: Emil Velikov --- src/gbm/backends/dri/gbm_dri.c| 12 ++-- src/gbm/backends/dri/gbm_driint.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/gbm/backends/dri/gbm_dri

[Mesa-dev] [PATCH 05/30] egl/dri2: bail out on NULL dpy in dri2_display_release()

2016-08-25 Thread Emil Velikov
From: Emil Velikov Currently all callers are careful enough not to do that, yet that will not be the case in the future. Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/egl_dri2.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/s

[Mesa-dev] [PATCH 16/30] egl/x11: don't populate dri2_dpy->dri2_loader_extension

2016-08-25 Thread Emil Velikov
From: Emil Velikov Analogous to the earlier android and wayland patches. As we're here we can drop exposing the old version of the extension. Any dri loader/driver interface use lower bound checking thus exposing dri2 loader v3 to a v2 capable driver is perfectly normal. Signed-off-by: Emil Vel

[Mesa-dev] [PATCH 18/30] egl/x11: don't populate dri2_dpy->swrast_loader_extension

2016-08-25 Thread Emil Velikov
From: Emil Velikov Analogous to earlier commits. Note: the actual version of the extension is 1, since it does not implement .putImage2. Signed-off-by: Emil Velikov --- We're safe since when 2 was used the actual struct defined in dri_interface.h was greater thus the calloc was explicitly zero

[Mesa-dev] [PATCH 09/30] egl/dri2: drop NULL checks prior to dri2_destroy_surface

2016-08-25 Thread Emil Velikov
From: Emil Velikov The function already have the respective check within. Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/egl_dri2.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index 89d2966..a

[Mesa-dev] [PATCH 04/30] egl/dri2: move surface refcounting out of the platform code

2016-08-25 Thread Emil Velikov
From: Emil Velikov All the platforms are duplicating what should be a driver/dri2 thing - refcounting. Just fold it accordingly. Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/egl_dri2.c | 4 src/egl/drivers/dri2/platform_android.c | 3 --- src/egl/drivers/dri2/platf

[Mesa-dev] [PATCH 08/30] XXX: egl: comment on IsLinked presence/necessity

2016-08-25 Thread Emil Velikov
--- Not meant to be merged, but to inspire dicussion. --- src/egl/main/egldisplay.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c index bbc3063..30fb687 100644 --- a/src/egl/main/egldisplay.c +++ b/src/egl/main/egldisplay.c @@ -411

[Mesa-dev] [PATCH 06/30] egl/dri2: use dri2_egl_display inline wrapper where possible

2016-08-25 Thread Emil Velikov
From: Emil Velikov This way the only places that reference DriverData are the ones that manipulate it. Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/egl_dri2.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/d

[Mesa-dev] [PATCH 21/30] egl/x11: don't crash if dri2_dpy->conn is NULL

2016-08-25 Thread Emil Velikov
From: Emil Velikov The dri3 version of commits 60e9c35b3a0 and 6de9a03bed4. CC: Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/platform_x11.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/pl

  1   2   >