Re: [Mesa-dev] [PATCH v2 3/4] platform/android: Enable kms_swrast fallback

2018-07-17 Thread Robert Foss
Hey Eric, Thanks for the review, adding you r-b. On 2018-07-17 12:48, Eric Engestrom wrote: On Tuesday, 2018-07-17 12:32:59 +0200, 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

[Mesa-dev] [Bug 104926] swrast: Mesa 17.3.3 produces: HW cursor for format 875713089 not supported

2018-07-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104926 --- Comment #6 from Stefan Dirsch --- Hmm. Fix is not yet in git master. :-( -- You are receiving this mail because: You are the assignee for the bug. You are the QA Contact for the bug.___ mesa-dev

Re: [Mesa-dev] [PATCH v2 1/4] softpipe: Add assert verifying successful pipe_transfer_map

2018-07-17 Thread Brian Paul
On 07/17/2018 04:32 AM, Robert Foss wrote: This failure mode is a bit tricky to debug and manifests itself later as a null pointer dereference, for which finding the origin is needlessly tricky. Signed-off-by: Robert Foss --- Changes since v1: - Patch added

Re: [Mesa-dev] [PATCH 1/3] meson: Define NDEBUG for non-debug-builds

2018-07-17 Thread Eric Engestrom
On Tuesday, 2018-07-17 16:09:33 +0100, Eric Engestrom wrote: > On Tuesday, 2018-07-17 10:26:49 -0400, robdcl...@gmail.com wrote: > > On Tue, Jul 17, 2018 at 10:05 AM, Eric Engestrom > > wrote: > > > On Tuesday, 2018-07-17 09:01:46 -0400, > > > mesa-dev-boun...@lists.freedesktop.org wrote: > > >>

[Mesa-dev] [PATCH] libGLw: Use newly introduced GLAPIVAR for variables

2018-07-17 Thread Stefan Dirsch
GLAPI doesn't have an 'extern' in some circumstances. This way, variable declarations become definitions (fdo #100916). Signed-off-by: Stefan Dirsch --- GLwDrawA.h | 12 ++-- GLwDrawAP.h | 4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/GLwDrawA.h b/GLwDrawA.h

[Mesa-dev] [Bug 92987] DRI2: fails to determine screen refresh rate when rendering is offloaded

2018-07-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=92987 Stefan Dirsch changed: What|Removed |Added Resolution|--- |WONTFIX Status|NEW

[Mesa-dev] [Bug 92987] DRI2: fails to determine screen refresh rate when rendering is offloaded

2018-07-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=92987 Stefan Dirsch changed: What|Removed |Added Summary|fails to determine screen |DRI2: fails to determine

Re: [Mesa-dev] [PATCH 1/3] meson: Define NDEBUG for non-debug-builds

2018-07-17 Thread Eric Engestrom
On Tuesday, 2018-07-17 09:01:46 -0400, mesa-dev-boun...@lists.freedesktop.org wrote: > On Mon, Apr 16, 2018 at 5:19 PM, Dylan Baker wrote: > > Quoting Jan Alexander Steffens (heftig) (2018-04-14 10:23:20) > >> This is for parity with autotools. We were suddenly getting assertion > >> failures

Re: [Mesa-dev] [PATCH 1/2] i965/misc: Use depth/stencil surf's tiling on gen4-5

2018-07-17 Thread Mark Janes
Tested-by: Mark Janes Nanley Chery writes: > Make the 3D engine aware of the depth/stencil surface's tiling before > doing any render operations. > > Fixes fbe01625f6bf2cef6742e1ff0d3d44a2afec003e > ("i965/miptree: Share tiling_flags in miptree_create"). > > Reported-by: Mark Janes > --- >

[Mesa-dev] Broken Tags

2018-07-17 Thread Mike Lothian
Hi Is there any change the following tags could be deleted (and recreated if required) from the git repo: R300_DRIVER_0 before_upgrade_03_01_05 blended_fountain embedded-1-20030120 embedded-1-20030224 embedded-1-20030305 embedded-1-20030324 embedded-1-20030417 embedded-1-20030502 gliding_penguin

[Mesa-dev] [Bug 106465] No test for Image Load/Store on format-incompatible texture buffer

2018-07-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106465 Danylo changed: What|Removed |Added CC||danylo.pilia...@gmail.com --- Comment #2 from

Re: [Mesa-dev] [PATCH] i965: batchbuffer: write correct canonical offset with softpin

2018-07-17 Thread Lionel Landwerlin
On 17/07/18 16:01, Lionel Landwerlin wrote: Addresses in the command streams should be in canonical form (i.e bit[63:48] == bit[47]). If the [bo->gtt_offset, bo->gtt_offset + target_offset] range contains the address 0x8000, the current code will fail that criteria. Fixes:

Re: [Mesa-dev] [PATCH v2 3/4] platform/android: Enable kms_swrast fallback

2018-07-17 Thread Robert Foss
Hey Eric, On 2018-07-17 12:48, Eric Engestrom wrote: On Tuesday, 2018-07-17 12:32:59 +0200, 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

Re: [Mesa-dev] [PATCH 1/3] meson: Define NDEBUG for non-debug-builds

2018-07-17 Thread Rob Clark
On Tue, Jul 17, 2018 at 9:01 AM, Rob Clark wrote: > On Mon, Apr 16, 2018 at 5:19 PM, Dylan Baker wrote: >> Quoting Jan Alexander Steffens (heftig) (2018-04-14 10:23:20) >>> This is for parity with autotools. We were suddenly getting assertion >>> failures after switching to meson, see [1]. >>>

