[Mesa-dev] [PATCH] nir/print: Print texture and sampler indices

2018-07-06 Thread Jason Ekstrand
Commit 5fb69daa6076e56b deleted support from nir_print for printing the texture and sampler indices on texture instructions. This commit just brings it back as best as we can. --- src/compiler/nir/nir_print.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/src/compiler/nir/nir_pr

Re: [Mesa-dev] [PATCH] nvc0/ir: use the combined tid special register

2018-07-06 Thread Karol Herbst
anyway, I think it might make sense to take a look at the shaders hurt most as I suspect there might be a way to improve the situation a little On Sat, Jul 7, 2018 at 3:38 AM, Karol Herbst wrote: > okay right, if loading those special regs is indeed more expensive > than doing the read + a few ex

Re: [Mesa-dev] [PATCH] nvc0/ir: use the combined tid special register

2018-07-06 Thread Karol Herbst
okay right, if loading those special regs is indeed more expensive than doing the read + a few extbf then I see the point of this optimization On Sat, Jul 7, 2018 at 2:46 AM, Ilia Mirkin wrote: > Are they? Fewer special reg loads = better... > > On Fri, Jul 6, 2018 at 8:31 PM, Karol Herbst wrote

Re: [Mesa-dev] [PATCH] nvc0/ir: use the combined tid special register

2018-07-06 Thread Ilia Mirkin
Are they? Fewer special reg loads = better... On Fri, Jul 6, 2018 at 8:31 PM, Karol Herbst wrote: > somehow it doesn't really look like that it is worth the effort as the > generated shaders are worse in avg? > > On Fri, Jul 6, 2018 at 10:32 PM, Rhys Perry wrote: >> This patch doesn't touch NTID

Re: [Mesa-dev] [PATCH] nvc0/ir: use the combined tid special register

2018-07-06 Thread Karol Herbst
somehow it doesn't really look like that it is worth the effort as the generated shaders are worse in avg? On Fri, Jul 6, 2018 at 10:32 PM, Rhys Perry wrote: > This patch doesn't touch NTID since it seems very difficult (or > impossible) to generate. Seemingly because the state tracker or glsl >

Re: [Mesa-dev] [PATCH] st/wgl: check for NULL piAttribList in wglCreatePbufferARB()

2018-07-06 Thread Neha Bhende
Looks good to me. Reviewed-by: Neha Bhende Regards, Neha From: Charmaine Lee Sent: Friday, July 6, 2018 4:09:02 PM To: mesa-dev@lists.freedesktop.org Cc: Brian Paul; Neha Bhende; Charmaine Lee Subject: [PATCH] st/wgl: check for NULL piAttribList in wglCreateP

Re: [Mesa-dev] [PATCH 1/3] i965/fs: Properly handle sign(-abs(x))

2018-07-06 Thread Ian Romanick
On 07/05/2018 06:22 PM, Caio Marcelo de Oliveira Filho wrote: > Reviewed-by: Caio Marcelo de Oliveira Filho > > Tested the patch with the shaders mentioned. > > Do you think would be worth to have a pass at NIR level to perform > these transformations? Possibly. In many cases, it is better to

Re: [Mesa-dev] [PATCH 0/3] verify max vertex attrib stride

2018-07-06 Thread Ian Romanick
On 07/06/2018 09:43 AM, Roland Scheidegger wrote: > Am 06.07.2018 um 12:03 schrieb Erik Faye-Lund: >> OpenGL 4.4 and OpenGL ES 3.1 both require the maximum >> vertex attrib stride to be at least 2048. If this isn't >> the case, we shouldn't expose these API versions. >> >> Unfortunately, the r600 d

Re: [Mesa-dev] [PATCH 0/3] verify max vertex attrib stride

2018-07-06 Thread Ian Romanick
Assuming the concerns about patch 1 are resolved, patches 2 and 3 are Reviewed-by: Ian Romanick On 07/06/2018 03:03 AM, Erik Faye-Lund wrote: > OpenGL 4.4 and OpenGL ES 3.1 both require the maximum > vertex attrib stride to be at least 2048. If this isn't > the case, we shouldn't expose these AP

[Mesa-dev] [Bug 107146] swr doesn't compile with current LLVM 7.0 snapshots

2018-07-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107146 Bug ID: 107146 Summary: swr doesn't compile with current LLVM 7.0 snapshots Product: Mesa Version: git Hardware: Other OS: All Status: NEW Severity: norm

