[Mesa-dev] [Bug 107550] "0[2]" as function parameter hits assert

2018-08-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107550 Tapani Pälli changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

Re: [Mesa-dev] [PATCH 1/2] egl/android: fix regression in drm_gralloc path

2018-08-15 Thread Robert Foss
Hey Mauro, Thanks for catching this. On 14/08/2018 22.27, Mauro Rossi wrote: This patch fixes a regression in mesa 18.2 and mesa-dev branches for HAVE_DRM_GRALLOC code path which is causing black screen on Android and prevents boot due to SIGSEGV MAPERR crash related to unproper handling of drm

Re: [Mesa-dev] [PATCH 1/2] egl/android: fix regression in drm_gralloc path

2018-08-15 Thread Mauro Rossi
Hi Robert, Il giorno mer 15 ago 2018 alle ore 09:37 Robert Foss < robert.f...@collabora.com> ha scritto: > Hey Mauro, > > Thanks for catching this. > > On 14/08/2018 22.27, Mauro Rossi wrote: > > This patch fixes a regression in mesa 18.2 and mesa-dev branches > > for HAVE_DRM_GRALLOC code path wh

Re: [Mesa-dev] [PATCH v3 1/6] xmlconfig: refine driParseConfigFiles to use parseOneConfigFile

2018-08-15 Thread Michel Dänzer
On 2018-08-06 05:19 AM, Qiang Yu wrote: > Also prepare for the usage of following parseConfigDir patch. > > Signed-off-by: Qiang Yu > --- > src/util/xmlconfig.c | 62 > > 1 file changed, 28 insertions(+), 34 deletions(-) > > diff --git a/src

Re: [Mesa-dev] [PATCH] i965: Reuse the same single-page bo for all zero sized allocations

