[Mesa-dev] [PATCH 37/45] i965/fs: Include support for SEND data_format bit for Render Targets

2017-07-13 Thread Alejandro Piñeiro
From: Jose Maria Casanova Crespo From intel Skylake PRM, vol 07, section "EU Overview", subsection "Send Message" (page 905): "Bit 30: Data format. This field specifies the width of data read from sampler or written to render target. Format = U1 0 Single Precision (32b

[Mesa-dev] [PATCH 38/45] i965/disasm: Show half-precision data_format on rt_writes

2017-07-13 Thread Alejandro Piñeiro
From: Jose Maria Casanova Crespo --- src/intel/compiler/brw_disasm.c | 4 1 file changed, 4 insertions(+) diff --git a/src/intel/compiler/brw_disasm.c b/src/intel/compiler/brw_disasm.c index ad41e35..b269a5c 100644 --- a/src/intel/compiler/brw_disasm.c +++ b/src/intel/compiler/brw_disasm.c

[Mesa-dev] [PATCH 39/45] i965/fs: Mark 16-bit outputs on FS store_output

2017-07-13 Thread Alejandro Piñeiro
From: Jose Maria Casanova Crespo On SKL the render target write operations allow 16-bit format output. This marks output registers as 16-bit using BRW_REGISTER_TYPE_HF on the proper outputs target. This allows to recognise when the data_format of 16-bit should be enabled on render_target_write m

[Mesa-dev] [PATCH 40/45] i965/fs: 16-bit source payloads always use 1 register

2017-07-13 Thread Alejandro Piñeiro
From: Jose Maria Casanova Crespo Render Target Message's payloads for 16bit values fit in only one register. From Intel PRM vol07, page 249 "Render Target Messages" / "Message Data Payloads" "The half precision Render Target Write messages have data payloads that can pack a full SIMD16 p

[Mesa-dev] [PATCH 41/45] i965/fs: Use half_precision data_format on 16-bit fb writes

2017-07-13 Thread Alejandro Piñeiro
--- src/intel/compiler/brw_fs_visitor.cpp | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/intel/compiler/brw_fs_visitor.cpp b/src/intel/compiler/brw_fs_visitor.cpp index 758c8bf..e39bafd 100644 --- a/src/intel/compiler/brw_fs_visitor.cpp +++ b/src/intel/compiler/brw_fs_visitor.cpp @

[Mesa-dev] [PATCH 42/45] i965/fs: Enable 16-bit render target write on SKL and CHV

2017-07-13 Thread Alejandro Piñeiro
From: Jose Maria Casanova Crespo Once the infrastruture to support Render Target Messages with 16-bit payload is available, this patch enable it on SKL and CHV platforms. Enabling it allows 16-bit payload that use half of the register on SIMD16 and avoids the spurious conversion from 16-bit to 3

[Mesa-dev] [PATCH 43/45] i965/fs: Add reuse_16bit_conversions_register optimization

2017-07-13 Thread Alejandro Piñeiro
When dealing with HF/U/UW, it is usual having a register with a F/D/UD, and then convert it to HF/U/UW, and not use again the F/D/UD value. In those cases it would be possible to reuse the register where the F value is initially stored instead of having two. Take also into account that when operati

[Mesa-dev] [PATCH 44/45] anv: Enable SPV_KHR_16bit_storage on gen 8+

2017-07-13 Thread Alejandro Piñeiro
From: Eduardo Lima Mitev --- src/intel/vulkan/anv_pipeline.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 5494a6e..71d4af5 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -129,6 +

[Mesa-dev] [PATCH 45/45] anv: Enable VK_KHR_16bit_storage

2017-07-13 Thread Alejandro Piñeiro
It uses VK_KHR_get_physical_device_properties2 functionality to expose if the extension is supported or not. Signed-off-by: Jose Maria Casanova Crespo Signed-off-by: Alejandro Piñeiro storageBuffer16BitAccess = pdevice->info.gen >= 8; + features->uniformAndStorageBuffer16BitAccess = pdevi

[Mesa-dev] [PATCH] anv/pipeline: use BITFIELD64_BIT() to check enable vertex inputs

2017-07-13 Thread Juan A. Suarez Romero
When initializing the ANV pipeline, one of the tasks is checking which vertex inputs are enabled. This is done by checking if the enabled bits in inputs_read. But the mask to use is computed doing `(1 << (VERT_ATTRIB_GENERIC0 + desc->location))`. The problem here is that if location is 15 or great

Re: [Mesa-dev] [PATCH] st/mesa: add a winsys buffers list in st_context

