Re: [Mesa-dev] [PATCH] gallium: add Tegra renderonly support

2017-01-16 Thread Alexandre Courbot
On 01/13/2017 11:20 PM, Grazvydas Ignotas wrote: > just out of the interest, can this be used on Tegra X1 right now? > If so, what would I need to get it to work (kernel, firmware, something else)? > I'd be interested to run mesa on the Shield TV. I recommend using my Mesa branch (https://github.c

[Mesa-dev] [PATCH] gallium: add Tegra renderonly support

2017-01-12 Thread Alexandre Courbot
From: Christian Gmeiner Based on the same model as the IMX driver, opens a Nouveau render device in order to transparently provide acceleration on Tegra. Signed-off-by: Christian Gmeiner [acour...@nvidia.com: port to latest branch, minor improvements] Signed-off-by: Alexandre Courbot

Re: [Mesa-dev] [PATCH v2 1/3] gallium: add renderonly library

2017-01-11 Thread Alexandre Courbot
e of renderonly object (suggested by Nicolai Hähnle) > - killed the midlayer (suggested by Thierry Reding) > - made the API more explicit regarding gpu and kms fd's > - added some docs Works fine with Tegra (see https://github.com/Gnurou/mesa/tree/renderonly for the code, still hacky).

Re: [Mesa-dev] [PATCH 0/5] nvc0: better instruction pipelining for Maxwell GPUs

2017-01-05 Thread Alexandre Courbot
fps at pstate 01 and from 29 to 33 fps at pstate 0d (probably due to some other non-shader related bottleneck on this board?), but I have not noticed any issue. Tested-by: Alexandre Courbot ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org

Re: [Mesa-dev] [PATCH 3/3] imx: gallium driver for imx-drm scanout driver

2017-01-04 Thread Alexandre Courbot
On Mon, Dec 19, 2016 at 10:19 PM, Thierry Reding wrote: > On Mon, Dec 19, 2016 at 04:04:34PM +, Emil Velikov wrote: >> On Monday, 19 December 2016, Thierry Reding >> wrote: >> >> > On Wed, Nov 30, 2016 at 02:44:36PM +0100, Christian Gmeiner wrote: >> > [...] >> > > +static struct pipe_screen

Re: [Mesa-dev] [PATCH 1/3] gallium: add renderonly library

2016-12-09 Thread Alexandre Courbot
Hi Emil, On 12/09/2016 11:20 PM, Emil Velikov wrote: > On 9 December 2016 at 13:20, Alexandre Courbot wrote: >> On 12/08/2016 04:16 PM, Alexandre Courbot wrote: >>> On 11/30/2016 10:44 PM, Christian Gmeiner wrote: >>>> This a very lightweight library to add basic su

Re: [Mesa-dev] [PATCH 1/3] gallium: add renderonly library

2016-12-09 Thread Alexandre Courbot
Hi Daniel, On 12/09/2016 11:13 PM, Daniel Stone wrote: > Hi Alexandre, > > On 9 December 2016 at 13:20, Alexandre Courbot wrote: >> On 12/08/2016 04:16 PM, Alexandre Courbot wrote: >>> First, setting the tiling works indeed just fine if we are using an >>> ioct

Re: [Mesa-dev] [PATCH 1/3] gallium: add renderonly library

2016-12-09 Thread Alexandre Courbot
On 12/08/2016 04:16 PM, Alexandre Courbot wrote: > On 11/30/2016 10:44 PM, Christian Gmeiner wrote: >> This a very lightweight library to add basic support for >> renderonly GPUs. It does all the magic regarding in/exporting >> buffers etc. This library will likely brea

Re: [Mesa-dev] [PATCH 1/3] gallium: add renderonly library

2016-12-07 Thread Alexandre Courbot
On 11/30/2016 10:44 PM, Christian Gmeiner wrote: > This a very lightweight library to add basic support for > renderonly GPUs. It does all the magic regarding in/exporting > buffers etc. This library will likely break android support and > hopefully will get replaced with a better solution based on