2018-08-15 Thread Michal Srb
Hi, This is my first attempt to review patch for Mesa, so please take it with a grain of salt. On úterý 14. srpna 2018 20:21:40 CEST Chris Wilson wrote: > @@ -504,6 +506,24 @@ bo_alloc_internal(struct brw_bufmgr *bufmgr, > bool busy = false; > bool zeroed = false; > > + /* Reuse the s

Re: [Mesa-dev] [PATCH] i965: Reuse the same single-page bo for all zero sized allocations

2018-08-15 Thread Chris Wilson
Quoting Michal Srb (2018-08-15 09:22:19) > Hi, > > This is my first attempt to review patch for Mesa, so please take it with a > grain of salt. > > On úterý 14. srpna 2018 20:21:40 CEST Chris Wilson wrote: > > @@ -504,6 +506,24 @@ bo_alloc_internal(struct brw_bufmgr *bufmgr, > > bool busy =

Re: [Mesa-dev] [PATCH v3 1/6] xmlconfig: refine driParseConfigFiles to use parseOneConfigFile

2018-08-15 Thread Yu, Qiang
Thanks, Michel. > What's the point of having the separate _parseOneConfigFile function? > It's not used outside of parseOneConfigFile AFAICT. No particular reason from mine, just move out the inline part. So should be same reason as the original code to separate the parser prepare part and the re

Re: [Mesa-dev] [PATCH v4 1/2] intel/ppgtt: memory address alignment

2018-08-15 Thread Sergii Romantsov
Hello, Kenneth. Thanks for remarks. Will update patch soon and also will try to look on 3DSTATE_SO_BUFFER. On Tue, Aug 14, 2018 at 8:39 PM, Kenneth Graunke wrote: > Hi Sergii, > > This patch causes 2,384 failures in CI. The issue is that we're > apparently trying to allocate 0 size BOs in some

Re: [Mesa-dev] [PATCH 00/14] Adjusting OpenGL limits and constants

2018-08-15 Thread Dieter Nützel
For the series Tested-by: Dieter Nützel Dieter Am 09.08.2018 01:55, schrieb Marek Olšák: Hi, The idea is to expose similar limits as our closed driver. There are also some bug fixes. Please review. Thanks, Marek ___ mesa-dev mailing list mesa-dev

Re: [Mesa-dev] [PATCH 0/8] Easy OpenGL extensions

2018-08-15 Thread Dieter Nützel
Hello Marek, sadly this series didn't apply on top of current git master. Dieter Am 09.08.2018 04:12, schrieb Marek Olšák: Hi, This series adds these extensions: - AMD_gpu_shader_int64 - AMD_multi_draw_indirect - AMD_query_buffer_object - AMD_texture_texture4 - EXT_vertex_attrib_64bit It als

Re: [Mesa-dev] [PATCH 0/8] Easy OpenGL extensions

2018-08-15 Thread Dieter Nützel
Ah, with 'latest' stuff only #8 choke. Dieter Am 15.08.2018 11:21, schrieb Dieter Nützel: Hello Marek, sadly this series didn't apply on top of current git master. Dieter Am 09.08.2018 04:12, schrieb Marek Olšák: Hi, This series adds these extensions: - AMD_gpu_shader_int64 - AMD_multi_dr

Re: [Mesa-dev] [PATCH v2] intel/decoder: fix the possible out of bounds group_iter

2018-08-15 Thread andrey simiklit
Hi all, Thanks for your reply. We shouldn't even get to use the iterator if it's an unknown instruction. > The decoder should just advance dword by dword until it finds something > that > makes sense again. > Got it) So this is an expected behavior there: return iter_group_offset_bits(iter, ite

Re: [Mesa-dev] [PATCH] radv: Update to new VK_EXT_vertex_attribute_divisor to version 2.

2018-08-15 Thread Jason Ekstrand
On Tue, Aug 14, 2018 at 7:20 AM Samuel Pitoiset wrote: > Reviewed-by: Samuel Pitoiset > > On 7/23/18 4:24 PM, Bas Nieuwenhuizen wrote: > > Behavior wrt firstInstance got changed, and a divisor of 0 has been > > disallowed. > > > > The new version of the ext got published in specification 1.1.81.

Re: [Mesa-dev] [PATCH] intel: decoder: unify MI_BB_START field naming

2018-08-15 Thread Jason Ekstrand
I think I have a similar patch laying around in my 2nd level batch buffer branch. :) Reviewed-by: Jason Ekstrand On Tue, Aug 14, 2018 at 5:26 AM Lionel Landwerlin < lionel.g.landwer...@intel.com> wrote: > The batch decoder looks for a field with a particular name to decide > whether an MI_BB_ST

Re: [Mesa-dev] [PATCH 4/5] nir: Lower flrp(1.0, b, c) and flrp(a, 1.0, c) differently

2018-08-15 Thread Jason Ekstrand
re-associating based on whether or not something has a constant value of 1.0 seems a bit sneaky. I think it's well within the rules but it seems like something that could bite you. On Mon, Aug 13, 2018 at 6:35 PM Ian Romanick wrote: > From: Ian Romanick > > Instead of lowering as (a + c(b - a)

Re: [Mesa-dev] [PATCH] radv: Update to new VK_EXT_vertex_attribute_divisor to version 2.

2018-08-15 Thread Samuel Pitoiset
On 8/15/18 11:49 AM, Jason Ekstrand wrote: On Tue, Aug 14, 2018 at 7:20 AM Samuel Pitoiset mailto:samuel.pitoi...@gmail.com>> wrote: Reviewed-by: Samuel Pitoiset mailto:samuel.pitoi...@gmail.com>> On 7/23/18 4:24 PM, Bas Nieuwenhuizen wrote: > Behavior wrt firstInstance got chan

[Mesa-dev] [PATCH 03/21] mesa: drop legacy no_rast dri option

2018-08-15 Thread Timothy Arceri
Add enviroment var overrides to legacy drivers instead. --- src/mesa/drivers/dri/i915/intel_context.c| 2 +- src/mesa/drivers/dri/i915/intel_screen.c | 1 - src/mesa/drivers/dri/i965/intel_screen.c | 1 - src/mesa/drivers/dri/r200/r200_context.c | 2 +- src/mesa/drivers/dri/radeon/

[Mesa-dev] [PATCH 02/21] i965: remove unused no_rast bool

2018-08-15 Thread Timothy Arceri
Forcing software fallbacks for i965 hasn't been an option since 5e3c093ff866. --- src/mesa/drivers/dri/i965/brw_context.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index 72be8f2a4d0..c32def7c3d7 100644 ---

[Mesa-dev] [PATCH 07/21] mesa: remove dri configs unused software-fallback options

2018-08-15 Thread Timothy Arceri
These seems to have only been used by DRI1 drivers which were removed with e4344161bde2. --- src/util/xmlpool/ca.po | 8 src/util/xmlpool/de.po | 8 src/util/xmlpool/es.po | 8 src/util/xmlpool/fr.po | 8 src/util/xmlpool/nl.po

[Mesa-dev] [PATCH 01/21] i915: remove early_z dri option

2018-08-15 Thread Timothy Arceri
This driver is in maintenance mode so lets remove this hidden unsafe option. --- src/mesa/drivers/dri/i915/i915_vtbl.c | 8 src/mesa/drivers/dri/i915/intel_context.c | 2 -- src/mesa/drivers/dri/i915/intel_context.h | 2 -- src/mesa/drivers/dri/i915/intel_screen.c | 4 4 files c

[Mesa-dev] Tidy up dri config options

2018-08-15 Thread Timothy Arceri
This series removes some unused options, replaces some legacy debug options with env vars instead and moves a bunch of old radeon dri driver options directly into the drivers. I haven't bothered copying all the radeon dri translations as I didn't want to waste my time as it seems unlikely anyone w

[Mesa-dev] [PATCH 05/21] mesa: remove unused dri config option disable_shader_bit_encoding

2018-08-15 Thread Timothy Arceri
This was added as a workaround for Heaven 3.0 but was later removed by 5ead448719f3 to allow Heaven 4.0 to work correctly. --- src/gallium/auxiliary/pipe-loader/driinfo_gallium.h | 1 - src/gallium/include/state_tracker/st_api.h | 1 - src/gallium/state_trackers/dri/dri_screen.c |

[Mesa-dev] [PATCH 04/21] mesa: remove unused dri config option performance_boxes

2018-08-15 Thread Timothy Arceri
This seems to have only been used by DRI1 drivers which were removed with e4344161bde2. --- src/util/xmlpool/ca.po | 4 src/util/xmlpool/de.po | 4 src/util/xmlpool/es.po | 4 src/util/xmlpool/fr.po | 4 src/util/xmlpool/nl.po | 4 src/util/xm

[Mesa-dev] [PATCH 10/21] mesa: move legacy dri config option color_reduction

2018-08-15 Thread Timothy Arceri
--- src/mesa/drivers/dri/radeon/radeon_screen.h | 10 ++ src/util/xmlpool/ca.po | 12 src/util/xmlpool/de.po | 12 src/util/xmlpool/es.po | 12 src/util/xmlpool/fr.po

[Mesa-dev] [PATCH 11/21] mesa: move legacy dri config option dither_mode

2018-08-15 Thread Timothy Arceri
--- src/mesa/drivers/dri/radeon/radeon_screen.h | 12 src/util/xmlpool/ca.po | 16 src/util/xmlpool/de.po | 16 src/util/xmlpool/es.po | 16 src/util/xmlpool/fr.po

[Mesa-dev] [PATCH 13/21] mesa: move legacy dri config option texture_blend_quality

2018-08-15 Thread Timothy Arceri
--- src/mesa/drivers/dri/radeon/radeon_screen.c | 6 ++ src/util/xmlpool/ca.po | 6 -- src/util/xmlpool/de.po | 6 -- src/util/xmlpool/es.po | 6 -- src/util/xmlpool/fr.po | 5 - src/util/xmlpoo

[Mesa-dev] [PATCH 12/21] util: remove unused S3TC translation for dri config

2018-08-15 Thread Timothy Arceri
--- src/util/xmlpool/ca.po | 7 --- src/util/xmlpool/de.po | 7 --- src/util/xmlpool/es.po | 7 --- src/util/xmlpool/fr.po | 6 -- src/util/xmlpool/nl.po | 7 --- src/util/xmlpool/sv.po | 5 - 6 files changed, 39 deletions(-) diff --git a/src/util/xmlpool/ca.po b/src/util/

[Mesa-dev] [PATCH 09/21] mesa: remove legacy TCL dri config options

2018-08-15 Thread Timothy Arceri
Use enviroment var overrides in legacy drivers instead. --- src/mesa/drivers/dri/r200/r200_context.c | 4 +--- src/mesa/drivers/dri/radeon/radeon_context.c | 5 ++--- src/mesa/drivers/dri/radeon/radeon_screen.c | 2 -- src/util/xmlpool/ca.po | 23

[Mesa-dev] [PATCH 08/21] mesa: move legacy hyperz option from dri config

2018-08-15 Thread Timothy Arceri
--- src/mesa/drivers/dri/radeon/radeon_screen.c | 5 + src/util/xmlpool/ca.po | 4 src/util/xmlpool/de.po | 4 src/util/xmlpool/es.po | 4 src/util/xmlpool/fr.po | 4 src/util/xmlpool/nl.po

[Mesa-dev] [PATCH 16/21] mesa: remove unused dri option float_depth

2018-08-15 Thread Timothy Arceri
This seems to have only been used by DRI1 drivers which were removed with e4344161bde2. --- src/util/xmlpool/ca.po | 4 src/util/xmlpool/de.po | 4 src/util/xmlpool/es.po | 4 src/util/xmlpool/fr.po | 4 src/util/xmlpool/nl.po | 4 src/util/xm

[Mesa-dev] [PATCH 06/21] mesa: remove unused dri config option excess_mipmap

2018-08-15 Thread Timothy Arceri
This seems to have only been used by DRI1 drivers which were removed with e4344161bde2. --- src/util/xmlpool/t_options.h | 5 - 1 file changed, 5 deletions(-) diff --git a/src/util/xmlpool/t_options.h b/src/util/xmlpool/t_options.h index 3e5993caf78..f0dc78dd595 100644 --- a/src/util/xmlpool/

[Mesa-dev] [PATCH 14/21] mesa: remove unused dri config option texture_heaps

2018-08-15 Thread Timothy Arceri
This seems to have only been used by DRI1 drivers which were removed with e4344161bde2. --- src/util/xmlpool/ca.po | 16 src/util/xmlpool/de.po | 16 src/util/xmlpool/es.po | 16 src/util/xmlpool/fr.po | 16

[Mesa-dev] [PATCH 19/21] mesa: move legacy dri config option def_max_anisotropy

2018-08-15 Thread Timothy Arceri
--- src/mesa/drivers/dri/radeon/radeon_screen.c | 5 + src/util/xmlpool/ca.po | 4 src/util/xmlpool/de.po | 4 src/util/xmlpool/es.po | 4 src/util/xmlpool/fr.po | 4 src/util/xmlpool/nl.po

[Mesa-dev] [PATCH 17/21] mesa: move legacy dri config option round_mode

2018-08-15 Thread Timothy Arceri
--- src/mesa/drivers/dri/radeon/radeon_screen.h | 10 ++ src/util/xmlpool/ca.po | 12 src/util/xmlpool/de.po | 12 src/util/xmlpool/es.po | 12 src/util/xmlpool/fr.po

[Mesa-dev] [PATCH 15/21] mesa: move legacy dri config option texture_units

2018-08-15 Thread Timothy Arceri
--- src/mesa/drivers/dri/radeon/radeon_screen.c | 5 + src/util/xmlpool/ca.po | 4 src/util/xmlpool/de.po | 4 src/util/xmlpool/es.po | 4 src/util/xmlpool/fr.po | 4 src/util/xmlpool/nl.po

[Mesa-dev] [PATCH 21/21] mesa: move legacy dri config option texture_depth

2018-08-15 Thread Timothy Arceri
--- src/mesa/drivers/dri/radeon/radeon_screen.h | 13 + src/util/xmlpool/ca.po | 20 src/util/xmlpool/de.po | 20 src/util/xmlpool/es.po | 20 src/util/xmlpool/

[Mesa-dev] [PATCH 18/21] mesa: move legacy dri config option no_neg_lod_bias

2018-08-15 Thread Timothy Arceri
--- src/mesa/drivers/dri/radeon/radeon_screen.c | 5 + src/util/xmlpool/ca.po | 6 -- src/util/xmlpool/de.po | 4 src/util/xmlpool/es.po | 4 src/util/xmlpool/fr.po | 4 src/util/xmlpool/nl.p

[Mesa-dev] [PATCH 20/21] mesa: move legacy dri config option fthrottle_mode

2018-08-15 Thread Timothy Arceri
--- src/mesa/drivers/dri/radeon/radeon_screen.h | 12 src/util/xmlpool/ca.po | 17 - src/util/xmlpool/de.po | 17 - src/util/xmlpool/es.po | 17 - src/util/xmlpool/fr.po

Re: [Mesa-dev] [PATCH 09/21] mesa: remove legacy TCL dri config options

2018-08-15 Thread Michel Dänzer
On 2018-08-15 12:13 PM, Timothy Arceri wrote: > Use enviroment var overrides in legacy drivers instead. This could break existing user configurations using the driconf tcl_mode option. Apart from this, I like the idea of this series. -- Earthling Michel Dänzer | htt

Re: [Mesa-dev] [PATCH 09/21] mesa: remove legacy TCL dri config options

2018-08-15 Thread Timothy Arceri
On 15/08/18 20:26, Michel Dänzer wrote: On 2018-08-15 12:13 PM, Timothy Arceri wrote: Use enviroment var overrides in legacy drivers instead. This could break existing user configurations using the driconf tcl_mode option. Apart from this, I like the idea of this series. I assumed this was

[Mesa-dev] [PATCH] radv: add Doom workaround

2018-08-15 Thread Timothy Arceri
Cc: --- src/amd/vulkan/radv_device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 33f24b9d302..cc88abb57a8 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -480,6 +480,9 @@ radv_handle_per_a

Re: [Mesa-dev] [PATCH 1/2] egl/android: fix regression in drm_gralloc path

2018-08-15 Thread Emil Velikov
On 15 August 2018 at 09:13, Mauro Rossi wrote: > Hi Robert, > Il giorno mer 15 ago 2018 alle ore 09:37 Robert Foss > ha scritto: >> >> Hey Mauro, >> >> Thanks for catching this. >> >> On 14/08/2018 22.27, Mauro Rossi wrote: >> > This patch fixes a regression in mesa 18.2 and mesa-dev branches >>

Re: [Mesa-dev] [PATCH] radv: add Doom workaround

2018-08-15 Thread Mike Lothian
Do you need the game name here, isn't that set in driconf? On Wed, 15 Aug 2018 at 12:12 Timothy Arceri wrote: > Cc: > --- > src/amd/vulkan/radv_device.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c > index 33f24b9d302..

[Mesa-dev] [PATCH v5 1/2] intel/ppgtt: memory address alignment

2018-08-15 Thread Sergii Romantsov
Kernel (for ppgtt) requires memory address to be aligned to page size (4096). -v2: added marking that also fixes initial commit 01058a552294. -v3: numbers replaced by PAGE_SIZE; buffer-object size is aligned instead of alignment of offsets (Chris Wilson). -v4: changes related to PAGE_SIZE moved to

[Mesa-dev] [PATCH v5 2/2] intel/ppgtt: 4096 replaced by PAGE_SIZE

2018-08-15 Thread Sergii Romantsov
Usage of number 4096 replaced by PAGE_SIZE. Signed-off-by: Sergii Romantsov --- src/mesa/drivers/dri/i965/brw_bufmgr.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.c b/src/mesa/drivers/dri/i965/brw_bufmgr.c index 19e2d14..

[Mesa-dev] [PATCH] Add NV_fragment_shader_interlock support.

2018-08-15 Thread kevin . rogovin
From: Kevin Rogovin The main purpose for having NV_fragment_shader_interlock extension is because that extension is also for GLES31 while the ARB extension is for GL only. --- src/compiler/glsl/builtin_functions.cpp | 18 ++ src/compiler/glsl/glsl_parser.yy | 6 --

Re: [Mesa-dev] [PATCH v5 1/2] intel/ppgtt: memory address alignment

2018-08-15 Thread Lionel Landwerlin
On 15/08/18 12:23, Sergii Romantsov wrote: Kernel (for ppgtt) requires memory address to be aligned to page size (4096). -v2: added marking that also fixes initial commit 01058a552294. -v3: numbers replaced by PAGE_SIZE; buffer-object size is aligned instead of alignment of offsets (Chris Wilson

Re: [Mesa-dev] [PATCH 1/2] egl/android: fix regression in drm_gralloc path

2018-08-15 Thread Mauro Rossi
Hi Emil, Il Mer 15 Ago 2018, 13:16 Emil Velikov ha scritto: > On 15 August 2018 at 09:13, Mauro Rossi wrote: > > Hi Robert, > > Il giorno mer 15 ago 2018 alle ore 09:37 Robert Foss > > ha scritto: > >> > >> Hey Mauro, > >> > >> Thanks for catching this. > >> > >> On 14/08/2018 22.27, Mauro Ros

Re: [Mesa-dev] [PATCH] radv/meta_decompress: fix pointer to integer conversion

2018-08-15 Thread Mauro Rossi
Hi Bas, Il giorno mar 14 ago 2018 alle ore 23:10 Bas Nieuwenhuizen < b...@basnieuwenhuizen.nl> ha scritto: > On Tue, Aug 14, 2018 at 10:48 PM, Mauro Rossi > wrote: > > (VkShaderModule) cast is added before NULL to avoid following building > error: > > > > external/mesa/src/amd/vulkan/radv_meta_d

Re: [Mesa-dev] [PATCH] radv: add Doom workaround

2018-08-15 Thread Bas Nieuwenhuizen
On Wed, Aug 15, 2018 at 1:16 PM, Mike Lothian wrote: > Do you need the game name here, isn't that set in driconf? There is no driconf for vulkan/radv yet. Reviewed-by: Bas Nieuwenhuizen I assume you tested that it works with the workaround? > > On Wed, 15 Aug 2018 at 12:12 Timothy Arceri wro

Re: [Mesa-dev] [PATCH] radv/meta_decompress: fix pointer to integer conversion

2018-08-15 Thread Bas Nieuwenhuizen
On Wed, Aug 15, 2018 at 2:04 PM, Mauro Rossi wrote: > Hi Bas, > > Il giorno mar 14 ago 2018 alle ore 23:10 Bas Nieuwenhuizen > ha scritto: >> >> On Tue, Aug 14, 2018 at 10:48 PM, Mauro Rossi >> wrote: >> > (VkShaderModule) cast is added before NULL to avoid following building >> > error: >> > >>

Re: [Mesa-dev] [PATCH] radv: add Doom workaround

2018-08-15 Thread Samuel Pitoiset
I don't like this... but patch is: Reviewed-by: Samuel Pitoiset On 8/15/18 1:12 PM, Timothy Arceri wrote: Cc: --- src/amd/vulkan/radv_device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 33f24b9d302..cc88abb57a8 1

Re: [Mesa-dev] [PATCH] radv: drop wrong initialization of COMPUTE_RESOURCE_LIMITS

2018-08-15 Thread Samuel Pitoiset
On 8/14/18 9:15 PM, Bas Nieuwenhuizen wrote: On Tue, Aug 14, 2018 at 6:11 PM, Samuel Pitoiset wrote: The last parameter of radeon_set_sh_reg_seq() is the number of dwords to emit. We were lucky because WAVES_PER_SH(0x3) is 3 but it was initialized to 0. COMPUTE_RESOURCE_LIMITS is correctly s

Re: [Mesa-dev] [PATCH] radv: add Doom workaround

2018-08-15 Thread Timothy Arceri
On 15/08/18 22:06, Bas Nieuwenhuizen wrote: On Wed, Aug 15, 2018 at 1:16 PM, Mike Lothian wrote: Do you need the game name here, isn't that set in driconf? There is no driconf for vulkan/radv yet. Reviewed-by: Bas Nieuwenhuizen I assume you tested that it works with the workaround? Yes.

[Mesa-dev] [PATCH v1] i965: Emitting 3DSTATE_SO_BUFFER of 0-size.

2018-08-15 Thread Sergii Romantsov
Avoided filling of whole structure and bo-allocation if size of surface is 0. Signed-off-by: Sergii Romantsov --- src/mesa/drivers/dri/i965/genX_state_upload.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/i965/genX_state_upload.c b/src/mesa/d

Re: [Mesa-dev] [PATCH v3 0/6] support config for third-party DRI driver load

2018-08-15 Thread Emil Velikov
On 6 August 2018 at 04:19, Qiang Yu wrote: > This patch series is discussed in thread: > https://lists.freedesktop.org/archives/mesa-dev/2018-July/201348.html > > amdgpu-pro driver can use drirc config to override the mesa radeonsi > dri driver so that it can use the mesa libgbm instead of maintai

Re: [Mesa-dev] [Mesa-stable] [PATCH] radv: add Doom workaround

2018-08-15 Thread Emil Velikov
On 15 August 2018 at 13:17, Timothy Arceri wrote: > On 15/08/18 22:06, Bas Nieuwenhuizen wrote: >> >> On Wed, Aug 15, 2018 at 1:16 PM, Mike Lothian wrote: >>> >>> Do you need the game name here, isn't that set in driconf? >> >> >> There is no driconf for vulkan/radv yet. >> >> Reviewed-by: Bas Ni

[Mesa-dev] [ANNOUNCE] mesa 18.2.0-rc3

2018-08-15 Thread Andres Gomez
Hello list, The third release candidate for the Mesa 18.2.0 is now available. Currently we have: - 24 queued - 1 nominated (outstanding) - and 0 rejected patches In the current queue we have: The GLSL compiler has received a correction when hitting an error condition. Mesa's state tracker h

[Mesa-dev] [PATCH 1/2] glsl: Avoid propagating incompatible type of initializer

2018-08-15 Thread Danylo Piliaiev
do_assignment validated assigment but when rhs type was not compatible it proceeded without issues and returned error_emitted = false. On the other hand process_initializer expected do_assignment to always return compatible type and never fail. As a result when variable was initialized with incomp

[Mesa-dev] [PATCH 2/2] glsl: Add an assert when cloning ir_dereference_record with invalid field

2018-08-15 Thread Danylo Piliaiev
Signed-off-by: Danylo Piliaiev --- src/compiler/glsl/ir_clone.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/glsl/ir_clone.cpp b/src/compiler/glsl/ir_clone.cpp index 69441fae7d..e1f4f3b290 100644 --- a/src/compiler/glsl/ir_clone.cpp +++ b/src/compiler/glsl/ir_clone.cpp @@ -1

[Mesa-dev] [PATCH] radv: disable the auto-waitcnt-before-barrier LLVM option

2018-08-15 Thread Samuel Pitoiset
This option allows us to remove additional s_waitcnt instructions because s_barrier internally does s_waitcnt 0. Though, apparently there is a problem with LDS accesses that causes rendering issues with FFXV and DXVK. Disable this optimization for now (RadeonSI still uses it). Bugzilla: https://b

[Mesa-dev] [PATCH] egl/android: do not indent HAVE_DRM_GRALLOC preprocessor directive

2018-08-15 Thread Mauro Rossi
Fixes: 3f7bca44d9 ("egl/android: #ifdef out flink name support") Fixes: c7bb82136b ("egl/android: Add DRM node probing and filtering") Signed-off-by: Mauro Rossi --- src/egl/drivers/dri2/platform_android.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/egl/drivers/d

[Mesa-dev] [Bug 107563] [RADV] Broken rendering in Unity demos

2018-08-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107563 --- Comment #5 from Samuel Pitoiset --- Can you try to record a renderdoc trace that reproduces the issue please? -- You are receiving this mail because: You are the assignee for the bug. You are the QA Contact for the bug.

[Mesa-dev] [PATCH] radv: fix memory leaks in radv_load_meta_pipeline()

2018-08-15 Thread Samuel Pitoiset
Reported by Coverity. Fixes: fbcd167314 ("radv: Add on-demand compilation of built-in shaders.") Signed-off-by: Samuel Pitoiset --- src/amd/vulkan/radv_meta.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_meta.c b/src/amd/vulkan/radv_meta.c index cc

Re: [Mesa-dev] [PATCH v3 0/6] support config for third-party DRI driver load

2018-08-15 Thread Yu, Qiang
> Pardon for the delay, Qiang Yu Series looks good and is > Reviewed-by: Emil Velikov > > The series has been on the list for a while, Michel seems happy with > it, so I'm inclined to merge this late today/early tomorrow. > Please keep an eye open for any bug reports - just a gut feeling. Thank

Re: [Mesa-dev] [PATCH] radv: disable the auto-waitcnt-before-barrier LLVM option

2018-08-15 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Wed, Aug 15, 2018 at 3:09 PM, Samuel Pitoiset wrote: > This option allows us to remove additional s_waitcnt instructions > because s_barrier internally does s_waitcnt 0. > > Though, apparently there is a problem with LDS accesses that > causes rendering issues w

Re: [Mesa-dev] [PATCH] radv: drop wrong initialization of COMPUTE_RESOURCE_LIMITS

2018-08-15 Thread Bas Nieuwenhuizen
On Wed, Aug 15, 2018 at 2:13 PM, Samuel Pitoiset wrote: > > > On 8/14/18 9:15 PM, Bas Nieuwenhuizen wrote: >> >> On Tue, Aug 14, 2018 at 6:11 PM, Samuel Pitoiset >> wrote: >>> >>> The last parameter of radeon_set_sh_reg_seq() is the number of >>> dwords to emit. We were lucky because WAVES_PER_SH

Re: [Mesa-dev] [PATCH] radv: disable the auto-waitcnt-before-barrier LLVM option

2018-08-15 Thread Samuel Pitoiset
On 8/15/18 3:33 PM, Bas Nieuwenhuizen wrote: Reviewed-by: Bas Nieuwenhuizen On Wed, Aug 15, 2018 at 3:09 PM, Samuel Pitoiset wrote: This option allows us to remove additional s_waitcnt instructions because s_barrier internally does s_waitcnt 0. Though, apparently there is a problem with LD

Re: [Mesa-dev] [PATCH] radv: drop wrong initialization of COMPUTE_RESOURCE_LIMITS

2018-08-15 Thread Samuel Pitoiset
On 8/15/18 3:34 PM, Bas Nieuwenhuizen wrote: On Wed, Aug 15, 2018 at 2:13 PM, Samuel Pitoiset wrote: On 8/14/18 9:15 PM, Bas Nieuwenhuizen wrote: On Tue, Aug 14, 2018 at 6:11 PM, Samuel Pitoiset wrote: The last parameter of radeon_set_sh_reg_seq() is the number of dwords to emit. We we

Re: [Mesa-dev] [PATCH] radv: fix memory leaks in radv_load_meta_pipeline()

2018-08-15 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Wed, Aug 15, 2018 at 3:28 PM, Samuel Pitoiset wrote: > Reported by Coverity. > > Fixes: fbcd167314 ("radv: Add on-demand compilation of built-in shaders.") > Signed-off-by: Samuel Pitoiset > --- > src/amd/vulkan/radv_meta.c | 5 +++-- > 1 file changed, 3 inser

[Mesa-dev] [PATCH v1] i965/bo/perf: 0-sized-bo allocation log

2018-08-15 Thread Sergii Romantsov
Added debug-log in case of bo-allocation with 0 size. Potentially we may not need to allocate such buffers and each case could be analyzed to improve behaviour. Signed-off-by: Sergii Romantsov --- src/mesa/drivers/dri/i965/brw_bufmgr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/m

Re: [Mesa-dev] [PATCH v1] i965: Emitting 3DSTATE_SO_BUFFER of 0-size.

2018-08-15 Thread Sergii Romantsov
Hello, that patch is according to remark: > > "Additionally, we probably ought to fix the callers to stop allocating 0 > size BOs. > It looks like most of them come from the 3DSTATE_SO_BUFFER code, > where one stream has valid transform feedback info, and the other > 3 are empty. " And seems add

[Mesa-dev] [Bug 107460] radv: OpControlBarrier does not always work correctly (bisected)

2018-08-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107460 Samuel Pitoiset changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Mesa-dev] [PATCH] radv: Possible demand compilation fix.

2018-08-15 Thread Bas Nieuwenhuizen
Seems that in a single case we use the renderpass before checking the pipeline, so check the renderpass before we use it. Fixes: fbcd1673144 "radv: Add on-demand compilation of built-in shaders." --- src/amd/vulkan/radv_meta_resolve_fs.c | 8 1 file changed, 8 insertions(+) diff --git a

Re: [Mesa-dev] [PATCH] radv: Update to new VK_EXT_vertex_attribute_divisor to version 2.

2018-08-15 Thread Bas Nieuwenhuizen
On Wed, Aug 15, 2018 at 11:49 AM, Jason Ekstrand wrote: > On Tue, Aug 14, 2018 at 7:20 AM Samuel Pitoiset > wrote: >> >> Reviewed-by: Samuel Pitoiset >> >> On 7/23/18 4:24 PM, Bas Nieuwenhuizen wrote: >> > Behavior wrt firstInstance got changed, and a divisor of 0 has been >> > disallowed. >> >

[Mesa-dev] [PATCH] radv: Revert divisor = 0 case for vertex attribute extension.

2018-08-15 Thread Bas Nieuwenhuizen
Seems like DXVK depends on that and it might get reverted upstream. Since apps are not supposed to use 0 in v2 anyway, we should be safe implementing the old behavior there. Fixes: 66e12451ac4 "radv: Update to new VK_EXT_vertex_attribute_divisor to version 2." CC: 18.2 --- src/amd/vulkan/radv_n

Re: [Mesa-dev] [PATCH] radv: Revert divisor = 0 case for vertex attribute extension.

2018-08-15 Thread Samuel Pitoiset
Reviewed-by: Samuel Pitoiset On 8/15/18 4:30 PM, Bas Nieuwenhuizen wrote: Seems like DXVK depends on that and it might get reverted upstream. Since apps are not supposed to use 0 in v2 anyway, we should be safe implementing the old behavior there. Fixes: 66e12451ac4 "radv: Update to new VK_EXT

Re: [Mesa-dev] [PATCH v5 1/2] intel/ppgtt: memory address alignment

2018-08-15 Thread Lionel Landwerlin
On 15/08/18 12:23, Sergii Romantsov wrote: Kernel (for ppgtt) requires memory address to be aligned to page size (4096). -v2: added marking that also fixes initial commit 01058a552294. -v3: numbers replaced by PAGE_SIZE; buffer-object size is aligned instead of alignment of offsets (Chris Wilson

[Mesa-dev] [PATCH v4 2/4] gm107/ir: add support for OP_XMAD on GM107+

2018-08-15 Thread Rhys Perry
v4: make the immediate field 16 bits Signed-off-by: Rhys Perry --- .../drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp | 65 ++ .../nouveau/codegen/nv50_ir_target_gm107.cpp | 6 +- .../nouveau/codegen/nv50_ir_target_nvc0.cpp| 1 + 3 files changed, 71 insertions

[Mesa-dev] [PATCH v4 0/4] nv50/ir: Improve Performance of Integer Multiplication

2018-08-15 Thread Rhys Perry
Changes in v4: - remove uint16_t(...) in nv50_ir.h - change XMAD immediate size from signed 20 bit to unsigned 16 bit - rework the 4th patch Changes in v3: - stylistic changes - simplify createMulMethod2() - update shader-db statistics - use util_bitcount64 and util_next_power_of_two64 instead of

[Mesa-dev] [PATCH v4 1/4] nv50/ir: add preliminary support for OP_XMAD

2018-08-15 Thread Rhys Perry
v4: remove uint16_t(...) v4: don't allow immediates outside [0,65535] in insnCanLoad() Signed-off-by: Rhys Perry Reviewed-by: Karol Herbst --- src/gallium/drivers/nouveau/codegen/nv50_ir.h | 26 ++ .../drivers/nouveau/codegen/nv50_ir_peephole.cpp | 18 +--

[Mesa-dev] [PATCH v4 3/4] nv50/ir: optimize imul/imad to xmads

2018-08-15 Thread Rhys Perry
This hits the shader-db numbers a good bit, though a few xmads is way faster than an imul or imad and the cost is mitigated by the next commit, which optimizes many multiplications by immediates into shorter and less register heavy instructions than the xmads. total instructions in shared programs

[Mesa-dev] [PATCH v4 4/4] nv50/ir: further optimize multiplication by immediates

2018-08-15 Thread Rhys Perry
Strongly mitigates the harm from the previous commit, which made many integer multiplications much more heavy on the register and instruction count. total instructions in shared programs : 5820882 -> 5788434 (-0.56%) total gprs used in shared programs: 670595 -> 669996 (-0.09%) total shared us

Re: [Mesa-dev] [PATCH] radv: Update to new VK_EXT_vertex_attribute_divisor to version 2.

2018-08-15 Thread Jason Ekstrand
On August 15, 2018 09:28:36 Bas Nieuwenhuizen wrote: On Wed, Aug 15, 2018 at 11:49 AM, Jason Ekstrand wrote: On Tue, Aug 14, 2018 at 7:20 AM Samuel Pitoiset wrote: Reviewed-by: Samuel Pitoiset On 7/23/18 4:24 PM, Bas Nieuwenhuizen wrote: Behavior wrt firstInstance got changed, and a div

[Mesa-dev] [PATCH] i965/gen6/xfb: handle case where transform feedback is not active

2018-08-15 Thread asimiklit . work
From: Andrii Simiklit When the SVBI Payload Enable is false I guess the register R1.4 which contains the Maximum Streamed Vertex Buffer Index is filled by zero and GS stops to write transform feedback when the transform feedback is not active. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi

[Mesa-dev] [Bug 107509] corrupted Box in top Right corner in some games

2018-08-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107509 Michel Dänzer changed: What|Removed |Added Attachment #140998|text/x-log |text/plain mime type|

[Mesa-dev] [Bug 107509] corrupted Box in top Right corner in some games

2018-08-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107509 Michel Dänzer changed: What|Removed |Added Assignee|mesa-dev@lists.freedesktop. |dri-devel@lists.freedesktop

Re: [Mesa-dev] [PATCH] i965/gen6/xfb: handle case where transform feedback is not active

2018-08-15 Thread andrey simiklit
Hi all, This workaround just helps me to avoid the graphical corruption on SNB but I not sure is it good idea. Regards, Andrii. On Wed, Aug 15, 2018 at 6:20 PM, wrote: > From: Andrii Simiklit > > When the SVBI Payload Enable is false I guess the register R1.4 > which contains the Maximum Stre

Re: [Mesa-dev] [Mesa-stable] [PATCH] radv: Fix missing Android platform define.

2018-08-15 Thread Dylan Baker
Quoting Bas Nieuwenhuizen (2018-08-09 17:27:46) > CC: > --- > src/amd/vulkan/Android.mk | 2 ++ > src/amd/vulkan/Makefile.am | 2 +- > 2 files changed, 3 insertions(+), 1 deletion(-) > > diff --git a/src/amd/vulkan/Android.mk b/src/amd/vulkan/Android.mk > index cee3744f40b..51b03561fa7 100644 >

Re: [Mesa-dev] [PATCH] Revert "intel/nir: Call nir_lower_io_to_scalar_early"

2018-08-15 Thread Jason Ekstrand
On Tue, Aug 14, 2018 at 7:25 PM Timothy Arceri wrote: > On 09/08/18 05:05, Jason Ekstrand wrote: > > Commit 4434591bf56a6b0 caused substantially more URB messages in > > geometry and tessellation shaders. Before we can really enable this > > sort of optimization, We either need some way of comb

[Mesa-dev] [PATCH 1/3] freedreno: Fix warnings

2018-08-15 Thread Kristian H. Kristensen
From: "Kristian H. Kristensen" Signed-off-by: Kristian H. Kristensen --- src/gallium/drivers/freedreno/a5xx/fd5_compute.c | 2 +- src/gallium/drivers/freedreno/freedreno_resource.c | 8 src/gallium/drivers/freedreno/ir3/ir3.h| 8 ++-- src/gallium/drivers/freedreno/ir3

[Mesa-dev] [PATCH v2 3/5] configure: Enforce python 2.7.x

2018-08-15 Thread Dylan Baker
We don't want to support older versions of python 2 anymore, and we don't support python 3.x in autotools currently. --- configure.ac | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index c2155a541b0..78672734d06 100644 --- a/configure.ac +++ b/configure.ac @

[Mesa-dev] [PATCH v2 4/5] scons: Require python 2.7

2018-08-15 Thread Dylan Baker
less than 2.7 is not supported. v2: - Remove check for python >= 2.0, since we've already enforced 2.7 --- SConstruct | 1 + scons/gallium.py | 4 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/SConstruct b/SConstruct index 6e034fb968f..51dc301a9a8 100644 --- a/SConstruc

[Mesa-dev] [PATCH v2 1/5] meson: Ensure that mako is >= 0.8.0

2018-08-15 Thread Dylan Baker
It's what autotools has required for a long time. --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 7436164946b..5dc9b45eb42 100644 --- a/meson.build +++ b/meson.build @@ -698,9 +698,9 @@ if with_platform_haiku endif prog_py

[Mesa-dev] [PATCH v2 5/5] scons: Check for mako 0.8.0

2018-08-15 Thread Dylan Baker
v2: - Use distutils to do the version checking Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107565 --- scons/gallium.py | 13 + 1 file changed, 13 insertions(+) diff --git a/scons/gallium.py b/scons/gallium.py index 659da72c1c3..aa7201a9715 100755 --- a/scons/gallium.py +++

[Mesa-dev] [PATCH v2 2/5] meson: use python3 module to find python3

2018-08-15 Thread Dylan Baker
This handy helper is nice for OSes that are not linux or BSD like (mac and windows) as it knows how to find python3 in odd places. --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 5dc9b45eb42..c8bac35659f 100644 --- a/meson.build +

Re: [Mesa-dev] [Mesa-stable] [PATCH] radv: Fix missing Android platform define.

2018-08-15 Thread Bas Nieuwenhuizen
On Wed, Aug 15, 2018 at 6:08 PM, Dylan Baker wrote: > Quoting Bas Nieuwenhuizen (2018-08-09 17:27:46) >> CC: >> --- >> src/amd/vulkan/Android.mk | 2 ++ >> src/amd/vulkan/Makefile.am | 2 +- >> 2 files changed, 3 insertions(+), 1 deletion(-) >> >> diff --git a/src/amd/vulkan/Android.mk b/src/am

Re: [Mesa-dev] [Mesa-stable] [PATCH] radv: Fix missing Android platform define.

2018-08-15 Thread Dylan Baker
Quoting Bas Nieuwenhuizen (2018-08-15 09:34:41) > On Wed, Aug 15, 2018 at 6:08 PM, Dylan Baker wrote: > > Quoting Bas Nieuwenhuizen (2018-08-09 17:27:46) > >> CC: > >> --- > >> src/amd/vulkan/Android.mk | 2 ++ > >> src/amd/vulkan/Makefile.am | 2 +- > >> 2 files changed, 3 insertions(+), 1 del

Re: [Mesa-dev] [PATCH 1/2] virgl: do not use SP_MAX_TEXTURE_*_LEVELS defines

2018-08-15 Thread Jakob Bornecrantz
Reviewed-by: Jakob Bornecrantz On Tue, Aug 14, 2018 at 2:02 PM, Erik Faye-Lund wrote: > These macro-names are also used for softpipe, so let's avoid confusion > by avoiding them. Besides, they are just used in one place in virgl, so > let's just inline them into the place they are used instead.

[Mesa-dev] [Bug 105371] r600_shader_from_tgsi - GPR limit exceeded - shader requires 360 registers

2018-08-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105371 --- Comment #11 from MWATTT --- Hello, Many thanks for this series. It fix a lot of bugs. Animated leaders in Civ5 and Civ6 now works fine. It also solves a lot of Minecraft shaderpack's issues. Dolphin-emu's ubershader still however cause prob

  1   2   >