[Mesa-dev] [PATCH] st/wgl: check for NULL piAttribList in wglCreatePbufferARB()

2018-07-06 Thread Charmaine Lee
Java2d opengl pipeline passes NULL piAttribList to wglCreatePbufferARB(). So skip parsing the attribute list if it is NULL. --- src/gallium/state_trackers/wgl/stw_ext_pbuffer.c | 80 1 file changed, 41 insertions(+), 39 deletions(-) diff --git a/src/gallium/state_trackers

[Mesa-dev] [PATCH] i965/miptree: Allocate MS texture BOs as BUSY

2018-07-06 Thread Nanley Chery
These buffer objects are never accessed with the CPU. --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index eee83a7a963..3a1d064e

Re: [Mesa-dev] [PATCH 3/3] mesa: verify MaxVertexAttribStride for GLES 3.1

2018-07-06 Thread Marek Olšák
For the series: Reviewed-by: Marek Olšák Marek On Fri, Jul 6, 2018 at 6:03 AM, Erik Faye-Lund wrote: > The OpenGL 3.1 specification, table Table 20.41 ("Implementation > Dependent Values"), defines the minimum-maximum value for > MAX_VERTEX_ATTRIB_STRIDE to be 2048. > > So we shouldn't enable

Re: [Mesa-dev] [PATCH 1/3] r600: report incorrect max-vertex-attrib for GL 4.4

2018-07-06 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Fri, Jul 6, 2018 at 6:03 AM, Erik Faye-Lund wrote: > OpenGL 4.4 requires a max vertex attrib of 2048 or higher, but > r600 only supports 2047. Technically, this makes it an GL4.3 GPU, > but it's currently exposing GL4.4. > > To avoid regressing the GL version s

Re: [Mesa-dev] [PATCH] vulkan: utils: handle hexadecimal values in registry

2018-07-06 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Fri, Jul 6, 2018 at 2:06 PM Lionel Landwerlin < lionel.g.landwer...@intel.com> wrote: > Signed-off-by: Lionel Landwerlin > --- > src/vulkan/util/gen_enum_to_str.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/vulkan/util/gen_enum_t

[Mesa-dev] [PATCH] vulkan: utils: handle hexadecimal values in registry

2018-07-06 Thread Lionel Landwerlin
Signed-off-by: Lionel Landwerlin --- src/vulkan/util/gen_enum_to_str.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/util/gen_enum_to_str.py b/src/vulkan/util/gen_enum_to_str.py index bf883d5cb8f..fb9ecd65c6d 100644 --- a/src/vulkan/util/gen_enum_to_str.py +++ b

[Mesa-dev] [PATCH] vulkan: Allow for hex values in XML enum definitions

2018-07-06 Thread Jason Ekstrand
These have come up from time to time in some enums. They've never been a problem in the past because we just haven't cared about enum_to_str on those. --- src/vulkan/util/gen_enum_to_str.py | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/vulkan/util/gen_enum_to_str.p

Re: [Mesa-dev] [PATCH] nvc0/ir: use the combined tid special register

2018-07-06 Thread Rhys Perry
This patch doesn't touch NTID since it seems very difficult (or impossible) to generate. Seemingly because the state tracker or glsl compiler is turning gl_WorkGroupSize into a immediate. Such a transformation is not possible with GL_ARB_compute_variable_group_size but gl_WorkGroupSize is not avail

Re: [Mesa-dev] [PATCH 00/13] Fix stencil texturing and BO caching bugs

2018-07-06 Thread Nanley Chery
On Fri, Jul 06, 2018 at 01:29:29PM -0700, Nanley Chery wrote: > On Fri, Jul 06, 2018 at 03:36:01PM +0300, Pohjolainen, Topi wrote: > > On Tue, Jun 12, 2018 at 12:21:52PM -0700, Nanley Chery wrote: > > > This series fixes a couple stencil texturing bugs on HSW and > > > cache-tracking for certain st

Re: [Mesa-dev] [PATCH 00/13] Fix stencil texturing and BO caching bugs

2018-07-06 Thread Nanley Chery
On Fri, Jul 06, 2018 at 03:36:01PM +0300, Pohjolainen, Topi wrote: > On Tue, Jun 12, 2018 at 12:21:52PM -0700, Nanley Chery wrote: > > This series fixes a couple stencil texturing bugs on HSW and > > cache-tracking for certain stencil BOs on all platforms. > > > > Nanley Chery (13): > > i965: Se