Re: [Mesa-dev] [RFC 2/2] gallium: add tegra support

2015-10-13 Thread Alexandre Courbot
On Mon, Oct 12, 2015 at 12:09 AM, Christian Gmeiner wrote: > This commit adds tegra support, which uses the renderonly driver > library. > > Signed-off-by: Christian Gmeiner > --- > configure.ac | 19 +++- > src/gallium/Makefile.am

[Mesa-dev] [PATCH] nvc0: tune PREFER_BLIT_BASED_TEXTURE_TRANSFER capability

2015-07-01 Thread Alexandre Courbot
Prefer blit-based texture transfers only if the chip has dedicated VRAM since it would translate to a copy into the same memory on shared-memory chips. Signed-off-by: Alexandre Courbot Reported-by: Ilia Mirkin --- src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 3 ++- 1 file changed, 2

Re: [Mesa-dev] [PATCH] nouveau: rename var name for nouveau_vieux to avoid conflict with nouveau

2015-07-01 Thread Alexandre Courbot
issue. Tested-by: Alexandre Courbot Confirmed that configure properly fails on libdrm < 2.4.62 if both the DRI and Gallium drivers are compiled. Signed-off-by: Ilia Mirkin --- configure.ac | 2 +- src/mesa/drivers/dri/nouveau/Makefile.am | 4 ++-- 2 files ch

[Mesa-dev] [PATCH v2] nvc0: create screen fence objects with coherent attribute

2015-06-30 Thread Alexandre Courbot
be affected by this patch. Also bump the required libdrm version to 2.4.62, which introduced this flag. Signed-off-by: Alexandre Courbot Reviewed-by: Martin Peres --- configure.ac | 2 +- src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 8 ++-- 2 files

[Mesa-dev] [PATCH v4 1/2] nouveau: support for custom VRAM domains

2015-06-21 Thread Alexandre Courbot
place of NOUVEAU_BO_VRAM to ensure correct behavior on VRAM-less chips. Signed-off-by: Alexandre Courbot Reviewed-by: Ilia Mirkin Reviewed-by: Martin Peres --- src/gallium/drivers/nouveau/nouveau_screen.c | 10 ++ src/gallium/drivers/nouveau/nouveau_screen.h | 4 2 files changed

[Mesa-dev] [PATCH v4 2/2] nvc0: use NV_VRAM_DOMAIN() macro

2015-06-21 Thread Alexandre Courbot
Use the newly-introduced NV_VRAM_DOMAIN() macro to support alternative VRAM domains for chips that do not have dedicated video memory. Signed-off-by: Alexandre Courbot Reviewed-by: Ilia Mirkin Reviewed-by: Martin Peres --- src/gallium/drivers/nouveau/nouveau_buffer.c | 6

[Mesa-dev] [PATCH v4 0/2] nouveau: support for custom VRAM domains

2015-06-21 Thread Alexandre Courbot
ed-by tags Alexandre Courbot (2): nouveau: support for custom VRAM domains nvc0: use NV_VRAM_DOMAIN() macro src/gallium/drivers/nouveau/nouveau_buffer.c | 6 +++--- src/gallium/drivers/nouveau/nouveau_screen.c | 10 ++ src/gallium/drivers/nouveau/nouveau_scr

Re: [Mesa-dev] [Nouveau] [PATCH v3 0/2] nouveau: support for custom VRAM domains

2015-06-19 Thread Alexandre Courbot
On Fri, Jun 19, 2015 at 9:38 PM, Ben Skeggs wrote: > On 19 June 2015 at 21:51, Martin Peres wrote: >> On 19/06/2015 13:02, Alexandre Courbot wrote: >>> >>> New revision of this patchset that prevents VRAM objects from being >>> allocated on VRAM-less systems l

Re: [Mesa-dev] [PATCH v3 2/2] nvc0: use NV_VRAM_DOMAIN() macro