Re: [Mesa-dev] [PATCH 1/3] meson: Define NDEBUG for non-debug-builds

2018-07-17 Thread Michel Dänzer
On 2018-07-17 03:07 PM, Rob Clark wrote: > On Tue, Jul 17, 2018 at 9:01 AM, Rob Clark wrote: >> On Mon, Apr 16, 2018 at 5:19 PM, Dylan Baker wrote: >>> Quoting Jan Alexander Steffens (heftig) (2018-04-14 10:23:20) This is for parity with autotools. We were suddenly getting assertion

[Mesa-dev] [PATCH 2/2] clover: Report error when pipe driver fails to create compute state

2018-07-17 Thread Jan Vesely
Signed-off-by: Jan Vesely --- src/gallium/state_trackers/clover/core/kernel.cpp | 4 1 file changed, 4 insertions(+) diff --git a/src/gallium/state_trackers/clover/core/kernel.cpp b/src/gallium/state_trackers/clover/core/kernel.cpp index 4716705323..dab7ef8683 100644 ---

[Mesa-dev] [PATCH] radeonsi: Refuse to accept code with unhandled relocations

2018-07-17 Thread Jan Vesely
They might lead to unrecoverable GPU hang. Signed-off-by: Jan Vesely --- src/gallium/drivers/radeonsi/si_compute.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_compute.c b/src/gallium/drivers/radeonsi/si_compute.c index 5d3341ff61..2349be9584 100644

Re: [Mesa-dev] [PATCH 2/2] intel/isl/gen4: Make depth/stencil buffers Y-Tiled

2018-07-17 Thread Kenneth Graunke
On Monday, July 16, 2018 4:57:40 PM PDT Nanley Chery wrote: > Rendering to a linear depth buffer on gen4 is causing a GPU hang in the > CI system. Until a better explanation is found, assume that errata is > applicable to all gen4 platforms. > > Fixes fbe01625f6bf2cef6742e1ff0d3d44a2afec003e >

Re: [Mesa-dev] [PATCH] gallium: surface remove width/height removal comment