[Mesa-dev] [PATCH] nvc0/ir: use the combined tid special register

2018-07-06 Thread Rhys Perry
total instructions in shared programs : 5804448 -> 5804690 (0.00%) total gprs used in shared programs: 670065 -> 670065 (0.00%) total shared used in shared programs : 548832 -> 548832 (0.00%) total local used in shared programs : 21068 -> 21068 (0.00%) local shared

[Mesa-dev] [PATCH 1/2] drm-uapi: Update drm_fourcc.h for new format modifiers.

2018-07-06 Thread Eric Anholt
This brings in the Broadcom VC4 SAND and V3D 3.x+ UIF modifiers, from drm-next commit 4da1d4c751c9b1b713c13043bad7c4d27cd1418c. --- In sending this series, I'm just looking for an ack from someone for updating the drm_fourcc.h from drm-next. include/drm-uapi/drm_fourcc.h | 80 +++

[Mesa-dev] [PATCH 2/2] v3d: Fix tiling modifier support to use the new UIF define.

2018-07-06 Thread Eric Anholt
You can't use T tiled buffers on V3D 3.x and newer, it's been replaced with a newer layout shared with other hardware blocks. --- src/gallium/drivers/v3d/v3d_resource.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/v3d/v3d_resource.c

Re: [Mesa-dev] [PATCH] glx: Don't allow glXMakeContextCurrent() with only one valid drawable

2018-07-06 Thread Eric Anholt
Adam Jackson writes: > Drawable and readable need to either both be None or both be non-None. Reviewed-by: Eric Anholt signature.asc Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/ma

Re: [Mesa-dev] [PATCH] configure.ac: Check for xcb-randr version and xrandr to enable leasing

2018-07-06 Thread Lionel Landwerlin
Hi Danylo, I just run into the same issue, thanks for fixing this with autotools. I think the same issue remains with meson though. Thanks, - Lionel On 20/06/18 14:25, Danylo Piliaiev wrote: VK_USE_PLATFORM_XLIB_XRANDR_EXT requires xlib leasing which requires xcb-randr >= 1.13. Also xrandr he

Re: [Mesa-dev] [PATCH] i965: don't check ccs_e support if isl_format is ISL_FORMAT_UNSUPPORTED

2018-07-06 Thread Dongwon Kim
Hi Lionel, The original problem we saw happened when dri format is __DRI_IMAGE_FORMAT_XBGR2101010, which doesn't have any corresponding ISL format available. And yes, I verified the problem we saw doesn't happen anymore with the latest code base possibly with your fix. So I could turn down this p

[Mesa-dev] [PATCH] glx: Don't allow glXMakeContextCurrent() with only one valid drawable

2018-07-06 Thread Adam Jackson
Drawable and readable need to either both be None or both be non-None. Cc: Signed-off-by: Adam Jackson --- src/glx/glxcurrent.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/glx/glxcurrent.c b/src/glx/glxcurrent.c index fd04929b89f..2b9c708c3ee 100644 --- a/src/glx/glxcurrent.c

Re: [Mesa-dev] [PATCH 03/26] python: Use the Python 3 exception syntax

2018-07-06 Thread Dylan Baker
I've gone ahead and tested (through our CI) and pushed patches 1-3 with the relevant *-bys added from Me, Eric, and Ian. I wanted to get patch 1 merged quickly due to the high chance of conflicts. Dylan Quoting Mathieu Bridon (2018-07-05 06:17:34) > This is compatible with Python versions >= 2.6.

[Mesa-dev] [Bug 106151] [amdgpu][vulkan] GPU hang (Vega 56) while running game (Rise of the Tomb Raider)

2018-07-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106151 --- Comment #25 from pritzl3...@gmail.com --- (In reply to Samuel Pitoiset from comment #20) > Created attachment 140246 [details] [review] > possible fix > > Does this patch help? The game still hangs with this patch using Mesa 18.1.3. -- Yo

[Mesa-dev] [Bug 106151] [amdgpu][vulkan] GPU hang (Vega 56) while running game (Rise of the Tomb Raider)

2018-07-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106151 --- Comment #24 from pritzl3...@gmail.com --- (In reply to Samuel Pitoiset from comment #19) > Thanks, what preset do you use? I'm using the high preset and I have disabled AA. Resolution is 3840x2160. -- You are receiving this mail because: Y