2017-07-13 Thread Andy Furniss
This breaks startx on radeonsi for me on a R9 285. [ 5297.130] (II) glamor: OpenGL accelerated X.org driver based. [ 5297.132] (II) glamor: EGL version 1.5 (DRI2): [ 5297.133] (EE) [ 5297.133] (EE) Backtrace: [ 5297.151] (EE) 0: /usr/libexec/Xorg (OsSigHandler+0x29) [0x584069] [ 5297.164] (

Re: [Mesa-dev] [RFC v2] etnaviv: flush color cache and depth cache together before resolves

2017-07-13 Thread Lucas Stach
Am Freitag, den 23.06.2017, 11:17 +0200 schrieb Philipp Zabel: > Before resolving a rendertarget or a depth/stencil resource into a > texture, flush both the color cache and the depth cache together. > > It is unclear whether this is necessary for the following stall to > work properly, or whether

Re: [Mesa-dev] [PATCH] st/mesa: add a winsys buffers list in st_context

2017-07-13 Thread Brian Paul
A patch to fix this was already posted and reviewed. I'll push it soon since I think Michel is off-line this time of day. -Brian On 07/13/2017 09:17 AM, Andy Furniss wrote: This breaks startx on radeonsi for me on a R9 285. [ 5297.130] (II) glamor: OpenGL accelerated X.org driver based. [

Re: [Mesa-dev] How to write using EGLImage?

2017-07-13 Thread Christian König
Hi Julien, sorry, totally missed that question. I think the cleanest approach would be that the OpenMAX state tracker dlopen()s the EGL and tries to export the eglImage into a dma_buf handle. No idea how to do this, but I'm pretty sure somebody on the mailing list should know the details how

Re: [Mesa-dev] How to write using EGLImage?

2017-07-13 Thread Christian König
Hi Julien, sorry, totally missed that question. I think the cleanest approach would be that the OpenMAX state tracker dlopen()s the EGL and tries to export the eglImage into a dma_buf handle. No idea how to do this, but I'm pretty sure somebody on the mailing list should know the details how

Re: [Mesa-dev] [PATCH] anv/pipeline: use BITFIELD64_BIT() to check enable vertex inputs

2017-07-13 Thread Lionel Landwerlin
Can we depend on src/mesa/main/mtypes.h? Regardless, this fixes an actual issue : Reviewed-by: Lionel Landwerlin Thanks! On 13/07/17 15:48, Juan A. Suarez Romero wrote: When initializing the ANV pipeline, one of the tasks is checking which vertex inputs are enabled. This is done by checking

Re: [Mesa-dev] [PATCH v2 05/11] gbm: Pull out FourCC <-> DRIimage format table

2017-07-13 Thread Jason Ekstrand
On July 13, 2017 4:13:17 AM Daniel Stone wrote: Rather than duplicated (yet asymmetric) open-coded tables, pull them out to a common structure. Signed-off-by: Daniel Stone --- src/gbm/Makefile.am| 1 + src/gbm/backends/dri/gbm_dri.c | 113 +++

Re: [Mesa-dev] [PATCH v2 05/11] gbm: Pull out FourCC <-> DRIimage format table

2017-07-13 Thread Daniel Stone
Hi, On 13 July 2017 at 16:59, Jason Ekstrand wrote: > On July 13, 2017 4:13:17 AM Daniel Stone wrote: >> + /* The two GBM_BO_FORMAT_[XA]RGB formats alias the GBM_FORMAT_* >> +* formats of the same name. We want to accept them whenever someone >> +* has a GBM format, but never retur

Re: [Mesa-dev] [PATCH v2 06/11] gbm: Check harder for supported formats

2017-07-13 Thread Jason Ekstrand
On July 13, 2017 4:12:53 AM Daniel Stone wrote: Luckily no-one really used the is_format_supported() call, because it only supported three formats. Also, since buffers with alpha can be displayed on planes, stop banning them from use. Signed-off-by: Daniel Stone --- src/gbm/backends/dri/gbm

Re: [Mesa-dev] [PATCH v2 09/11] egl/wayland: Remove more surface specifics from create_wl_buffer

2017-07-13 Thread Jason Ekstrand
On July 13, 2017 4:13:50 AM Daniel Stone wrote: Signed-off-by: Daniel Stone --- src/egl/drivers/dri2/platform_wayland.c | 31 ++- 1 file changed, 14 insertions(+), 17 deletions(-) v2: Don't remove surf->back assignment. Oops. diff --git a/src/egl/drivers/dri2/pla

Re: [Mesa-dev] [PATCH] st/mesa: Handle st_framebuffer_create returning NULL

2017-07-13 Thread Charmaine Lee
Reviewed-by: Charmaine Lee From: Michel Dänzer Sent: Thursday, July 13, 2017 12:21 AM To: mesa-dev@lists.freedesktop.org Cc: Charmaine Lee; Brian Paul Subject: [PATCH] st/mesa: Handle st_framebuffer_create returning NULL From: Michel Dänzer st_framebuf

Re: [Mesa-dev] [PATCH v2 10/11] egl/wayland: Remove duplicate wl_buffer creation code

2017-07-13 Thread Jason Ekstrand
On July 13, 2017 4:13:53 AM Daniel Stone wrote: Now create_wl_buffer is generic enough, we can use it for the EGL_WL_create_wayland_buffer_from_image extension. Signed-off-by: Daniel Stone --- src/egl/drivers/dri2/platform_wayland.c | 71 + 1 file changed, 11

Re: [Mesa-dev] [PATCH v2 02/11] egl/wayland: Fix whitespace damage

2017-07-13 Thread Eric Engestrom
On Thursday, 2017-07-13 12:12:30 +0100, Daniel Stone wrote: > Convert tabs to spaces, fix misalignments. > > Signed-off-by: Daniel Stone > --- > src/egl/drivers/dri2/platform_wayland.c | 38 > + > 1 file changed, 20 insertions(+), 18 deletions(-) > > v2: No chan

Re: [Mesa-dev] [PATCH v2 01/11] util: Remove u_math from u_vector

2017-07-13 Thread Eric Engestrom
On Thursday, 2017-07-13 15:38:11 +0200, Lucas Stach wrote: > Am Donnerstag, den 13.07.2017, 12:12 +0100 schrieb Daniel Stone: > > u_vector.h doesn't actually use anything from u_math, but it does mean > > everyone has to pull in src/gallium/auxiliary/util includes. > > > > Just remove it, adding a

Re: [Mesa-dev] [PATCH v2 10/11] egl/wayland: Remove duplicate wl_buffer creation code

2017-07-13 Thread Daniel Stone
Hi, Apologies if the mobile client mangles formatting. I've heard this new version is better, so let's see if it's really true. On Thu, 13 Jul 2017 at 5:20 pm, Jason Ekstrand wrote: > On July 13, 2017 4:13:53 AM Daniel Stone wrote: > > @@ -650,21 +650,23 @@ create_wl_buffer(struct dri2_egl_disp

Re: [Mesa-dev] [PATCH v2 11/11] egl/wayland: Use linux-dmabuf interface for buffers

2017-07-13 Thread Jason Ekstrand
On July 13, 2017 4:13:04 AM Daniel Stone wrote: When available, use the zwp_linux_dambuf_v1 interface to create buffers, which allows multiple planes and buffer modifiers to be used. Signed-off-by: Daniel Stone --- configure.ac| 5 +- src/egl/Makefile.am

Re: [Mesa-dev] [PATCH v2 05/11] gbm: Pull out FourCC <-> DRIimage format table

2017-07-13 Thread Jason Ekstrand
On July 13, 2017 9:03:01 AM Daniel Stone wrote: Hi, On 13 July 2017 at 16:59, Jason Ekstrand wrote: On July 13, 2017 4:13:17 AM Daniel Stone wrote: + /* The two GBM_BO_FORMAT_[XA]RGB formats alias the GBM_FORMAT_* +* formats of the same name. We want to accept them whenever someo

Re: [Mesa-dev] [PATCH] anv/pipeline: use BITFIELD64_BIT() to check enable vertex inputs

2017-07-13 Thread Matt Turner
On Thu, Jul 13, 2017 at 7:48 AM, Juan A. Suarez Romero wrote: > When initializing the ANV pipeline, one of the tasks is checking which > vertex inputs are enabled. This is done by checking if the enabled bits > in inputs_read. > > But the mask to use is computed doing `(1 << (VERT_ATTRIB_GENERIC0

Re: [Mesa-dev] [PATCH] st/mesa: add a winsys buffers list in st_context

2017-07-13 Thread Andy Furniss
OK, thanks, I missed that. Brian Paul wrote: A patch to fix this was already posted and reviewed. I'll push it soon since I think Michel is off-line this time of day. -Brian On 07/13/2017 09:17 AM, Andy Furniss wrote: This breaks startx on radeonsi for me on a R9 285. [ 5297.130] (II) gla

Re: [Mesa-dev] [PATCH 0/8] compiler: Add a new gl_image_format enum and use it

2017-07-13 Thread Eric Anholt
Jason Ekstrand writes: > I know what you're all thinking: Why are we adding yet another format > enum? I asked myself the same question. Really, I've spent enough of my > life writing format enum conversion tables that I should know better. > > It all started as an attempt to write patch 6 whi

[Mesa-dev] [PATCH] st/mesa: handle stfbi being NULL on entry of st_framebuffer_reuse_or_create

2017-07-13 Thread Lucas Stach
Apparently this can happen. Just bail out early in that case, as all the called functions return NULL in that case. Fixes weston-terminal for me. Fixes: 147d7fb772a7 ("st/mesa: add a winsys buffers list in st_context") Signed-off-by: Lucas Stach --- src/mesa/state_tracker/st_manager.c | 3 +++

[Mesa-dev] [PATCH 0/9] intel: coverity round of fixes

2017-07-13 Thread Lionel Landwerlin
Hi all, Here are some fixes for coverity issues. Cheers, Lionel Landwerlin (9): isl: use 64bit arithmetic to compute size intel/compiler: remove check unsigned is >= 0 i965: map_gtt: check mapping address before adding offset i965: check pointer before dereferencing it intel/compiler:

[Mesa-dev] [PATCH 1/9] isl: use 64bit arithmetic to compute size

2017-07-13 Thread Lionel Landwerlin
If we allow the size to be more than 2^32, then we should compute it in 64bit arithmetic otherwise we might run into overflow issues. CID: 1412892, 1412891 Signed-off-by: Lionel Landwerlin --- src/intel/isl/isl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/i

[Mesa-dev] [PATCH 2/9] intel/compiler: remove check unsigned is >= 0

2017-07-13 Thread Lionel Landwerlin
By definition unsigned are always >= 0. CID: 742212 Signed-off-by: Lionel Landwerlin --- src/intel/compiler/brw_eu_emit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_eu_emit.c b/src/intel/compiler/brw_eu_emit.c index 231d6fdaec0..0b0d67a5c56 100644

[Mesa-dev] [PATCH 6/9] i965: fix missing NULL return if allocation fails

2017-07-13 Thread Lionel Landwerlin
CID: 1250585 Signed-off-by: Lionel Landwerlin --- src/mesa/drivers/dri/i965/intel_buffer_objects.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/i965/intel_buffer_objects.c b/src/mesa/drivers/dri/i965/intel_buffer_objects.c index 85cc1a694bf..fde6b224cd4 100644 --- a/s

[Mesa-dev] [PATCH 4/9] i965: check pointer before dereferencing it

2017-07-13 Thread Lionel Landwerlin
Check that irb isn't NULL before accessing irb->Base.Base.NumSamples. CID: 1026046 Signed-off-by: Lionel Landwerlin --- src/mesa/drivers/dri/i965/intel_tex_copy.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_tex_copy.c b/src/

[Mesa-dev] [PATCH 3/9] i965: map_gtt: check mapping address before adding offset

2017-07-13 Thread Lionel Landwerlin
The NULL check might fail if offset isn't 0. CID: 971379 Signed-off-by: Lionel Landwerlin --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipm

[Mesa-dev] [PATCH 9/9] aubinator: don't leak fd of opened aubfile

2017-07-13 Thread Lionel Landwerlin
CID: 1373563 Signed-off-by: Lionel Landwerlin --- src/intel/tools/aubinator.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel/tools/aubinator.c b/src/intel/tools/aubinator.c index 6c9a8f052c2..48d4456cc16 100644 --- a/src/intel/tools/aubinator.c +++ b/src/intel/tools/aubinator.c @

[Mesa-dev] [PATCH 7/9] intel/compiler: no need to check unsigned is >= 0

2017-07-13 Thread Lionel Landwerlin
CID: 1338342 Signed-off-by: Lionel Landwerlin --- src/intel/compiler/brw_fs_nir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_fs_nir.cpp b/src/intel/compiler/brw_fs_nir.cpp index a9dce42c38d..aea2c625630 100644 --- a/src/intel/compiler/brw_fs_nir.

[Mesa-dev] [PATCH 5/9] intel/compiler: don't check unsigned is >= 0

2017-07-13 Thread Lionel Landwerlin
CID: 1224468 Signed-off-by: Lionel Landwerlin --- src/intel/compiler/brw_vec4_gs_visitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_vec4_gs_visitor.cpp b/src/intel/compiler/brw_vec4_gs_visitor.cpp index f763f482365..ca59927cd3a 100644 --- a/src

[Mesa-dev] [PATCH 8/9] anv: don't use strcpy for copying strings

2017-07-13 Thread Lionel Landwerlin
CID: 1358935 Signed-off-by: Lionel Landwerlin --- src/intel/vulkan/anv_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 39c907e9f2d..d3607deccfc 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/i

Re: [Mesa-dev] [PATCH] st/mesa: handle stfbi being NULL on entry of st_framebuffer_reuse_or_create

2017-07-13 Thread Charmaine Lee
Reviewed-by: Charmaine Lee From: Lucas Stach Sent: Thursday, July 13, 2017 10:01 AM To: mesa-dev@lists.freedesktop.org Cc: Charmaine Lee; Brian Paul Subject: [PATCH] st/mesa: handle stfbi being NULL on entry of st_framebuffer_reuse_or_create Apparently

Re: [Mesa-dev] [PATCH 0/9] intel: coverity round of fixes

2017-07-13 Thread Anuj Phogat
On Thu, Jul 13, 2017 at 10:08 AM, Lionel Landwerlin wrote: > Hi all, > > Here are some fixes for coverity issues. > > Cheers, > > Lionel Landwerlin (9): > isl: use 64bit arithmetic to compute size > intel/compiler: remove check unsigned is >= 0 > i965: map_gtt: check mapping address before a

[Mesa-dev] [Bug 100708] Trine 2 doesn't start on radeonsi on mesa 17

2017-07-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100708 --- Comment #9 from Kamil Páral --- I can confirm this problem with Radeon 270. I've seen this error: XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0" after 178 requests (178 known processed) with 4 events remai

Re: [Mesa-dev] [PATCH 03/10] egl: split _eglParseImageAttribList into per extension functions

2017-07-13 Thread Emil Velikov
On 13 July 2017 at 08:48, Michel Dänzer wrote: > On 30/06/17 08:15 PM, Emil Velikov wrote: >> Will allow us to simplify existing code and make further improvements >> short and simple. >> >> No functional change intended. > > Famous last words. :) > Unfortunately. > This broke the piglit test > s

[Mesa-dev] [PATCH 1/2] intel/decoder: Reuse the MAX2 macro instead of defining another one.

2017-07-13 Thread Eric Anholt
--- src/intel/common/gen_decoder.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c index ba3a5139aec6..60591ad666bf 100644 --- a/src/intel/common/gen_decoder.c +++ b/src/intel/common/gen_decoder.c @@ -39,8 +39,6

[Mesa-dev] [PATCH 2/2] intel/decoder: Reuse the gen_make_gen() helper.

2017-07-13 Thread Eric Anholt
--- src/intel/common/gen_decoder.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c index 60591ad666bf..85880143f00e 100644 --- a/src/intel/common/gen_decoder.c +++ b/src/intel/common/gen_decoder.c @@ -39,8 +39,6

[Mesa-dev] [PATCH] egl: propagate EGL_BAD_ATTRIBUTE during EGLImage attr parsing

2017-07-13 Thread Emil Velikov
From: Emil Velikov Earlier commit refactored/split the parsing into separate hunks. While no functional change was intended, it did not attribute that different error is set when the attrib. value is incorrect. Fixes: 3ee2be4113d ("egl: split _eglParseImageAttribList into per extension function

Re: [Mesa-dev] [PATCH 1/2] intel/decoder: Reuse the MAX2 macro instead of defining another one.

2017-07-13 Thread Lionel Landwerlin
This series is : Reviewed-by: Lionel Landwerlin Thanks! On 13/07/17 19:37, Eric Anholt wrote: --- src/intel/common/gen_decoder.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c index ba3a5139aec6..60591a

Re: [Mesa-dev] [PATCH 0/8] compiler: Add a new gl_image_format enum and use it

2017-07-13 Thread Jason Ekstrand
On Thu, Jul 13, 2017 at 9:57 AM, Eric Anholt wrote: > Jason Ekstrand writes: > > > I know what you're all thinking: Why are we adding yet another format > > enum? I asked myself the same question. Really, I've spent enough of my > > life writing format enum conversion tables that I should kno

[Mesa-dev] [PATCH 2/8] anv: Drop support for VK_KHX_external_semaphore_*

2017-07-13 Thread Jason Ekstrand
These have been formally deprecated by Khronos never to be shipped again. The KHR versions should be implemented/used instead. --- src/intel/vulkan/anv_device.c | 12 src/intel/vulkan/anv_entrypoints_gen.py | 3 - src/intel/vulkan/anv_queue.c| 115 ++-

[Mesa-dev] [PATCH 0/8] vulkan: Update to 1.0.54

2017-07-13 Thread Jason Ekstrand
This little series updates us to the 1.0.54 headers and XML. The major change here is that 1.0.54 dropped the VK_KHX_external* extensions and replaced them with VK_KHR variants. The first three patches drop support for the KHX versions from anv and radv and the last 3 implement the KHR version of

[Mesa-dev] [PATCH 1/8] anv: Drop support for VK_KHX_external_memory_*

2017-07-13 Thread Jason Ekstrand
These have been formally deprecated by Khronos never to be shipped again. The KHR versions should be implemented/used instead. --- src/intel/vulkan/anv_device.c | 84 ++--- src/intel/vulkan/anv_entrypoints_gen.py | 3 -- src/intel/vulkan/anv_formats.c

[Mesa-dev] [PATCH 3/8] radv: Drop support for VK_KHX_external_memory_*

2017-07-13 Thread Jason Ekstrand
These have been formally deprecated by Khronos never to be shipped again. The KHR versions should be implemented/used instead. --- src/amd/vulkan/radv_device.c | 68 +--- src/amd/vulkan/radv_entrypoints_gen.py | 3 - src/amd/vulkan/radv_formats.c | 112 --

[Mesa-dev] [PATCH 5/8] anv: Advertise version 1.0.54

2017-07-13 Thread Jason Ekstrand
--- src/intel/vulkan/anv_device.c | 2 +- src/intel/vulkan/dev_icd.json.in | 2 +- src/intel/vulkan/intel_icd.json.in | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 3ee21a8..e63742f 100644 --- a/src/

[Mesa-dev] [PATCH 8/8] anv: Implement VK_KHR_external_memory_*

2017-07-13 Thread Jason Ekstrand
--- src/intel/vulkan/anv_device.c | 86 +++-- src/intel/vulkan/anv_entrypoints_gen.py | 3 ++ src/intel/vulkan/anv_formats.c | 79 ++ 3 files changed, 163 insertions(+), 5 deletions(-) diff --git a/src/intel/vulkan/anv_de

[Mesa-dev] [PATCH 4/8] vulkan: Update to the new 1.0.54 spec XML and headers

2017-07-13 Thread Jason Ekstrand
There is one small ANV change here because we used the VK_ERROR_INVALID_EXTERNAL_HANDLE_KHX enum in the BO cache and that had to be updated to have the _KHR suffix. --- There's more to this patch but I dropped the XML and header update because they are highly uninteresting. The only interesting b

[Mesa-dev] [PATCH 6/8] anv: Implement VK_KHR_get_memory_requirements2

2017-07-13 Thread Jason Ekstrand
--- src/intel/vulkan/anv_device.c | 47 + src/intel/vulkan/anv_entrypoints_gen.py | 1 + 2 files changed, 48 insertions(+) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index e63742f..b374fac 100644 --- a/src/intel/vulkan/anv

[Mesa-dev] [PATCH 7/8] anv: Implement VK_KHR_dedicated_allocation

2017-07-13 Thread Jason Ekstrand
We always recommend sub-allocation and don't do anything special for dedicated allocations. --- src/intel/vulkan/anv_device.c | 18 ++ src/intel/vulkan/anv_entrypoints_gen.py | 1 + 2 files changed, 19 insertions(+) diff --git a/src/intel/vulkan/anv_device.c b/src/intel

[Mesa-dev] [PATCH 0/8] anv, spirv: Implement VK_KHR_variable_pointers

2017-07-13 Thread Jason Ekstrand
This little series contains the SPIR-V and ANV bits for the new VK_KHR_variable_pointers extension and it's prerequisite extension VK_KHR_storage_buffer_storage_class. Cc: Connor Abbott Jason Ekstrand (8): spirv: Import the latest 1.0.2 header from Khronos spirv: Add support for the StorageB

[Mesa-dev] [PATCH 4/8] nir/spirv: Implement OpPtrAccessChain for buffers

2017-07-13 Thread Jason Ekstrand
--- src/compiler/spirv/spirv_to_nir.c | 4 +++- src/compiler/spirv/vtn_private.h | 11 --- src/compiler/spirv/vtn_variables.c | 23 +++ 3 files changed, 34 insertions(+), 4 deletions(-) diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_n

[Mesa-dev] [PATCH 7/8] anv: Advertise support for VK_KHR_storage_buffer_storage_class

2017-07-13 Thread Jason Ekstrand
--- src/intel/vulkan/anv_device.c | 4 src/intel/vulkan/anv_entrypoints_gen.py | 1 + 2 files changed, 5 insertions(+) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 6fc57cd..cc37f40 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan

[Mesa-dev] [PATCH 6/8] nir/spirv: Add support for SPV_KHR_variable_pointers

2017-07-13 Thread Jason Ekstrand
--- src/compiler/spirv/nir_spirv.h | 1 + src/compiler/spirv/spirv_to_nir.c | 42 --- src/compiler/spirv/vtn_cfg.c | 5 +++-- src/compiler/spirv/vtn_private.h | 23 +-- src/compiler/spirv/vtn_variables.c | 45 ++

[Mesa-dev] [PATCH 5/8] nir/spirv: Add a helper for pushing SSA values

2017-07-13 Thread Jason Ekstrand
--- src/compiler/spirv/spirv_to_nir.c | 5 +++-- src/compiler/spirv/vtn_cfg.c | 11 +-- src/compiler/spirv/vtn_private.h | 9 + src/compiler/spirv/vtn_variables.c | 5 +++-- 4 files changed, 20 insertions(+), 10 deletions(-) diff --git a/src/compiler/spirv/spirv_to_nir

[Mesa-dev] [PATCH 1/8] spirv: Import the latest 1.0.2 header from Khronos

2017-07-13 Thread Jason Ekstrand
--- src/compiler/spirv/spirv.h | 41 + 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/src/compiler/spirv/spirv.h b/src/compiler/spirv/spirv.h index 89354c0..61559a1 100644 --- a/src/compiler/spirv/spirv.h +++ b/src/compiler/spirv/spirv.h @@ -

[Mesa-dev] [PATCH 3/8] spirv/nir: Add some useful asserts for type decorations

2017-07-13 Thread Jason Ekstrand
Now that vtn_type has piles of unions, we should assert sanity before setting fields that may stomp others. --- src/compiler/spirv/spirv_to_nir.c | 4 1 file changed, 4 insertions(+) diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index 763dbf4..89ebc5f 10

[Mesa-dev] [PATCH 8/8] anv: Advertise support for VK_KHR_variable_pointers

2017-07-13 Thread Jason Ekstrand
We don't support the general version yet because that requires us to lower shared variables up-front in SPIR-V -> NIR. This shouldn't be a whole lot of work but it's not something we support today. --- src/intel/vulkan/anv_device.c | 11 +++ src/intel/vulkan/anv_entrypoints_gen.

[Mesa-dev] [PATCH 2/8] spirv: Add support for the StorageBuffer storage class

2017-07-13 Thread Jason Ekstrand
--- src/compiler/spirv/vtn_variables.c | 4 1 file changed, 4 insertions(+) diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c index 5af27bf..4f21fdd 100644 --- a/src/compiler/spirv/vtn_variables.c +++ b/src/compiler/spirv/vtn_variables.c @@ -1405,6 +1405,1

[Mesa-dev] [PATCH] gallium/u_blitter: don't use TXF for scaled blits

2017-07-13 Thread Marek Olšák
From: Marek Olšák There seems to be a rounding difference with F2I vs nearest filtering. The precise problem in the rounding is unknown. This fixes an incorrect output with OpenMAX encoding. --- src/gallium/auxiliary/util/u_blitter.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions

[Mesa-dev] [PATCH] st/va: Fix scaling list ordering for H.265

2017-07-13 Thread Mark Thompson
Mesa here requires the scaling lists in diagonal scan order, but VAAPI passes them in raster scan order. Therefore, rearrange the elements when copying. (This ordering was likely inherited from VDPAU, which does pass them in diagonal scan order.) Signed-off-by: Mark Thompson --- Fixes some of t

Re: [Mesa-dev] [PATCH 4/4] i965: Orphan storage in MapBufferRange if invalidating all valid data.

2017-07-13 Thread Jason Ekstrand
Do you have any data on how much this helps? Regardless, the series is Reviewed-by: Jason Ekstrand On Mon, Jun 12, 2017 at 5:33 PM, Kenneth Graunke wrote: > We can promote INVALIDATE_RANGE_BIT to INVALIDATE_BUFFER_BIT if the > range contains the only valid data in the buffer. This allows us

[Mesa-dev] [PATCH] ac/nir: rewrite shared variable handling (v2)

2017-07-13 Thread Connor Abbott
From: Connor Abbott Translate the NIR variables directly to LLVM instead of lowering to a TGSI-style giant array of vec4's and then back to a variable. This should fix indirect dereferences, make shared variables more tightly packed, and make LLVM's alias analysis more precise. This should fix an

[Mesa-dev] [PATCH 6/8] anv/gem: Add a drm syncobj support

2017-07-13 Thread Jason Ekstrand
--- src/intel/vulkan/anv_gem.c | 52 src/intel/vulkan/anv_gem_stubs.c | 24 +++ src/intel/vulkan/anv_private.h | 4 3 files changed, 80 insertions(+) diff --git a/src/intel/vulkan/anv_gem.c b/src/intel/vulkan/anv_gem.c index 5

[Mesa-dev] [PATCH 4/8] anv: Implement support for exporting semaphores as FENCE_FD

2017-07-13 Thread Jason Ekstrand
--- src/intel/vulkan/anv_batch_chain.c | 68 -- src/intel/vulkan/anv_device.c | 1 + src/intel/vulkan/anv_gem.c | 36 src/intel/vulkan/anv_private.h | 23 + src/intel/vulkan/anv_queue.c | 56 ++

[Mesa-dev] [PATCH 1/8] anv: Add a basic implementation of VK_KHX_external_semaphore

2017-07-13 Thread Jason Ekstrand
This patch adds an implementation based on DRM BOs. We don't actually advertise the extension yet because we want to add a couple more paths first. --- src/intel/vulkan/anv_entrypoints_gen.py | 6 ++ src/intel/vulkan/anv_queue.c| 116 ++-- 2 files changed

[Mesa-dev] [PATCH 3/8] anv/gem: Use EXECBUFFER2_WR when the FENCE_OUT flag is set

2017-07-13 Thread Jason Ekstrand
Reviewed-by: Chad Versace --- src/intel/vulkan/anv_gem.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_gem.c b/src/intel/vulkan/anv_gem.c index ac47da4..36692f5 100644 --- a/src/intel/vulkan/anv_gem.c +++ b/src/intel/vulkan/anv_gem.c @@ -185,7 +185,1

[Mesa-dev] [PATCH 5/8] intel/drm: Pull in the i916 fence array API

2017-07-13 Thread Jason Ekstrand
--- include/drm-uapi/i915_drm.h | 30 -- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/include/drm-uapi/i915_drm.h b/include/drm-uapi/i915_drm.h index c26bf7c..338c8c2 100644 --- a/include/drm-uapi/i915_drm.h +++ b/include/drm-uapi/i915_drm.h @@ -431,6

[Mesa-dev] [PATCH 7/8] anv: Use DRM sync objects for external semaphores when available

2017-07-13 Thread Jason Ekstrand
--- src/intel/vulkan/anv_batch_chain.c | 56 +++ src/intel/vulkan/anv_device.c | 1 + src/intel/vulkan/anv_private.h | 8 src/intel/vulkan/anv_queue.c | 93 -- 4 files changed, 134 insertions(+), 24 deletions(-) diff --

[Mesa-dev] [PATCH 2/8] anv: Submit a dummy batch when only semaphores are provided.

2017-07-13 Thread Jason Ekstrand
Vulkan allows you to do a submit whose only job is to wait on and trigger semaphores. The easiest way for us to support that right now is to insert a dummy execbuf. --- src/intel/vulkan/anv_batch_chain.c | 28 +--- src/intel/vulkan/anv_device.c | 26 ++

[Mesa-dev] [PATCH 8/8] anv: Advertise VK_KHR_external_semaphore

2017-07-13 Thread Jason Ekstrand
--- src/intel/vulkan/anv_device.c | 12 1 file changed, 12 insertions(+) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index fe464e0..712cc7f 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -414,6 +414,10 @@ static const

[Mesa-dev] [PATCH 0/8] anv: Implement VK_KHR_external_semaphore

2017-07-13 Thread Jason Ekstrand
This series adds back in the VK_KHR_external_semaphore extensions and re-ups my userspace patches to use the new kernel API I proposed on top of DRM syncobj. For the KHR version, I'd like to wait on advertising the extension until the syncobj kernel bits land. That way we never have to worry abou

Re: [Mesa-dev] [PATCH 4/4] i965: Orphan storage in MapBufferRange if invalidating all valid data.

2017-07-13 Thread Kenneth Graunke
On Thursday, July 13, 2017 3:04:59 PM PDT Jason Ekstrand wrote: > Do you have any data on how much this helps? Regardless, the series is > > Reviewed-by: Jason Ekstrand Thanks! It turns out that, no, I don't have any data on this patch. I'd originally found it helpful, but I had been testing

Re: [Mesa-dev] XCOM: Enemy Unknown vs. NaN texture unit LOD bias

2017-07-13 Thread Ian Romanick
On 07/10/2017 11:25 PM, Kenneth Graunke wrote: > Hello, > > Mesa master has been hitting assert failures when running "XCOM: Enemy > Unknown" since commit f8d69beed49c64f883bb8ffb28d4960306baf575, where we > started asserting that the SAMPLER_STATE LOD Bias value actually fits in > the correct num

Re: [Mesa-dev] [PATCH 3/4] i965: Use async maps for BufferSubData to regions with no valid data.

2017-07-13 Thread Chris Wilson
Quoting Chris Wilson (2017-06-13 12:57:05) > Quoting Kenneth Graunke (2017-06-13 01:33:31) > > When writing a region of a buffer via glBufferSubData(), we can write > > the data asynchronously if the destination doesn't contain any data. > > Even if it's busy, the data was undefined, so the new dat

Re: [Mesa-dev] [PATCH 1/8] spirv: Import the latest 1.0.2 header from Khronos

2017-07-13 Thread Ian Romanick
Shouldn't this also update capability_to_string in spriv_info.c? I'm also questioning that implementation... there are huge blocks in that array (e.g., all the elements from 61 to 4322) that are zeroed out by the initialization. This will cause spirv_capability_to_string() to happily return NULL

Re: [Mesa-dev] [PATCH 2/3] nv20: Fix GL_CLAMP

2017-07-13 Thread Ilia Mirkin
According to rnndb, GL_CLAMP with value 0x5 is actually supported on nv10+. I'd name the function *_nv10. I have, at various times, tried to solve some issues by using the 0x5 clamp on my nv1x hardware (nv17 and nv18), with no positive effect. This is a piglit run I have around from some time back

Re: [Mesa-dev] [PATCH 1/8] spirv: Import the latest 1.0.2 header from Khronos

2017-07-13 Thread Jason Ekstrand
On Thu, Jul 13, 2017 at 6:38 PM, Ian Romanick wrote: > Shouldn't this also update capability_to_string in spriv_info.c? Yes, probably. > I'm > also questioning that implementation... there are huge blocks in that > array (e.g., all the elements from 61 to 4322) that are zeroed out by > the

Re: [Mesa-dev] [PATCH 1/8] spirv: Import the latest 1.0.2 header from Khronos

2017-07-13 Thread Ian Romanick
On 07/13/2017 06:57 PM, Jason Ekstrand wrote: > On Thu, Jul 13, 2017 at 6:38 PM, Ian Romanick > wrote: > > Shouldn't this also update capability_to_string in spriv_info.c? > > > Yes, probably. > > > I'm > also questioning that implementation... ther

[Mesa-dev] [Bug 101775] Xorg segfault since 147d7fb "st/mesa: add a winsys buffers list in st_context"

2017-07-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101775 Michel Dänzer changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [PATCH] i965 : Performance Improvement

2017-07-13 Thread aravindan . muthukumar
From: Aravindan M This patch improves CPI Rate(Cycles per Instruction) and CPU time utilization for i965. The functions check_state and brw_pipeline_state_finished was found poor CPU utilization from performance analysis. Change-Id: I17c7e719a16e222764217a0e67b4482748537b67 Signed-off-by: Aravin

Re: [Mesa-dev] [PATCH] i965 : Performance Improvement

2017-07-13 Thread Kenneth Graunke
On Thursday, July 13, 2017 9:09:09 PM PDT aravindan.muthuku...@intel.com wrote: > From: Aravindan M The commit title should be something like, "i965: Optimize atom state flag checks" rather than a generic "Performance Improvement" > This patch improves CPI Rate(Cycles per Instruction) > and CPU

[Mesa-dev] [PATCH] i965 : Performance Improvement

2017-07-13 Thread aravindan . muthukumar
From: Aravindan M This patch improves CPI Rate(Cycles per Instruction) and CPU time utilization for i965. The functions check_state and brw_pipeline_state_finished was found poor CPU utilization from performance analysis. Change-Id: I17c7e719a16e222764217a0e67b4482748537b67 Signed-off-by: Aravin

[Mesa-dev] [PATCH 1/2] meta: Actually initialize ImmutableLevels to 1.

2017-07-13 Thread Kenneth Graunke
Otherwise, ImmutableLevels is 0, which is an illegal value. Later, _mesa_meta_setup_sampler will use _mesa_texture_parameteriv to set texObj->MaxLevel = CLAMP(params[0], texObj->BaseLevel, texObj->ImmutableLevels - 1); which turns into a completely bogus CLAMP(valu

[Mesa-dev] [PATCH 2/2] util: Make CLAMP turn NaN into MIN.

2017-07-13 Thread Kenneth Graunke
The previous implementation of CLAMP() allowed NaN to pass through unscathed, by failing both comparisons. NaN isn't exactly a value between MIN and MAX, which can break the assumptions of many callers. This patch changes CLAMP to convert NaN to MIN, arbitrarily. Callers that need NaN to be hand

Re: [Mesa-dev] [PATCH] i965 : Performance Improvement

2017-07-13 Thread Marathe, Yogesh
Kenneth, > -Original Message- > From: mesa-dev [mailto:mesa-dev-boun...@lists.freedesktop.org] On Behalf > Of Kenneth Graunke > Sent: Friday, July 14, 2017 10:05 AM > To: mesa-dev@lists.freedesktop.org > Cc: Muthukumar, Aravindan > Subject: Re: [Mesa-dev] [PATCH] i965 : Performance Improv

[Mesa-dev] [RFC v2 02/23] RFC: egl/x11: Support DRI3 v1.1

2017-07-13 Thread Louis-Francis Ratté-Boulianne
Add support for DRI3 v1.1, which allows pixmaps to be backed by multi-planar buffers, or those with format modifiers. This is both for allocating render buffers, as well as EGLImage imports from a native pixmap (EGL_NATIVE_PIXMAP_KHR). Signed-off-by: Louis-Francis Ratté-Boulianne Reviewed-by: Eri

[Mesa-dev] [RFC v2 01/23] dri3: Move up fourcc utility function

2017-07-13 Thread Louis-Francis Ratté-Boulianne
It will be needed in next patches. Signed-off-by: Louis-Francis Ratté-Boulianne --- src/loader/loader_dri3_helper.c | 42 - 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/loader/loader_dri3_helper.c b/src/loader/loader_dri3_helper.c in

[Mesa-dev] [RFC v2 03/23] intel/isl: Add ISL <-> DRM modifier conversion

2017-07-13 Thread Louis-Francis Ratté-Boulianne
From: Chad Versace It converts a DRM format modifier to and from enum isl_tiling and aux_usage. That's all. --- src/intel/Makefile.isl.am | 1 + src/intel/isl/isl.c | 59 +++ src/intel/isl/isl.h | 16 + 3 files changed, 76 inse

[Mesa-dev] [RFC v2 06/23] anv: Add func anv_get_raw_format()

2017-07-13 Thread Louis-Francis Ratté-Boulianne
From: Chad Versace Like anv_get_format(), but the returned format is not adjusted, not even for the aspect. Add anv_get_raw_isl_format() too, to match anv_get_isl_format(). --- src/intel/vulkan/anv_formats.c | 7 +++ src/intel/vulkan/anv_private.h | 8 2 files changed, 15 insertion

[Mesa-dev] [RFC v2 07/23] anv: Annotate anv_get_*format() as pure

2017-07-13 Thread Louis-Francis Ratté-Boulianne
From: Chad Versace --- src/intel/vulkan/anv_private.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 88bda9a9d6..0e9fd26348 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_privat

  1   2   3   >