2015-06-19 Thread Alexandre Courbot
On Fri, Jun 19, 2015 at 10:55 PM, Ilia Mirkin wrote: > On Fri, Jun 19, 2015 at 6:02 AM, Alexandre Courbot > wrote: >> Use the newly-introduced NV_VRAM_DOMAIN() macro to support alternative >> VRAM domains for chips that do not have dedicated video memory. >> >> Si

[Mesa-dev] [PATCH v3 2/2] nvc0: use NV_VRAM_DOMAIN() macro

2015-06-19 Thread Alexandre Courbot
Use the newly-introduced NV_VRAM_DOMAIN() macro to support alternative VRAM domains for chips that do not have dedicated video memory. Signed-off-by: Alexandre Courbot --- src/gallium/drivers/nouveau/nouveau_buffer.c | 6 ++ src/gallium/drivers/nouveau/nv50/nv50_miptree.c

[Mesa-dev] [PATCH v3 0/2] nouveau: support for custom VRAM domains

2015-06-19 Thread Alexandre Courbot
domain explicitly. Alexandre Courbot (2): nouveau: support for custom VRAM domains nvc0: use NV_VRAM_DOMAIN() macro src/gallium/drivers/nouveau/nouveau_buffer.c | 6 ++ src/gallium/drivers/nouveau/nouveau_screen.c | 10 ++ src/gallium/drivers/nouveau

[Mesa-dev] [PATCH v3 1/2] nouveau: support for custom VRAM domains

2015-06-19 Thread Alexandre Courbot
place of NOUVEAU_BO_VRAM to ensure correct behavior on VRAM-less chips. Signed-off-by: Alexandre Courbot --- src/gallium/drivers/nouveau/nouveau_screen.c | 10 ++ src/gallium/drivers/nouveau/nouveau_screen.h | 4 2 files changed, 14 insertions(+) diff --git a/src/gallium/drivers

[Mesa-dev] [PATCH] nvc0: create screen fence objects with coherent attribute

2015-06-19 Thread Alexandre Courbot
be affected by this patch. Signed-off-by: Alexandre Courbot --- src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c index

Re: [Mesa-dev] [Nouveau] [RFC] tegra: Initial support

2014-11-28 Thread Alexandre Courbot
On Fri, Nov 28, 2014 at 5:48 PM, Thierry Reding wrote: > On Fri, Nov 28, 2014 at 02:14:24PM +0900, Alexandre Courbot wrote: >> On 11/28/2014 01:39 AM, Thierry Reding wrote: >> >Tegra K1 and later use a GPU that can be driven by the Nouveau driver. >> >But the GPU is a

Re: [Mesa-dev] [Nouveau] [RFC] tegra: Initial support

2014-11-27 Thread Alexandre Courbot
On 11/28/2014 01:39 AM, Thierry Reding wrote: Tegra K1 and later use a GPU that can be driven by the Nouveau driver. But the GPU is a pure render node and has no display engine, hence the scanout needs to happen on the Tegra display hardware. The GPU and the display engine each have a separate DR

Re: [Mesa-dev] Performance regression on Tegra/GK20A since commit 363b53f00069

2014-11-25 Thread Alexandre Courbot
Hi Pekka, On 11/20/2014 08:41 PM, Pekka Paalanen wrote: On Thu, 20 Nov 2014 18:24:34 +0900 Alexandre Courbot wrote: Hi Pekka, On 11/19/2014 04:34 PM, Pekka Paalanen wrote: On Wed, 19 Nov 2014 15:32:38 +0900 Alexandre Courbot wrote: Some more information: CPU usage of the EGL app

Re: [Mesa-dev] Performance regression on Tegra/GK20A since commit 363b53f00069

2014-11-20 Thread Alexandre Courbot
Hi Pekka, On 11/19/2014 04:34 PM, Pekka Paalanen wrote: On Wed, 19 Nov 2014 15:32:38 +0900 Alexandre Courbot wrote: Some more information: CPU usage of the EGL app (glmark2 here) is much higher when this patch is applied, which I presume is what triggers the frame skips. On 11/19/2014 03:05