Re: [Mesa-dev] [PATCH 09/26] python: Use range() instead of xrange()

2018-07-06 Thread Ian Romanick
This patch is Reviewed-by: Ian Romanick On 07/06/2018 03:22 AM, Mathieu Bridon wrote: > Python 2 has a range() function which returns a list, and an xrange() > one which returns an iterator. > > Python 3 lost the function returning a list, and renamed the function > returning an iterator as ran

Re: [Mesa-dev] [PATCH 07/26] python: Better sort dictionary keys/values

2018-07-06 Thread Ian Romanick
This patch is Reviewed-by: Ian Romanick On 07/06/2018 03:17 AM, Mathieu Bridon wrote: > In Python 2, dict.keys() and dict.values() both return a list, which can > be sorted in two ways: > > * l.sort() modifies the list in-place; > * sorted(l) returns a new, sorted list; > > In Python 3, dict.k

Re: [Mesa-dev] [PATCH 04/26] python: Better check for keys in dicts

2018-07-06 Thread Ian Romanick
I don't think I knew about the "in" operator when I wrote that code... a lot of it is pretty old, so it may not have even existed in 2005. :) This patch is Reviewed-by: Ian Romanick On 07/06/2018 03:15 AM, Mathieu Bridon wrote: > Python 3 lost the dict.has_key() method. Instead it requires usin

Re: [Mesa-dev] [PATCH 03/26] python: Stop using the Python 2 exception syntax

2018-07-06 Thread Ian Romanick
This patch is Reviewed-by: Ian Romanick On 07/06/2018 03:13 AM, Mathieu Bridon wrote: > We could have made this compatible with Python 3 by using: > > except Exception as e: > > But since none of this code actually uses the exception objects, let's > just drop them entirely. > > Signed-of

Re: [Mesa-dev] [PATCH 10/13] i965/miptree: Add and use mt_surf_usage

2018-07-06 Thread Nanley Chery
On Fri, Jul 06, 2018 at 03:21:31PM +0300, Pohjolainen, Topi wrote: > On Fri, Jul 06, 2018 at 03:17:14PM +0300, Pohjolainen, Topi wrote: > > On Tue, Jun 12, 2018 at 12:22:02PM -0700, Nanley Chery wrote: > > > --- > > > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 40 --- > > > 1

Re: [Mesa-dev] [PATCH] swrast: Fix eglMakeCurrent(dpy, NULL, NULL, ctx)

2018-07-06 Thread Ian Romanick
On 07/06/2018 08:45 AM, Adam Jackson wrote: > On Fri, 2018-07-06 at 10:29 +0100, Emil Velikov wrote: > >> Skimming through the egl_khr_create_context text, this relaxes some >> parts which are meant to be an error. >> For example >> >> * If either of or is a valid surface and the other >>

Re: [Mesa-dev] [PATCH 0/3] verify max vertex attrib stride

2018-07-06 Thread Roland Scheidegger
Am 06.07.2018 um 12:03 schrieb Erik Faye-Lund: > OpenGL 4.4 and OpenGL ES 3.1 both require the maximum > vertex attrib stride to be at least 2048. If this isn't > the case, we shouldn't expose these API versions. > > Unfortunately, the r600 driver only supports 2047. To > avoid regressions in the

Re: [Mesa-dev] [PATCH] swrast: Fix eglMakeCurrent(dpy, NULL, NULL, ctx)

2018-07-06 Thread Adam Jackson
On Fri, 2018-07-06 at 10:29 +0100, Emil Velikov wrote: > Skimming through the egl_khr_create_context text, this relaxes some > parts which are meant to be an error. > For example > > * If either of or is a valid surface and the other > is EGL_NO_SURFACE, an EGL_BAD_MATCH error is

Re: [Mesa-dev] [PATCH] anv/pipeline: honor the pipeline_cache_enabled run-time flag

2018-07-06 Thread Lionel Landwerlin
On 04/07/18 09:44, Iago Toral Quiroga wrote: --- src/intel/vulkan/anv_pipeline_cache.c | 37 +++ 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/src/intel/vulkan/anv_pipeline_cache.c b/src/intel/vulkan/anv_pipeline_cache.c index d4c7262dc0..5825

Re: [Mesa-dev] [PATCH] i965: don't check ccs_e support if isl_format is ISL_FORMAT_UNSUPPORTED