2018-07-17 Thread Roland Scheidegger
Initially, width/height were actually needed because not all pipe_surface objects were backed by pipe_resource objects (that was ages ago...). Hence the comment when that was fixed, since it was always actually possible to derive this from the resource (but a bit too complex to change all the

[Mesa-dev] [PATCH 1/3] radeonsi: Save CLEAR_STATE initial values for optimization

2018-07-17 Thread Sonny Jiang
Signed-off-by: Sonny Jiang --- src/gallium/drivers/radeonsi/si_gfx_cs.c | 28 ++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_gfx_cs.c b/src/gallium/drivers/radeonsi/si_gfx_cs.c index 09f0d3b..ac4909a 100644 ---

[Mesa-dev] [PATCH 3/3] radeonsi: emit_spi_map packets optimization

2018-07-17 Thread Sonny Jiang
Signed-off-by: Sonny Jiang --- src/gallium/drivers/radeonsi/si_build_pm4.h | 23 +++ src/gallium/drivers/radeonsi/si_gfx_cs.c| 2 ++ src/gallium/drivers/radeonsi/si_state.h | 1 + src/gallium/drivers/radeonsi/si_state_shaders.c | 20

[Mesa-dev] [PATCH 2/3] radeonsi: emit_guardband packets optimization

2018-07-17 Thread Sonny Jiang
Signed-off-by: Sonny Jiang --- src/gallium/drivers/radeonsi/si_build_pm4.h | 33 src/gallium/drivers/radeonsi/si_gfx_cs.c | 4 +++ src/gallium/drivers/radeonsi/si_state.h | 5 src/gallium/drivers/radeonsi/si_state_viewport.c | 16 ++--

Re: [Mesa-dev] [PATCH 1/3] meson: Define NDEBUG for non-debug-builds

2018-07-17 Thread Rob Clark
On Mon, Apr 16, 2018 at 5:19 PM, Dylan Baker wrote: > Quoting Jan Alexander Steffens (heftig) (2018-04-14 10:23:20) >> This is for parity with autotools. We were suddenly getting assertion >> failures after switching to meson, see [1]. >> >> [1]: https://bugs.archlinux.org/task/58218 >> >>

Re: [Mesa-dev] [PATCH 1/3] meson: Define NDEBUG for non-debug-builds

2018-07-17 Thread Rob Clark
On Tue, Jul 17, 2018 at 10:05 AM, Eric Engestrom wrote: > On Tuesday, 2018-07-17 09:01:46 -0400, mesa-dev-boun...@lists.freedesktop.org > wrote: >> On Mon, Apr 16, 2018 at 5:19 PM, Dylan Baker wrote: >> > Quoting Jan Alexander Steffens (heftig) (2018-04-14 10:23:20) >> >> This is for parity

[Mesa-dev] [PATCH mesa] meson: disable asserts by default on release builds

2018-07-17 Thread Eric Engestrom
Cc: Rob Clark Cc: Jan Alexander Steffens (heftig) Cc: Dylan Baker Signed-off-by: Eric Engestrom --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index c62cdd0e395259ec984e..eb90f4cf9b265435fb19 100644 --- a/meson.build +++

[Mesa-dev] [PATCH 1/2] clover: Catch errors from executing event action

2018-07-17 Thread Jan Vesely
Abort all dependent events. Signed-off-by: Jan Vesely --- src/gallium/state_trackers/clover/core/event.cpp | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/clover/core/event.cpp b/src/gallium/state_trackers/clover/core/event.cpp index

Re: [Mesa-dev] [PATCH] gm107/ir: use CS2R for SV_CLOCK

2018-07-17 Thread Karol Herbst
that seems like a good enough improvement. I think looking onto other sysvals would be worthwhile as SV_CLOCK isn't used that often. The invocation ID and related ones would be interesting to look into as they are much more common. On Tue, Jul 17, 2018 at 1:59 PM, Rhys Perry wrote: > I'm getting

[Mesa-dev] [PATCH mesa] vk/wsi: avoid reading uninitialised memory

2018-07-17 Thread Eric Engestrom
It will be ignored by x11_swapchain_result() anyway (because reaching the `fail` label without setting `result` means the swapchain status was already a hard error), but the compiler still complains about reading uninitialised memory. While at it, drop the unused assignment right before

[Mesa-dev] [Bug 100916] Multiple definition of `glwMDrawingAreaWidgetClass'

2018-07-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100916 Stefan Dirsch changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Mesa-dev] [PATCH] radv: optimize radv_stage_flush() for pre fragment shader stages

2018-07-17 Thread Samuel Pitoiset
We don't need to emit PS_PARTIAL_FLUSH for the pre fragment shader stages (ie. geometry/tessellation). Emitting VS_PARTIAL_FLUSH is enough for these stages. Note that PS_PARTIAL_FLUSH also synchronizes all vertex stages. Signed-off-by: Samuel Pitoiset --- src/amd/vulkan/radv_cmd_buffer.c | 10

[Mesa-dev] [PATCH] i965: batchbuffer: write correct canonical offset with softpin

2018-07-17 Thread Lionel Landwerlin
Addresses in the command streams should be in canonical form (i.e bit[63:48] == bit[47]). If the [bo->gtt_offset, bo->gtt_offset + target_offset] range contains the address 0x8000, the current code will fail that criteria. Fixes: 1c9053d0765dc6 ("i965: Prepare batchbuffer module for

Re: [Mesa-dev] [PATCH v2 1/3] i965: Sweep NIR after linking phase to free held memory

2018-07-17 Thread Danylo Piliaiev
Could it be pushed? The commit is independent from other in series. - Danil On 12.07.18 00:27, Jason Ekstrand wrote: Reviewed-by: Jason Ekstrand > On Wed, Jul 11, 2018 at 5:29 AM Danylo Piliaiev mailto:danylo.pilia...@gmail.com>> wrote: After optimization

Re: [Mesa-dev] [PATCH] libGLw: Use newly introduced GLAPIVAR for variables

2018-07-17 Thread Brian Paul
On 07/17/2018 07:31 AM, Stefan Dirsch wrote: GLAPI doesn't have an 'extern' in some circumstances. This way, variable declarations become definitions (fdo #100916). Signed-off-by: Stefan Dirsch --- GLwDrawA.h | 12 ++-- GLwDrawAP.h | 4 ++-- 2 files changed, 12 insertions(+), 4

Re: [Mesa-dev] [PATCH 1/3] meson: Define NDEBUG for non-debug-builds

2018-07-17 Thread Eric Engestrom
On Tuesday, 2018-07-17 10:26:49 -0400, robdcl...@gmail.com wrote: > On Tue, Jul 17, 2018 at 10:05 AM, Eric Engestrom > wrote: > > On Tuesday, 2018-07-17 09:01:46 -0400, > > mesa-dev-boun...@lists.freedesktop.org wrote: > >> On Mon, Apr 16, 2018 at 5:19 PM, Dylan Baker wrote: > >> > Quoting Jan

Re: [Mesa-dev] [PATCH] radv: optimize radv_stage_flush() for pre fragment shader stages

2018-07-17 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Tue, Jul 17, 2018 at 5:03 PM, Samuel Pitoiset wrote: > We don't need to emit PS_PARTIAL_FLUSH for the pre fragment shader > stages (ie. geometry/tessellation). Emitting VS_PARTIAL_FLUSH > is enough for these stages. Note that PS_PARTIAL_FLUSH also >

Re: [Mesa-dev] [PATCH 3/3] gallium/u_vbuf: handle indirect multidraws correctly and efficiently

2018-07-17 Thread Eric Anholt
Marek Olšák writes: > From: Marek Olšák > > --- > src/gallium/auxiliary/util/u_vbuf.c | 189 > 1 file changed, 165 insertions(+), 24 deletions(-) > > diff --git a/src/gallium/auxiliary/util/u_vbuf.c > b/src/gallium/auxiliary/util/u_vbuf.c > index

Re: [Mesa-dev] [PATCH 2/3] gallium/u_vbuf: split u_vbuf_get_minmax_index function

2018-07-17 Thread Eric Anholt
Eric Anholt writes: > [ Unknown signature status ] > Marek Olšák writes: > >> From: Marek Olšák >> >> This will be used by indirect multidraws. >> --- >> src/gallium/auxiliary/util/u_vbuf.c | 54 + >> 1 file changed, 31 insertions(+), 23 deletions(-) >> >> diff

[Mesa-dev] [Bug 106644] [llvmpipe] Mesa 18.1.2 fails lp_test_format, lp_test_arit, lp_test_blend, lp_test_printf, lp_test_conv tests

2018-07-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106644 --- Comment #37 from erhar...@mailbox.org --- Created attachment 140674 --> https://bugs.freedesktop.org/attachment.cgi?id=140674=edit test-suite.log (ppc64) GALLIVM_MATTRS="-vsx" & GALLIVM_VSX=0 build Last time I built mesa on ppc64 BE I

[Mesa-dev] [PATCH mesa] anv: remove unnecessary runtime copy of static string

2018-07-17 Thread Eric Engestrom
It's actually also a bit safer, since now the compiler will warn if the string is larger than the `.name` array. Signed-off-by: Eric Engestrom --- src/intel/vulkan/anv_gem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/intel/vulkan/anv_gem.c

Re: [Mesa-dev] [PATCH] glsl: Allow ES2 function parameters to be hidden by variable declarations.

2018-07-17 Thread Ilia Mirkin
On Tue, Jul 17, 2018 at 1:33 PM, Eric Anholt wrote: > Ilia Mirkin writes: > >> On Mon, Jul 16, 2018 at 7:51 PM, Eric Anholt wrote: >>> Ilia Mirkin writes: >>> Perhaps use state->es_shader instead of is_version(0, 100)? [Just a drive-by comment, not a real review, sorry] >>> >>> That

Re: [Mesa-dev] [PATCH v4] mesa: handle a bunch of formats in IMPLEMENTATION_COLOR_READ_*

2018-07-17 Thread Eric Anholt
Tomeu Vizoso writes: > Virgl could save a lot of work converting buffers in the host side > between formats if Mesa supported a bunch of other formats when reading > pixels. > > This commit adds cases to handle specific formats so that the values > reported by the two calls match more closely

Re: [Mesa-dev] [PATCH 2/2] intel/isl/gen4: Make depth/stencil buffers Y-Tiled

2018-07-17 Thread Nanley Chery
On Tue, Jul 17, 2018 at 08:19:30AM -0700, Kenneth Graunke wrote: > On Monday, July 16, 2018 4:57:40 PM PDT Nanley Chery wrote: > > Rendering to a linear depth buffer on gen4 is causing a GPU hang in the > > CI system. Until a better explanation is found, assume that errata is > > applicable to all

Re: [Mesa-dev] [PATCH 1/3] meson: Define NDEBUG for non-debug-builds

2018-07-17 Thread Rob Clark
On Tue, Jul 17, 2018 at 11:09 AM, Eric Engestrom wrote: > On Tuesday, 2018-07-17 10:26:49 -0400, robdcl...@gmail.com wrote: >> On Tue, Jul 17, 2018 at 10:05 AM, Eric Engestrom >> wrote: >> > On Tuesday, 2018-07-17 09:01:46 -0400, >> > mesa-dev-boun...@lists.freedesktop.org wrote: >> >> On Mon,

[Mesa-dev] [PATCH] libGLw: Use newly introduced GLAPIVAR for variables

2018-07-17 Thread Stefan Dirsch
GLAPI doesn't have an 'extern' in some circumstances. This way, variable declarations become definitions (fdo #100916). Signed-off-by: Stefan Dirsch --- GLwDrawA.h | 10 -- GLwDrawAP.h | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/GLwDrawA.h b/GLwDrawA.h

Re: [Mesa-dev] [PATCH] libGLw: Use newly introduced GLAPIVAR for variables

2018-07-17 Thread Stefan Dirsch
On Tue, Jul 17, 2018 at 08:21:10AM -0600, Brian Paul wrote: > On 07/17/2018 07:31 AM, Stefan Dirsch wrote: > > GLAPI doesn't have an 'extern' in some circumstances. This way, > > variable declarations become definitions (fdo #100916). > > > > Signed-off-by: Stefan Dirsch > > --- > > GLwDrawA.h

Re: [Mesa-dev] [PATCH 1/3] egl/android: Delete set_damage_region from egl dri vtbl

2018-07-17 Thread Eric Anholt
Harish Krupo writes: > Eric Anholt writes: > >> Harish Krupo writes: >> >>> Hi Eric, >>> >>> Eric Anholt writes: >>> Harish Krupo writes: > The intension of the KHR_partial_update was not to send the damage back > to the platform but to send the damage to the driver to

Re: [Mesa-dev] [PATCH 1/3] meson: Define NDEBUG for non-debug-builds

2018-07-17 Thread Rob Clark
On Tue, Jul 17, 2018 at 12:40 PM, Dylan Baker wrote: > Quoting Eric Engestrom (2018-07-17 07:05:32) >> On Tuesday, 2018-07-17 09:01:46 -0400, >> mesa-dev-boun...@lists.freedesktop.org wrote: >> > On Mon, Apr 16, 2018 at 5:19 PM, Dylan Baker wrote: >> > > Quoting Jan Alexander Steffens (heftig)

[Mesa-dev] [Bug 106644] [llvmpipe] Mesa 18.1.2 fails lp_test_format, lp_test_arit, lp_test_blend, lp_test_printf, lp_test_conv tests

2018-07-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106644 erhar...@mailbox.org changed: What|Removed |Added Attachment #140430|0 |1 is obsolete|

Re: [Mesa-dev] [PATCH] gm107/ir: use CS2R for SV_CLOCK

2018-07-17 Thread Rhys Perry
After some testing and looking at traces of the blob or nvcc output, it seems the only system value CS2R is useful for is SV_CLOCK. On Tue, Jul 17, 2018 at 1:09 PM, Karol Herbst wrote: > that seems like a good enough improvement. I think looking onto other > sysvals would be worthwhile as

Re: [Mesa-dev] [PATCH 1/3] meson: Define NDEBUG for non-debug-builds

2018-07-17 Thread Dylan Baker
Quoting Michel Dänzer (2018-07-17 07:29:49) > On 2018-07-17 03:07 PM, Rob Clark wrote: > > On Tue, Jul 17, 2018 at 9:01 AM, Rob Clark wrote: > >> On Mon, Apr 16, 2018 at 5:19 PM, Dylan Baker wrote: > >>> Quoting Jan Alexander Steffens (heftig) (2018-04-14 10:23:20) > This is for parity with

Re: [Mesa-dev] [PATCH] glsl: Allow ES2 function parameters to be hidden by variable declarations.

2018-07-17 Thread Eric Anholt
Ilia Mirkin writes: > On Mon, Jul 16, 2018 at 7:51 PM, Eric Anholt wrote: >> Ilia Mirkin writes: >> >>> Perhaps use state->es_shader instead of is_version(0, 100)? [Just a >>> drive-by comment, not a real review, sorry] >> >> That doesn't respect the version overrides and such that is_version

Re: [Mesa-dev] [PATCH 2/3] gallium/u_vbuf: split u_vbuf_get_minmax_index function

2018-07-17 Thread Eric Anholt
Marek Olšák writes: > From: Marek Olšák > > This will be used by indirect multidraws. > --- > src/gallium/auxiliary/util/u_vbuf.c | 54 + > 1 file changed, 31 insertions(+), 23 deletions(-) > > diff --git a/src/gallium/auxiliary/util/u_vbuf.c >

Re: [Mesa-dev] [PATCH mesa] anv: remove unnecessary runtime copy of static string

2018-07-17 Thread Jason Ekstrand
I didn't know that worked. Neat! Reviewed-by: Jason Ekstrand On Tue, Jul 17, 2018 at 9:41 AM Eric Engestrom wrote: > It's actually also a bit safer, since now the compiler will warn if > the string is larger than the `.name` array. > > Signed-off-by: Eric Engestrom > --- >

Re: [Mesa-dev] [PATCH 1/2] intel: Make the disassembler take a const pointer to the assembly.

2018-07-17 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 11/07/18 19:25, Kenneth Graunke wrote: Disassembling doesn't modify the assembly. --- src/intel/common/gen_disasm.c | 7 --- src/intel/common/gen_disasm.h | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git

Re: [Mesa-dev] [PATCH 2/2] intel: Make the decoder handle STATE_BASE_ADDRESS not being a buffer.

2018-07-17 Thread Lionel Landwerlin
On 11/07/18 19:25, Kenneth Graunke wrote: Normally, i965 programs STATE_BASE_ADDRESS every batch, and puts all state for a given base in a single buffer. I'm working on a prototype which emits STATE_BASE_ADDRESS only once at startup, where each base address is a fixed 4GB region of the PPGTT.

Re: [Mesa-dev] [PATCH 1/3] meson: Define NDEBUG for non-debug-builds

2018-07-17 Thread Dylan Baker
Quoting Eric Engestrom (2018-07-17 07:05:32) > On Tuesday, 2018-07-17 09:01:46 -0400, mesa-dev-boun...@lists.freedesktop.org > wrote: > > On Mon, Apr 16, 2018 at 5:19 PM, Dylan Baker wrote: > > > Quoting Jan Alexander Steffens (heftig) (2018-04-14 10:23:20) > > >> This is for parity with

[Mesa-dev] [PATCH v5 2/3] r600: correct texture offset for array index lookup

2018-07-17 Thread Gert Wollny
From: Gert Wollny Correct the array index for TEXTURE_*1D_ARRAY, and TEXTURE_*2D_ARRAY The standard says the array index is evaluated according to floor(z + 0.5) but RNDNE is sufficient also for the test cases were z is close to 1.5 and it is likely to hit 1.5, the corner case were RNDNE

[Mesa-dev] [PATCH v5 3/3] r600: Correct evaluation of cube array index and face

2018-07-17 Thread Gert Wollny
From: Gert Wollny The array index needs to be corrected and it must be insured that it is rounded and its value is non-negative before it is combined with the face id. v5: Use RNDNE instead of ADD 0.5 and FLOOR (Ilia Mirkin) Fixes 182 from android/cts/master/gles31-master.txt:

[Mesa-dev] [PATCH v5 0/3] r600: Fix array texture slice index evaluation

2018-07-17 Thread Gert Wollny
From: Gert Wollny Dear all, v5: replace ADD+0.5/FLOOR by RNDNE as suggested by Ilia Mirkin. post from v4 follows: This is a 90% rewrite of the earlier series. - I removed the changes to the texture state and handle everything in the shader. Since this was needed for cube arrays anyway,

[Mesa-dev] [PATCH v5 1/3] r600: Delay emission of texture gradients and lookup offsets

2018-07-17 Thread Gert Wollny
From: Gert Wollny Gradients used in texture lookups and the offsets must reside in the same fetch clause (the first is imposed by the hardware and the second is expected by sb). In order to ensure that no ALU clause is inserted between emission and use of these, delay the emission of these

Re: [Mesa-dev] [PATCH 1/2] clover: Catch errors from executing event action

2018-07-17 Thread Aaron Watry
Question: How'd you run across this? CTS, an application? I saw this and had hoped that it finally fixed a CTS hang I've been experiencing when running: test_conformance/events/test_events test_userevents But at least when SSH'd into my R600-based box, it still seems to pause waiting for an

Re: [Mesa-dev] [PATCH 1/2] clover: Catch errors from executing event action

2018-07-17 Thread Jan Vesely
On Tue, 2018-07-17 at 14:17 -0700, Francisco Jerez wrote: > Jan Vesely writes: > > > Abort all dependent events. > > Signed-off-by: Jan Vesely > > --- > > src/gallium/state_trackers/clover/core/event.cpp | 7 ++- > > 1 file changed, 6 insertions(+), 1 deletion(-) > > > > diff --git

[Mesa-dev] Mesa 18.2.0 release plan

2018-07-17 Thread Andres Gomez
Hi all, Here is the tentative release plan for 18.2.0. Although the initial plan was to have the first release candidate by the end of this week, a slip of mind in my side on sending this plan is shifting the current schedule at mesa3d.org. We'll update the release schedule there soon. Aug 01

Re: [Mesa-dev] [PATCH] libGLw: Use newly introduced GLAPIVAR for variables

2018-07-17 Thread Brian Paul
On 07/17/2018 12:40 PM, Stefan Dirsch wrote: GLAPI doesn't have an 'extern' in some circumstances. This way, variable declarations become definitions (fdo #100916). Signed-off-by: Stefan Dirsch --- GLwDrawA.h | 10 -- GLwDrawAP.h | 4 ++-- 2 files changed, 10 insertions(+), 4

[Mesa-dev] [PATCH 1/4] intel/dump_gpu: Fix corner cases in PPGTT range calculations

2018-07-17 Thread Jason Ekstrand
For large buffers which span an entire l1 page table, we got the range calculations wrong. In this case, we end up with an l1_start which is the first byte represented by the given l1 table and an l1_end which is the first byte after the range represented by the l1 table. Then l2_start_index ==

[Mesa-dev] [PATCH 3/4] intel/tools: Break aub file writing into a helper

2018-07-17 Thread Jason Ekstrand
--- src/intel/tools/aub_write.c | 764 +++ src/intel/tools/aub_write.h | 96 src/intel/tools/intel_dump_gpu.c | 762 +- src/intel/tools/meson.build | 2 +- 4 files changed, 862 insertions(+), 762 deletions(-) create

[Mesa-dev] [PATCH 2/4] intel/tools: Refactor aub dumping to remove singletons

2018-07-17 Thread Jason Ekstrand
Instead of having quite so many singletons, we use a struct aub_file to organize the bits we need for writing an aub file. --- src/intel/tools/intel_dump_gpu.c | 498 ++- 1 file changed, 287 insertions(+), 211 deletions(-) diff --git a/src/intel/tools/intel_dump_gpu.c

[Mesa-dev] [PATCH 4/4] intel/tools: Add an error state to aub translator

2018-07-17 Thread Jason Ekstrand
--- src/intel/tools/error2aub.c | 332 src/intel/tools/meson.build | 11 ++ 2 files changed, 343 insertions(+) create mode 100644 src/intel/tools/error2aub.c diff --git a/src/intel/tools/error2aub.c b/src/intel/tools/error2aub.c new file mode 100644 index

[Mesa-dev] [PATCH v2 11/26] python: Fix rich comparisons

2018-07-17 Thread Mathieu Bridon
Python 3 doesn't call objects __cmp__() methods any more to compare them. Instead, it requires implementing the rich comparison methods explicitly: __eq__(), __ne(), __lt__(), __le__(), __gt__() and __ge__(). Fortunately Python 2 also supports those. This commit only implements the comparison

Re: [Mesa-dev] [PATCH 1/2] clover: Catch errors from executing event action

2018-07-17 Thread Francisco Jerez
Jan Vesely writes: > On Tue, 2018-07-17 at 14:17 -0700, Francisco Jerez wrote: >> Jan Vesely writes: >> >> > Abort all dependent events. >> > Signed-off-by: Jan Vesely >> > --- >> > src/gallium/state_trackers/clover/core/event.cpp | 7 ++- >> > 1 file changed, 6 insertions(+), 1

Re: [Mesa-dev] [PATCH 2/2] intel/isl/gen4: Make depth/stencil buffers Y-Tiled

2018-07-17 Thread Kenneth Graunke
On Tuesday, July 17, 2018 10:45:28 AM PDT Nanley Chery wrote: > On Tue, Jul 17, 2018 at 08:19:30AM -0700, Kenneth Graunke wrote: > > Wow, I had no idea we were actually using linear depth buffers. > > Neither did I until Mark let me know that I regressed some tests after > landing commit

Re: [Mesa-dev] [PATCH 2/2] intel/isl/gen4: Make depth/stencil buffers Y-Tiled

2018-07-17 Thread Nanley Chery
On Tue, Jul 17, 2018 at 01:29:26PM -0700, Kenneth Graunke wrote: > On Tuesday, July 17, 2018 10:45:28 AM PDT Nanley Chery wrote: > > On Tue, Jul 17, 2018 at 08:19:30AM -0700, Kenneth Graunke wrote: > > > Wow, I had no idea we were actually using linear depth buffers. > > > > Neither did I until

[Mesa-dev] [Bug 106644] [llvmpipe] Mesa 18.1.2 fails lp_test_format, lp_test_arit, lp_test_blend, lp_test_printf, lp_test_conv tests

2018-07-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106644 --- Comment #38 from erhar...@mailbox.org --- mesa 18.1.4 - ppc64 BE, standard build: make check-TESTS make[5]: Verzeichnis „/root/build/mesa-18.1.4/src/gallium/drivers/llvmpipe“ wird betreten make[6]: Verzeichnis

Re: [Mesa-dev] [PATCH 1/2] clover: Catch errors from executing event action

2018-07-17 Thread Jan Vesely
On Tue, 2018-07-17 at 16:15 -0500, Aaron Watry wrote: > Question: How'd you run across this? CTS, an application? It's a part of the 3 patch series I posted: 1.) fail to create compute state if code has relocations 2.) throw exception if pipe driver failed to create compute state 3.) catch

Re: [Mesa-dev] [PATCH 1/2] clover: Catch errors from executing event action

2018-07-17 Thread Francisco Jerez
Jan Vesely writes: > Abort all dependent events. > Signed-off-by: Jan Vesely > --- > src/gallium/state_trackers/clover/core/event.cpp | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/src/gallium/state_trackers/clover/core/event.cpp >

Re: [Mesa-dev] [PATCH 2/2] clover: Report error when pipe driver fails to create compute state

2018-07-17 Thread Francisco Jerez
Jan Vesely writes: > Signed-off-by: Jan Vesely Reviewed-by: Francisco Jerez > --- > src/gallium/state_trackers/clover/core/kernel.cpp | 4 > 1 file changed, 4 insertions(+) > > diff --git a/src/gallium/state_trackers/clover/core/kernel.cpp >

[Mesa-dev] [PATCH v2 1/2] egl/surfaceless: Define DRI_SWRastLoader extension when using swrast.

2018-07-17 Thread David Riley
Signed-off-by: David Riley --- src/egl/drivers/dri2/platform_surfaceless.c | 28 + 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/src/egl/drivers/dri2/platform_surfaceless.c b/src/egl/drivers/dri2/platform_surfaceless.c index a0348a5e95..f5fe7119c6 100644 ---

[Mesa-dev] [PATCH v2 2/2] egl/surfaceless: Allow DRMless fallback.

2018-07-17 Thread David Riley
Allow platform_surfaceless to use swrast even if DRM is not available. To be used to allow a fuzzer for virgl to be run on a jailed VM without hardware GL or DRM support. Signed-off-by: David Riley --- src/egl/drivers/dri2/platform_surfaceless.c | 19 +++ 1 file changed, 19

Re: [Mesa-dev] [PATCH] libGLw: Use newly introduced GLAPIVAR for variables

2018-07-17 Thread Stefan Dirsch
On Tue, Jul 17, 2018 at 04:57:26PM -0600, Brian Paul wrote: > Reviewed-by: Brian Paul > > Do you need me to push this for you? I'm afraid the answer is yes. Tried it but push hangs forever after this # git push --verbose Pushing to ssh://git.freedesktop.org/git/mesa/glw.git Counting objects:

Re: [Mesa-dev] [PATCH 1/2] clover: Catch errors from executing event action

2018-07-17 Thread Jan Vesely
On Tue, 2018-07-17 at 15:22 -0700, Francisco Jerez wrote: > Jan Vesely writes: > > > On Tue, 2018-07-17 at 14:17 -0700, Francisco Jerez wrote: > > > Jan Vesely writes: > > > > > > > Abort all dependent events. > > > > Signed-off-by: Jan Vesely > > > > --- > > > >

[Mesa-dev] [RFC][PATCH] util: Android.mk: Convert implicit rules to static pattern rules

2018-07-17 Thread John Stultz
From: Dan Willemsen This is a partial cherry-pick from AOSP's mesa3d tree: https://android.googlesource.com/platform/external/mesa3d/+/a88dcf769eb00a4ffc7183a0396d881a28b5a29b%5E%21/ "We're deprecating make implicit rules, preferring static pattern rules, or just regular rules." Without this

[Mesa-dev] [Bug 100916] Multiple definition of `glwMDrawingAreaWidgetClass'

2018-07-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100916 --- Comment #5 from Timothy Arceri --- (In reply to Stefan Dirsch from comment #4) > https://lists.freedesktop.org/archives/mesa-dev/2018-July/200329.html > > Closing as fixed. Just FYI we don't normally close bugs until that patch has been

[Mesa-dev] [PATCH v2 0/2] Add DRMless surfaceless fallback path.

2018-07-17 Thread David Riley
Allow platform_surfaceless to use swrast even if DRM is not available. To be used to allow a fuzzer for virgl to be run on a jailed VM without hardware GL or DRM support. v2: Comment style fixes and remove redundant assignment. David Riley (2): egl/surfaceless: Define DRI_SWRastLoader

[Mesa-dev] [Bug 100916] Multiple definition of `glwMDrawingAreaWidgetClass'

2018-07-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100916 Stefan Dirsch changed: What|Removed |Added Resolution|FIXED |--- Status|RESOLVED

Re: [Mesa-dev] [PATCH v5 00/21] Introducing SPIR-V support to clover

2018-07-17 Thread Pierre Moreau
I have no idea how, but it seems I messed up the commit message for that one, since the ML version (https://patchwork.freedesktop.org/patch/212834/) has a Rb tag from me and has "v5: Fix return type of clCreateCommandQueueWithProperties", whereas the version I have on GitHub does not have the Rb

[Mesa-dev] [PATCH] radeonsi: Use signed char for color_interp_vgpr_index

2018-07-17 Thread Timothy Pearson
color_interp_vgpr_index was declared as a generic char value. Because signed values are used in this variable, the result was not safe across architectures and crashed on ppc64[el] and arm. Declare color_interp_vgpr_index as a signed type. Signed-off-by: Timothy Pearson ---

Re: [Mesa-dev] [PATCH 1/2] radv/winsys: use alloca() for semaphore dependencies

2018-07-17 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Thu, Jul 12, 2018 at 4:26 PM, Samuel Pitoiset wrote: > Signed-off-by: Samuel Pitoiset > --- > src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c | 8 ++-- > 1 file changed, 2 insertions(+), 6 deletions(-) > > diff --git

Re: [Mesa-dev] [PATCH 4/5] radv: Always set disable zpass increment bit when possible.

2018-07-17 Thread Bas Nieuwenhuizen
Aligning with AMDVLK on GFX9. I don't think it changes much. On Tue, Jul 17, 2018 at 9:15 AM, Samuel Pitoiset wrote: > Why do we need that? Are you sure it's correct? > > > On 07/14/2018 02:28 PM, Bas Nieuwenhuizen wrote: >> >> When no occlusion queries are active even if out of order is

Re: [Mesa-dev] [PATCH v4 2/4] r600 shader: Add extra function to evaluate array index

2018-07-17 Thread Gert Wollny
Am Montag, den 16.07.2018, 15:10 -0400 schrieb Ilia Mirkin: > > From: Gert Wollny [...] > > > > The added function evaluates the array index according to the > > function > > > > idx = floor(ai + 0.5); > > [...] > > Why not use RNDNE? Then you don't have to add the 0.5... When I starten

Re: [Mesa-dev] [PATCH 6/9] etnaviv: add 2D GPU YUV->RGB blitter

2018-07-17 Thread Philipp Zabel
On Mon, 2018-07-09 at 18:02 +0200, Lucas Stach wrote: > This adds a blit path using the 2D GPU for a linear YUV to tiled RGB > blit. This allows to implement importing of planar YUV textures with > a single copy. > > Signed-off-by: Lucas Stach > --- >

[Mesa-dev] [PATCH] intel/compiler: fix lower conversions to account for predication

2018-07-17 Thread Iago Toral Quiroga
The pass can create a temporary result for the instruction and then moves from it to the original destination, however, if the original instruction was predicated, the mov has to be predicated as well. --- src/intel/compiler/brw_fs_lower_conversions.cpp | 5 - 1 file changed, 4 insertions(+),

Re: [Mesa-dev] [PATCH 0/9] RadeonSI on AMDGPU: Command submission optimizations

2018-07-17 Thread Michel Dänzer
On 2018-07-16 08:07 PM, Marek Olšák wrote: > On Mon, Jul 16, 2018 at 12:06 PM, Michel Dänzer wrote: >> >> It might be even better to compare the total number of frames rendered >> in a fixed amount of time, with multiple runs for each test >> configuration, in case there is systemic variance

Re: [Mesa-dev] [PATCH 2/2] radv/winsys: use alloca() when creating the buffer object list

2018-07-17 Thread Samuel Pitoiset
On 07/12/2018 04:29 PM, Bas Nieuwenhuizen wrote: Not really a fan of this one, we can literally have thousands of entries which seems largish when considering the stacks for heavily threaded stuff are often much smaller. Hmm yeah, you are probably right. What about the first one? On Thu,

Re: [Mesa-dev] [PATCH 5/5] mesa: remove dead code from api_loopback

2018-07-17 Thread Timothy Arceri
Series: Reviewed-by: Timothy Arceri On 17/07/18 15:58, Marek Olšák wrote: From: Marek Olšák This should only contain functions not set in vtxfmt.c. --- src/mesa/main/api_loopback.c | 17 - 1 file changed, 17 deletions(-) diff --git a/src/mesa/main/api_loopback.c

Re: [Mesa-dev] [PATCH 4/5] radv: Always set disable zpass increment bit when possible.

2018-07-17 Thread Samuel Pitoiset
Why do we need that? Are you sure it's correct? On 07/14/2018 02:28 PM, Bas Nieuwenhuizen wrote: When no occlusion queries are active even if out of order is enabled. --- src/amd/vulkan/radv_cmd_buffer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[Mesa-dev] [PATCH 2/3] gallium/u_vbuf: split u_vbuf_get_minmax_index function

2018-07-17 Thread Marek Olšák
From: Marek Olšák This will be used by indirect multidraws. --- src/gallium/auxiliary/util/u_vbuf.c | 54 + 1 file changed, 31 insertions(+), 23 deletions(-) diff --git a/src/gallium/auxiliary/util/u_vbuf.c b/src/gallium/auxiliary/util/u_vbuf.c index

[Mesa-dev] [PATCH 3/3] gallium/u_vbuf: handle indirect multidraws correctly and efficiently

2018-07-17 Thread Marek Olšák
From: Marek Olšák --- src/gallium/auxiliary/util/u_vbuf.c | 189 1 file changed, 165 insertions(+), 24 deletions(-) diff --git a/src/gallium/auxiliary/util/u_vbuf.c b/src/gallium/auxiliary/util/u_vbuf.c index 87b159ec1bf..b0b92f7e966 100644 ---

[Mesa-dev] [PATCH 1/3] st/mesa: notify u_vbuf/driver that draw index bounds are unknown for indirect

2018-07-17 Thread Marek Olšák
From: Marek Olšák --- src/mesa/state_tracker/st_draw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c index dee69783ada..eb52d9505b6 100644 --- a/src/mesa/state_tracker/st_draw.c +++ b/src/mesa/state_tracker/st_draw.c @@

[Mesa-dev] [PATCH 0/3] gallium/u_vbuf: indirect multidraws for the compatibility profile

2018-07-17 Thread Marek Olšák
Hi, This series fixes u_vbuf to handle indirect multidraws. Please review. Thanks, Marek ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 5/5] radv: Enable binning and dfsm by default on Raven.

2018-07-17 Thread Samuel Pitoiset
On 07/14/2018 02:28 PM, Bas Nieuwenhuizen wrote: Seems like it increases performance by 2-3% for some demos and games. --- src/amd/vulkan/radv_device.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index

  1   2   >