Re: [Mesa-dev] Performance regression on Tegra/GK20A since commit 363b53f00069

2014-11-18 Thread Alexandre Courbot
Some more information: CPU usage of the EGL app (glmark2 here) is much higher when this patch is applied, which I presume is what triggers the frame skips. On 11/19/2014 03:05 PM, Alexandre Courbot wrote: Hi guys, I am seeing a severe performance regression (lots frame drops when running EGL

[Mesa-dev] Performance regression on Tegra/GK20A since commit 363b53f00069

2014-11-18 Thread Alexandre Courbot
Hi guys, I am seeing a severe performance regression (lots frame drops when running EGL apps in Weston) on Tegra/GK20A since the following commit: commit 363b53f00069af718f64cf047f19ad5681a8bf6d Author: Marek Olšák Date: Sat Nov 1 14:31:09 2014 +0100 egl: remove egl_gallium from the lo

Re: [Mesa-dev] [PATCH v2 2/3] nvc0: use NV_VRAM_DOMAIN() macro

2014-11-18 Thread Alexandre Courbot
On 11/19/2014 02:49 PM, Ilia Mirkin wrote: On Wed, Nov 19, 2014 at 12:41 AM, Alexandre Courbot wrote: Use the newly-introduced NV_VRAM_DOMAIN() macro to support alternative VRAM domains for chips that do not use dedicated video memory. Signed-off-by: Alexandre Courbot --- src/gallium

[Mesa-dev] [PATCH v2 0/3] nouveau: support for custom VRAM domains

2014-11-18 Thread Alexandre Courbot
set vidmem_bindings to 0. Alexandre Courbot (3): nouveau: support for custom VRAM domains nvc0: use NV_VRAM_DOMAIN() macro gk20a: use NOUVEAU_BO_GART as VRAM domain src/gallium/drivers/nouveau/nouveau_buffer.c | 6 ++--- src/gallium/drivers/nouveau/nouveau_screen.c | 6 +

[Mesa-dev] [PATCH v2 1/3] nouveau: support for custom VRAM domains

2014-11-18 Thread Alexandre Courbot
that allocates GPU objects is then expected to use the NV_VRAM_DOMAIN() macro in place of NOUVEAU_BO_VRAM to ensure correct behavior on VRAM-less chips. Signed-off-by: Alexandre Courbot --- src/gallium/drivers/nouveau/nouveau_screen.c | 6 ++ src/gallium/drivers/nouveau/nouveau_screen.h | 4

[Mesa-dev] [PATCH v2 2/3] nvc0: use NV_VRAM_DOMAIN() macro

2014-11-18 Thread Alexandre Courbot
Use the newly-introduced NV_VRAM_DOMAIN() macro to support alternative VRAM domains for chips that do not use dedicated video memory. Signed-off-by: Alexandre Courbot --- src/gallium/drivers/nouveau/nouveau_buffer.c | 6 ++ src/gallium/drivers/nouveau/nv50/nv50_miptree.c

[Mesa-dev] [PATCH v2 3/3] gk20a: use NOUVEAU_BO_GART as VRAM domain

2014-11-18 Thread Alexandre Courbot
GK20A does not have dedicated VRAM, therefore allocating in VRAM can be sub-optimal and sometimes even harmful. Set its VRAM domain to NOUVEAU_BO_GART so all objects are allocated in system memory. Signed-off-by: Alexandre Courbot --- src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 15

Re: [Mesa-dev] [PATCH 3/3] gk20a: use NOUVEAU_BO_GART as VRAM domain

2014-11-13 Thread Alexandre Courbot
On 10/30/2014 12:29 AM, Ilia Mirkin wrote: On Mon, Oct 27, 2014 at 6:34 AM, Alexandre Courbot wrote: GK20A does not have dedicated VRAM, therefore allocating in VRAM can be sub-optimal and sometimes even harmful. Set its VRAM domain to NOUVEAU_BO_GART so all objects are allocated in system

Re: [Mesa-dev] [PATCH] nvc0: remove unused nvc0_screen::mm_VRAM_fe0

2014-11-12 Thread Alexandre Courbot
Ping, how about this guy? On Mon, Oct 27, 2014 at 7:36 PM, Alexandre Courbot wrote: > This member is declared, allocated and destroyed, but doesn't seem to be > used or referenced anywhere in the code. > > Signed-off-by: Alexandre Courbot > --- > Resending after fixin

Re: [Mesa-dev] [PATCH] nvc0: remove unused nvc0_screen::mm_VRAM_fe0

2014-11-11 Thread Alexandre Courbot
On 11/12/2014 03:07 PM, Ilia Mirkin wrote: LG. I had this same patch locally I think... I came up with it after I went looking at the various VRAM usage after you were asking questions about it. Good, I'm dropping this version then, and assume yours will get merged soon. Thanks! __

Re: [Mesa-dev] [PATCH 3/3] gk20a: use NOUVEAU_BO_GART as VRAM domain

2014-11-05 Thread Alexandre Courbot
On 10/30/2014 12:29 AM, Ilia Mirkin wrote: On Mon, Oct 27, 2014 at 6:34 AM, Alexandre Courbot wrote: GK20A does not have dedicated VRAM, therefore allocating in VRAM can be sub-optimal and sometimes even harmful. Set its VRAM domain to NOUVEAU_BO_GART so all objects are allocated in system

[Mesa-dev] [PATCH] nvc0: remove unused nvc0_screen::mm_VRAM_fe0

2014-10-27 Thread Alexandre Courbot
This member is declared, allocated and destroyed, but doesn't seem to be used or referenced anywhere in the code. Signed-off-by: Alexandre Courbot --- Resending after fixing typo in email address - apologies for the inconvenience. src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 3 ---

[Mesa-dev] [PATCH 0/3] nouveau: support for custom VRAM domains

2014-10-27 Thread Alexandre Courbot
e non-existent VRAM memory. In that respect it seems to be the right thing to do, and all things taken is not very intrusive. Tested on GK20A with Wayland and several EGL clients running, and working fine. Alexandre Courbot (3): nouveau: support for custom VRAM domains nvc0: use NV_VRAM_DOMAIN()

[Mesa-dev] [PATCH 3/3] gk20a: use NOUVEAU_BO_GART as VRAM domain

2014-10-27 Thread Alexandre Courbot
GK20A does not have dedicated VRAM, therefore allocating in VRAM can be sub-optimal and sometimes even harmful. Set its VRAM domain to NOUVEAU_BO_GART so all objects are allocated in system memory. Signed-off-by: Alexandre Courbot --- src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 10

[Mesa-dev] [PATCH 1/3] nouveau: support for custom VRAM domains

2014-10-27 Thread Alexandre Courbot
that allocates GPU objects is then expected to use the NV_VRAM_DOMAIN() macro in place of NOUVEAU_BO_VRAM to ensure correct behavior on VRAM-less chips. Signed-off-by: Alexandre Courbot --- src/gallium/drivers/nouveau/nouveau_screen.c | 6 ++ src/gallium/drivers/nouveau/nouveau_screen.h | 4

[Mesa-dev] [PATCH 2/3] nvc0: use NV_VRAM_DOMAIN() macro

2014-10-27 Thread Alexandre Courbot
Use the newly-introduced NV_VRAM_DOMAIN() macro to support alternative VRAM domains for chips that do not use dedicated video memory. Signed-off-by: Alexandre Courbot --- src/gallium/drivers/nouveau/nouveau_buffer.c | 6 ++ src/gallium/drivers/nouveau/nv50/nv50_miptree.c

[Mesa-dev] [PATCH] nvc0: remove unused nvc0_screen::mm_VRAM_fe0

2014-10-27 Thread Alexandre Courbot
This member is declared, allocated and destroyed, but doesn't seem to be used or referenced anywhere in the code. Signed-off-by: Alexandre Courbot --- src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 3 --- src/gallium/drivers/nouveau/nvc0/nvc0_screen.h | 2 -- 2 files changed, 5 dele

[Mesa-dev] [PATCH v2 0/2] nvc0: support for GK20A (Tegra K1)

2014-05-27 Thread Alexandre Courbot
buffers. Changes since v1: - Update TargetNVC0::getFileSize() to return the right number of GPR - Remove definition for unneeded NVISA_GK110_CHIPSET - Use consistent comparison scheme in nv50_ir_emit_nvc0.cpp Alexandre Courbot (2): nvc0: add GK20A 3D class nvc0: use SM35 ISA with GK20A src

[Mesa-dev] [PATCH v2 1/2] nvc0: add GK20A 3D class

2014-05-27 Thread Alexandre Courbot
GK20A is mostly compatible with GK104, but features a new 3D class. Add it to the relevant header and use it when GK20A is detected. Signed-off-by: Alexandre Courbot --- src/gallium/drivers/nouveau/nv_object.xml.h| 1 + src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 9 - 2 files

[Mesa-dev] [PATCH v2 2/2] nvc0: use SM35 ISA with GK20A

2014-05-27 Thread Alexandre Courbot
GK20A is mostly compatible with GK104, but uses the SM35 ISA. Use the GK110 path when this chip is detected. Signed-off-by: Alexandre Courbot --- src/gallium/drivers/nouveau/codegen/nv50_ir_driver.h | 2 +- src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp | 2 +- .../drivers

Re: [Mesa-dev] [PATCH 2/2] nvc0: use SM35 ISA with GK20A

2014-05-26 Thread Alexandre Courbot
On 05/27/2014 02:26 PM, Ilia Mirkin wrote: On Tue, May 27, 2014 at 12:59 AM, Alexandre Courbot wrote: GK20A is mostly compatible with GK104, but uses the SM35 ISA. Use the GK110 path when this chip is detected. Signed-off-by: Alexandre Courbot --- src/gallium/drivers/nouveau/codegen

Re: [Mesa-dev] [PATCH 1/2] nvc0: add GK20A 3D class

2014-05-26 Thread Alexandre Courbot
On 05/27/2014 02:29 PM, Ilia Mirkin wrote: On Tue, May 27, 2014 at 12:59 AM, Alexandre Courbot wrote: GK20A is mostly compatible with GK104, but features a new 3D class. Add it to the relevant header and use it when GK20A is detected. Signed-off-by: Alexandre Courbot --- src/gallium

[Mesa-dev] [PATCH 1/2] nvc0: add GK20A 3D class

2014-05-26 Thread Alexandre Courbot
GK20A is mostly compatible with GK104, but features a new 3D class. Add it to the relevant header and use it when GK20A is detected. Signed-off-by: Alexandre Courbot --- src/gallium/drivers/nouveau/nv_object.xml.h| 1 + src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 9 - 2 files

[Mesa-dev] [PATCH 0/2] nvc0: support for GK20A (Tegra K1)

2014-05-26 Thread Alexandre Courbot
buffers. Alexandre Courbot (2): nvc0: add GK20A 3D class nvc0: use SM35 ISA with GK20A src/gallium/drivers/nouveau/codegen/nv50_ir_driver.h| 1 + src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp | 2 +- src/gallium/drivers/nouveau/codegen/nv50_ir_target_nvc0.cpp | 13

[Mesa-dev] [PATCH 2/2] nvc0: use SM35 ISA with GK20A

2014-05-26 Thread Alexandre Courbot
GK20A is mostly compatible with GK104, but uses the SM35 ISA. Use the GK110 path when this chip is detected. Signed-off-by: Alexandre Courbot --- src/gallium/drivers/nouveau/codegen/nv50_ir_driver.h| 1 + src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp | 2 +- src/gallium