2018-07-06 Thread Lionel Landwerlin
Hi Dongwon, Jason & I merged some patches to fix similar issues a few weeks ago. I think we didn't change this function because a crash or hitting an assert is a good indication that something's gone wrong before we run into this function. If you patch fixes an issue, could you give some deta

Re: [Mesa-dev] [PATCH 00/13] Fix stencil texturing and BO caching bugs

2018-07-06 Thread Pohjolainen, Topi
On Tue, Jun 12, 2018 at 12:21:52PM -0700, Nanley Chery wrote: > This series fixes a couple stencil texturing bugs on HSW and > cache-tracking for certain stencil BOs on all platforms. > > Nanley Chery (13): > i965: Set the r8stencil flag in miptree_finish_write > i965/miptree: Set the r8stenci

Re: [Mesa-dev] [PATCH 13/13] i965/miptree: Inline make_separate_stencil

2018-07-06 Thread Pohjolainen, Topi
On Tue, Jun 12, 2018 at 12:22:05PM -0700, Nanley Chery wrote: > Note that the separate stencil miptree now has the same alloc_flag as > the depth component. > --- > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 29 --- > 1 file changed, 6 insertions(+), 23 deletions(-) > > diff

Re: [Mesa-dev] [PATCH 10/13] i965/miptree: Add and use mt_surf_usage

2018-07-06 Thread Pohjolainen, Topi
On Fri, Jul 06, 2018 at 03:17:14PM +0300, Pohjolainen, Topi wrote: > On Tue, Jun 12, 2018 at 12:22:02PM -0700, Nanley Chery wrote: > > --- > > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 40 --- > > 1 file changed, 26 insertions(+), 14 deletions(-) > > > > diff --git a/src/mes

Re: [Mesa-dev] [PATCH 10/13] i965/miptree: Add and use mt_surf_usage

2018-07-06 Thread Pohjolainen, Topi
On Tue, Jun 12, 2018 at 12:22:02PM -0700, Nanley Chery wrote: > --- > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 40 --- > 1 file changed, 26 insertions(+), 14 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c > b/src/mesa/drivers/dri/i965/intel_mip

Re: [Mesa-dev] [PATCH 09/13] i965/miptree: Share alloc_flags in miptree_create

2018-07-06 Thread Pohjolainen, Topi
On Tue, Jun 12, 2018 at 12:22:01PM -0700, Nanley Chery wrote: > --- > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 11 --- > 1 file changed, 4 insertions(+), 7 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c > b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c

Re: [Mesa-dev] meson: Build with Python 3

2018-07-06 Thread Jose Fonseca
AFAICS, we use python 2 in two places: (1) SCons* I suspect using Python 3 will be far from straightforward, as it will require newer SCons versions, and all that's implied. So I rather not embark on this yet. (2) C code generation scripts Python 3.5 seems to be included on our build

[Mesa-dev] [PATCH 09/26] python: Use range() instead of xrange()

2018-07-06 Thread Mathieu Bridon
Python 2 has a range() function which returns a list, and an xrange() one which returns an iterator. Python 3 lost the function returning a list, and renamed the function returning an iterator as range(). As a result, using range() makes the scripts compatible with both Python versions 2 and 3.

[Mesa-dev] [PATCH 06/26] python: Better iterate over dictionaries

2018-07-06 Thread Mathieu Bridon
In Python 2, dictionaries have 2 sets of methods to iterate over their keys and values: keys()/values()/items() and iterkeys()/itervalues()/iteritems(). The former return lists while the latter return iterators. Python 3 dropped the method which return lists, and renamed the methods returning it

[Mesa-dev] [PATCH 07/26] python: Better sort dictionary keys/values

2018-07-06 Thread Mathieu Bridon
In Python 2, dict.keys() and dict.values() both return a list, which can be sorted in two ways: * l.sort() modifies the list in-place; * sorted(l) returns a new, sorted list; In Python 3, dict.keys() and dict.values() do not return lists any more, but iterators. Iterators do not have a .sort() me

[Mesa-dev] [PATCH 04/26] python: Better check for keys in dicts

2018-07-06 Thread Mathieu Bridon
Python 3 lost the dict.has_key() method. Instead it requires using the "in" operator. This is also compatible with Python 2. Signed-off-by: Mathieu Bridon --- src/mapi/glapi/gen/glX_XML.py| 2 +- src/mapi/glapi/gen/glX_proto_send.py | 2 +- src/mapi/glapi/gen/glX_proto_size.py | 18 ++

[Mesa-dev] [PATCH 03/26] python: Stop using the Python 2 exception syntax

2018-07-06 Thread Mathieu Bridon
We could have made this compatible with Python 3 by using: except Exception as e: But since none of this code actually uses the exception objects, let's just drop them entirely. Signed-off-by: Mathieu Bridon --- src/mapi/glapi/gen/glX_XML.py | 2 +- src/mapi/glapi/gen/gl_XML.py

[Mesa-dev] [PATCH 3/3] mesa: verify MaxVertexAttribStride for GLES 3.1

2018-07-06 Thread Erik Faye-Lund
The OpenGL 3.1 specification, table Table 20.41 ("Implementation Dependent Values"), defines the minimum-maximum value for MAX_VERTEX_ATTRIB_STRIDE to be 2048. So we shouldn't enable OpenGL ES 3.1 on implementations where this isn't the case. Let's add a check for this Signed-off-by: Erik Faye-Lu

[Mesa-dev] [PATCH 1/3] r600: report incorrect max-vertex-attrib for GL 4.4

2018-07-06 Thread Erik Faye-Lund
OpenGL 4.4 requires a max vertex attrib of 2048 or higher, but r600 only supports 2047. Technically, this makes it an GL4.3 GPU, but it's currently exposing GL4.4. To avoid regressing the GL version supported in the following patches, let's just lie and pretend like we support 2048. Any applicatio

[Mesa-dev] [PATCH 0/3] verify max vertex attrib stride

2018-07-06 Thread Erik Faye-Lund
OpenGL 4.4 and OpenGL ES 3.1 both require the maximum vertex attrib stride to be at least 2048. If this isn't the case, we shouldn't expose these API versions. Unfortunately, the r600 driver only supports 2047. To avoid regressions in the supported GL version, the first patch modifies the returned

[Mesa-dev] [PATCH 2/3] mesa: verify MaxVertexAttribStride for GL 4.4

2018-07-06 Thread Erik Faye-Lund
The OpenGL 4.4 specification, table Table 23.55 ("Implementation Dependent Values"), defines the minimum-maximum value for MAX_VERTEX_ATTRIB_STRIDE to be 2048. So we shouldn't enable OpenGL 4.4 on implementations where this isn't the case. Let's add a check for this. Signed-off-by: Erik Faye-Lund

[Mesa-dev] [PATCH] intel: tools: dump_gpu: fix ppgtt mapping

2018-07-06 Thread Lionel Landwerlin
We were not properly writing page tables when the virtual address range spans multiple subtrees of the tables. Signed-off-by: Lionel Landwerlin --- src/intel/tools/intel_dump_gpu.c | 46 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/src/intel/to

[Mesa-dev] [PATCH v2] intel: tools: fix build on old systems

2018-07-06 Thread Lionel Landwerlin
Older system might not have support for memfd_create at the kernel level. There we won't be able to use aubinator. We also initially tried to workaround some libc having the memfd_create syscall number defined, but not the memfd_create() function. This change makes dealing with the 2 problems abo

[Mesa-dev] [PATCH] swrast: remove unneeded _glapi_check_multithread() call

2018-07-06 Thread Emil Velikov
From: Emil Velikov With commit c6c0f947142, back in 2006 Brian removed the _glapi_check_multithread() call from core mesa - _mesa_make_current. He moved it to a DRI loader (type of) decision - with equivalents in the monolithic OSMesa and libGL-Xlib. Some time afterwords, swrast (a DRI driver)

Re: [Mesa-dev] [PATCH 16/26] python: Explicitly use lists

2018-07-06 Thread Mathieu Bridon
On Thu, 2018-07-05 at 09:31 -0700, Dylan Baker wrote: > Quoting Mathieu Bridon (2018-07-05 06:17:47) > > On Python 2, the builtin functions filter() and zip() would return > > lists. > > > > On Python 3, they return iterators. > > > > Since we want to use those objects in contexts where we need l

Re: [Mesa-dev] [RFC 3/5] platform/android: Enable kms_swrast fallback

2018-07-06 Thread Emil Velikov
Hi Rob, On 6 July 2018 at 09:58, Robert Foss wrote: >> >> You can trivially eliminate the goto statement here. >> > > As Tomasz noted this fallback is already implemented in egldriver.c, > so it can be removed entirely. > Right forgot about that one. Currently we have the fallback in egldriver.

Re: [Mesa-dev] [PATCH 15/26] python: Specify the template output encoding

2018-07-06 Thread Mathieu Bridon
On Thu, 2018-07-05 at 09:14 -0700, Dylan Baker wrote: > Does it make more sense to encode, or to use io.open and open the > file in text mode? I've gone back and forth on this myself several > times. Same here, both seem equally valid and I can't really make my mind up on which one to pick. The g

Re: [Mesa-dev] [PATCH] swrast: Fix eglMakeCurrent(dpy, NULL, NULL, ctx)

2018-07-06 Thread Emil Velikov
On 5 July 2018 at 20:35, Adam Jackson wrote: > Fixes 14 piglits, mostly in egl_khr_create_context. > > Fixes: https://github.com/anholt/libepoxy/issues/177 > Signed-off-by: Adam Jackson > --- > src/mesa/drivers/dri/swrast/swrast.c | 34 +++- > 1 file changed, 18 insertion

Re: [Mesa-dev] [PATCH 12/26] python: Fix unequality comparisons

2018-07-06 Thread Mathieu Bridon
On Thu, 2018-07-05 at 09:10 -0700, Dylan Baker wrote: > Quoting Mathieu Bridon (2018-07-05 06:17:43) > > +def __ne__(self, other): > > +return not self.__eq__(other) > > This can be written as "not (self == other)", right? It can, yes. The `==` operator is going to end up calling th

Re: [Mesa-dev] [RFC 3/5] platform/android: Enable kms_swrast fallback

2018-07-06 Thread Robert Foss
Hey Emil, On 05/07/18 15:04, Emil Velikov wrote: Hi Rob, On 5 July 2018 at 11:07, Robert Foss wrote: Add support for the ForceSoftware option, which is togglable on the Android platform through setting the "drm.gpu.force_software" property to a non-zero value. kms_swrast is also enabled as a

Re: [Mesa-dev] [RFC 5/5] DEBUG

2018-07-06 Thread Robert Foss
On 05/07/18 17:50, Robert Foss wrote: Hey Emil, On 05/07/18 15:13, Emil Velikov wrote: Hi Rob, On 5 July 2018 at 11:07, Robert Foss wrote: @@ -511,7 +515,7 @@ dri2_open_driver(_EGLDisplay *disp) char path[PATH_MAX], *search_paths, *next, *end; char *get_extensions_name; con

Re: [Mesa-dev] [RFC 3/5] platform/android: Enable kms_swrast fallback

2018-07-06 Thread Robert Foss
Hey Tomasz, On 05/07/18 16:26, Tomasz Figa wrote: Hi Rob, On Thu, Jul 5, 2018 at 7:07 PM Robert Foss wrote: Add support for the ForceSoftware option, which is togglable on the Android platform through setting the "drm.gpu.force_software" property to a non-zero value. kms_swrast is also enab

Re: [Mesa-dev] [PATCH 06/26] python: Better iterate over dictionaries

2018-07-06 Thread Mathieu Bridon
On Thu, 2018-07-05 at 08:48 -0700, Dylan Baker wrote: > I've asked a couple of people who have (in the past at least) had a > hard requirement on python 2.x if moving to 3.x will be okay for > them. If it's not then we may need to do something else here. I've > used six in the past (although I know

Re: [Mesa-dev] [PATCH] st/dri: fix a crash in server_wait_Sync

2018-07-06 Thread Michel Dänzer
On 2018-07-06 12:15 AM, Marek Olšák wrote: > From: Marek Olšák > > Ported from i965 including the comment. > > This fixes: > dEQP-EGL.functional.reusable_sync.valid.wait_server > > Cc: 18.1 > --- > src/gallium/state_trackers/dri/dri_helpers.c | 6 ++ > 1 file changed, 6 insertions(+)

Re: [Mesa-dev] [PATCH] vma/tests: Fix compilation if limits.h defines PAGE_SIZE (v2)

2018-07-06 Thread Scott D Phillips
Jon Turney writes: > per POSIX, limits.h may define PAGE_SIZE when the value is not indeterminate > > v2: just change the variable name, since there's no intended correlation > here between this value and the machine's actual page size. > > Cc: Scott D Phillips > Signed-off-by: Jon Turney Revi