Re: [Mesa-dev] [RFC 1/2] gallium: add renderonly driver

2015-10-19 Thread Lucas Stach
my original proposal, but I > > fully admit that it wasn't much more than a proof of concept with quite > > a few rough edges to work out. > > > > Mine is also more like a proof-of-concept but I want to get it merged > in some form :) > I fear that getting a solution merged that

[Mesa-dev] [PATCH libdrm] add support for imx-drm in tests

2015-02-18 Thread Lucas Stach
From: Philipp Zabel Since imx-drm has graduated from staging it seems to be a good idea to recognize it by default in the libdrm tests. Signed-off-by: Philipp Zabel Signed-off-by: Lucas Stach --- lst: added commit message + rebase to master --- tests/kmstest/main.c | 1 + tests/modetest

Re: [Mesa-dev] [Mesa-announce] Mesa 10.3 release candidate 1

2015-02-19 Thread Lucas Stach
_LTLIBRARIES is empty in that case the install-mesa-links target has no dependencies and gets executed immediately. This fails as it races with the compilation to create the .libs dir. As the install-mesa-links target works perfectly fine with an empty lib_LTLIBRARIES

[Mesa-dev] [PATCH] install-lib-links: don't depend on .libs directory

2015-02-19 Thread Lucas Stach
on it being there. Signed-off-by: Lucas Stach Cc: "10.3 10.4" --- install-lib-links.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-lib-links.mk b/install-lib-links.mk index 6976ca4911ab..3545b268ebd1 100644 --- a/install-lib-links.mk +++ b/install-lib-l

Re: [Mesa-dev] [PATCH libdrm] add support for imx-drm in tests

2015-02-23 Thread Lucas Stach
As this is a really trivial one I'm going to push this by Wednesday this week if nobody voices any objections. Regards, Lucas Am Mittwoch, den 18.02.2015, 12:01 +0100 schrieb Lucas Stach: > From: Philipp Zabel > > Since imx-drm has graduated from staging it seems to be

Re: [Mesa-dev] Question about handling RGBA/BGRA in etnaviv driver

2017-02-03 Thread Lucas Stach
Hi Wladimir, this is about the userspace component of the driver, so dri-devel isn't the correct list for this question, you should instead CC the MESA dev list, even if mostly the same people hang out on those lists. Done that for you now. Regards, Lucas Am Freitag, den 03.02.2017, 10:56 +01

Re: [Mesa-dev] [PATCH 2/3] etnaviv: keep track of emitted loops

2017-02-08 Thread Lucas Stach
Am Mittwoch, den 08.02.2017, 12:10 +0100 schrieb Christian Gmeiner: > Signed-off-by: Christian Gmeiner Reviewed-by: Lucas Stach > --- > src/gallium/drivers/etnaviv/etnaviv_compiler.c | 6 ++ > src/gallium/drivers/etnaviv/etnaviv_compiler.h | 1 + > 2 files change

Re: [Mesa-dev] [PATCH 3/3] etnaviv: shader-db traces

2017-02-08 Thread Lucas Stach
Am Mittwoch, den 08.02.2017, 12:10 +0100 schrieb Christian Gmeiner: > Signed-off-by: Christian Gmeiner > --- > src/gallium/drivers/etnaviv/etnaviv_compiler.h | 2 ++ > src/gallium/drivers/etnaviv/etnaviv_debug.h| 1 + > src/gallium/drivers/etnaviv/etnaviv_screen.c | 1 + > src/gallium/dr

Re: [Mesa-dev] [PATCH 1/3] etnaviv: wire up core pipe_debug_callback

2017-02-08 Thread Lucas Stach
Am Mittwoch, den 08.02.2017, 12:10 +0100 schrieb Christian Gmeiner: > Signed-off-by: Christian Gmeiner Reviewed-by: Lucas Stach > --- > src/gallium/drivers/etnaviv/etnaviv_context.c | 13 + > src/gallium/drivers/etnaviv/etnaviv_context.h | 2 ++ > 2 files changed

Re: [Mesa-dev] [PATCH 3/3] etnaviv: shader-db traces

2017-02-09 Thread Lucas Stach
Am Mittwoch, den 08.02.2017, 20:47 +0100 schrieb Christian Gmeiner: > Hi Lucas, > > 2017-02-08 12:36 GMT+01:00 Lucas Stach : > > Am Mittwoch, den 08.02.2017, 12:10 +0100 schrieb Christian Gmeiner: > >> Signed-off-by: Christian Gmeiner > >> --- > >> src/

[Mesa-dev] [PATCH] gbm: request correct version of the DRI2_FENCE extension

2016-11-22 Thread Lucas Stach
There is no version 2 of the DRI2_FENCE extension. So only a request for version 1 has a chance to succeed. Fixes: 74b1969d717f (gbm: wire up fence extension) Cc: "13.0" Signed-off-by: Lucas Stach --- src/gbm/backends/dri/gbm_dri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[Mesa-dev] [PATCH 6/6] st/egl: fix drm surface size init

2013-11-06 Thread Lucas Stach
Signed-off-by: Lucas Stach --- src/gallium/state_trackers/egl/drm/modeset.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/egl/drm/modeset.c b/src/gallium/state_trackers/egl/drm/modeset.c index dc71a761053b..11b6db1949c6 100644 --- a/src/gallium

[Mesa-dev] [PATCH 2/6] gallium/targets: build freedreno pipe

2013-11-06 Thread Lucas Stach
Signed-off-by: Lucas Stach --- src/gallium/targets/pipe-loader/Makefile.am | 16 src/gallium/targets/pipe-loader/pipe_freedreno.c | 21 + 2 files changed, 37 insertions(+) create mode 100644 src/gallium/targets/pipe-loader/pipe_freedreno.c diff --git a

[Mesa-dev] [PATCH 3/6] gallium: pipe-loader: make aware of platform DRM devices

2013-11-06 Thread Lucas Stach
Allows to load gallium pipes for ARM DRM drivers. Signed-off-by: Lucas Stach --- include/platform_ids/platform_driver_map.h | 18 src/gallium/auxiliary/pipe-loader/pipe_loader.h| 1 + .../auxiliary/pipe-loader/pipe_loader_drm.c| 53 ++ 3 files

[Mesa-dev] [PATCH 5/6] gallium: gbm/egl: support GBM surface extensions on DRM

2013-11-06 Thread Lucas Stach
Let's applications like Weston create EGL onscreen-surfaces on bare DRM devices. Signed-off-by: Lucas Stach --- src/gallium/state_trackers/egl/drm/native_drm.c| 11 ++ src/gallium/state_trackers/gbm/gbm_drm.c | 44 ++ .../state_tracker

[Mesa-dev] [PATCH 4/6] pipe-loader: add freedreno platform IDs

2013-11-06 Thread Lucas Stach
Signed-off-by: Lucas Stach --- include/platform_ids/platform_driver_map.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/platform_ids/platform_driver_map.h b/include/platform_ids/platform_driver_map.h index c428b81349e6..68595ef0a2f7 100644 --- a/include/platform_ids

[Mesa-dev] [PATCH 1/6] gbm: Support non-PCI devices

2013-11-06 Thread Lucas Stach
From: Thierry Reding When probing non-PCI DRM devices, such as those found in a lot of SoCs, GBM errors out because it expects the device to have an associated PCI ID which can be used to lookup the driver name in a table. This patch removes this restriction by using the driver name from the drm

Re: [Mesa-dev] [PATCH 3/3] st/xorg: Delete.

2013-11-07 Thread Lucas Stach
gs to XA, it's just some git history digging. So, Acked-by: Lucas Stach > configure.ac | 56 +- > src/gallium/SConscript |3 - > src/gallium/state_trackers/Makefile.am |4 - > src/gallium/state_t

Re: [Mesa-dev] [PATCH 2/4] nv50: implement new float comparison instructions

2013-08-28 Thread Lucas Stach
Am Dienstag, den 13.08.2013, 20:14 +0200 schrieb Christoph Bumiller: > On 13.08.2013 19:04, srol...@vmware.com wrote: > > From: Roland Scheidegger > > > > untested. > > Looks like it should work though, thanks. > nv50 only supported u32 result all along and on nvc0 both cases are > already handle

[Mesa-dev] [PATCH libdrm] modeprint: pretty print connector names

2014-01-17 Thread Lucas Stach
Use same names as the kernel, makes it easier to identify connectors in the common case. Signed-off-by: Lucas Stach --- tests/modeprint/modeprint.c | 28 +++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/tests/modeprint/modeprint.c b/tests/modeprint

Re: [Mesa-dev] [PATCH libdrm] modeprint: pretty print connector names

2014-01-24 Thread Lucas Stach
Ping. Can someone please take a look and if there are no objections commit this for me? I don't have commit access myself. Am Freitag, den 17.01.2014, 12:19 +0100 schrieb Lucas Stach: > Use same names as the kernel, makes it easier to identify > connectors in the common case. > &

Re: [Mesa-dev] [PATCH v4] etnaviv: fix resource usage tracking across different pipe_context's

2019-01-14 Thread Lucas Stach
Hi Marek, Am Samstag, den 12.01.2019, 22:22 +0100 schrieb Marek Vasut: > > From: Christian Gmeiner > > A pipe_resource can be shared by all the pipe_context's hanging off the > same pipe_screen. > > > Signed-off-by: Christian Gmeiner > > Signed-off-by: Marek Vasut > To: mesa-dev@lists.freedes

Re: [Mesa-dev] [PATCH v4] etnaviv: fix resource usage tracking across different pipe_context's

2019-01-14 Thread Lucas Stach
Am Montag, den 14.01.2019, 14:54 +0100 schrieb Marek Vasut: > On 1/14/19 12:16 PM, Lucas Stach wrote: > > Hi Marek, > > > > Am Samstag, den 12.01.2019, 22:22 +0100 schrieb Marek Vasut: > > > > From: Christian Gmeiner > > > > > > A pipe_resou

Re: [Mesa-dev] [PATCH v4] etnaviv: fix resource usage tracking across different pipe_context's

2019-01-14 Thread Lucas Stach
Am Montag, den 14.01.2019, 15:20 +0100 schrieb Marek Vasut: > On 1/14/19 3:02 PM, Lucas Stach wrote: > > Am Montag, den 14.01.2019, 14:54 +0100 schrieb Marek Vasut: > > > On 1/14/19 12:16 PM, Lucas Stach wrote: > > > > Hi Marek, > > > > > > >

Re: [Mesa-dev] [PATCH v4] etnaviv: fix resource usage tracking across different pipe_context's

2019-01-16 Thread Lucas Stach
Am Samstag, den 12.01.2019, 22:22 +0100 schrieb Marek Vasut: > > From: Christian Gmeiner > > A pipe_resource can be shared by all the pipe_context's hanging off the > same pipe_screen. > > > Signed-off-by: Christian Gmeiner > > Signed-off-by: Marek Vasut > To: mesa-dev@lists.freedesktop.org >

Re: [Mesa-dev] [PATCH] egl/wayland: break double/tripple buffering feedback loops

2019-01-16 Thread Lucas Stach
Am Dienstag, den 15.01.2019, 10:35 -0600 schrieb Derek Foreman: > On 1/15/19 8:02 AM, Daniel Stone wrote: > > Hi, > > > > > > On Tue, 18 Dec 2018 at 17:59, Lucas Stach > > > > wrote: > > > Am Dienstag, den 18.12.2018, 17:43 + schrieb Emil

Re: [Mesa-dev] Double free error on etnaviv driver.

2019-01-17 Thread Lucas Stach
Hi Sergey, Am Mittwoch, den 16.01.2019, 13:34 +0300 schrieb Nazarov Sergey: > Hello! > I use mesa+etnaviv Gallium driver on iMX6Q based board. > I have double free error at the end of any application using mesa. > I've found that the problem comes from current ARM g++ compilers > (at least from 4.

Re: [Mesa-dev] Double free error on etnaviv driver.

2019-01-18 Thread Lucas Stach
Hi Sergey, Am Donnerstag, den 17.01.2019, 18:14 +0300 schrieb Nazarov Sergey: > Hi, Lucas! > Here is result of execution standard Qt5 example application mainwindow > built under custom buildroot with gcc-4.9.4, mesa3d-17.3.6. > But we had the same error with latest buildroot and latest supported

Re: [Mesa-dev] [PATCH 1/4] etnaviv: extend etna_resource with an addressing mode

2019-01-21 Thread Lucas Stach
Hi Christian, first of all, thanks for figuring this out. This is really nice to finally know how it works. Am Montag, den 21.01.2019, 07:49 +0100 schrieb Christian Gmeiner: > Defines how sampler (and pixel pipes) needs to access the data > represented with a resource. The used default is mode is

Re: [Mesa-dev] [PATCH 4/4] etnaviv: hook up linear texture sampling support

2019-01-21 Thread Lucas Stach
Am Montag, den 21.01.2019, 07:50 +0100 schrieb Christian Gmeiner: > If the GPU supports linear sampling, linear addressing mode > will be used as default. > > > Signed-off-by: Christian Gmeiner > --- >  src/gallium/drivers/etnaviv/etnaviv_resource.c | 10 +++--- >  src/gallium/drivers/etnaviv/

Re: [Mesa-dev] [PATCH 1/4] etnaviv: extend etna_resource with an addressing mode

2019-01-24 Thread Lucas Stach
Am Donnerstag, den 24.01.2019, 07:31 +0100 schrieb Christian Gmeiner: > Hi Lucas > > Am Mo., 21. Jan. 2019 um 10:03 Uhr schrieb Lucas Stach > : > > > > Hi Christian, > > > > first of all, thanks for figuring this out. This is really nice > > to fin

Re: [Mesa-dev] [PATCH 4/4] etnaviv: hook up linear texture sampling support

2019-01-24 Thread Lucas Stach
Am Donnerstag, den 24.01.2019, 07:46 +0100 schrieb Christian Gmeiner: > Am Mo., 21. Jan. 2019 um 10:10 Uhr schrieb Lucas Stach > : > > > > Am Montag, den 21.01.2019, 07:50 +0100 schrieb Christian Gmeiner: > > > If the GPU supports linear sampling, linear addressing

Re: [Mesa-dev] [PATCH 4/4] etnaviv: hook up linear texture sampling support

2019-01-25 Thread Lucas Stach
atures1, LINEAR_TEXTURE_SUPPORT)) > +  return true; In order to avoid this sitting on the ML for too long while mostly looking good: how would you feel about squashing this last hunk into the previous patch and dropping the other parts of this patch for now? This wa

Re: [Mesa-dev] [PATCH 2/4] etnaviv: keep track of mapped bo address

2019-02-22 Thread Lucas Stach
Am Freitag, den 22.02.2019, 10:18 +0100 schrieb Christian Gmeiner: > Saves us from calling etna_bo_map(..) and saves us from doing the > same offset calcs for map() and unmap() operations. > > Signed-off-by: Christian Gmeiner Reviewed-by: Lucas Stach > --- > src/galli

Re: [Mesa-dev] [PATCH 3/4] etnaviv: hook-up etc2 patching

2019-02-22 Thread Lucas Stach
Am Freitag, den 22.02.2019, 10:18 +0100 schrieb Christian Gmeiner: > Signed-off-by: Christian Gmeiner AFAICS this is directly operating on the mapped buffer, right? As ETC is stored as a linear, we won't get a temporary resource for the transfer, but map the GPU resource directly. So this will f

Re: [Mesa-dev] etnaviv: rs: mark used src resource as read from

2019-02-22 Thread Lucas Stach
Am Freitag, den 22.02.2019, 11:02 +0100 schrieb Christian Gmeiner: > Signed-off-by: Christian Gmeiner Reviewed-by: Lucas Stach > --- > src/gallium/drivers/etnaviv/etnaviv_rs.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/gallium/drivers/etnaviv/etnaviv_rs.

Re: [Mesa-dev] [PATCH] etnaviv: blt: mark used src resource as read from

2019-02-22 Thread Lucas Stach
Am Freitag, den 22.02.2019, 11:10 +0100 schrieb Christian Gmeiner: > Signed-off-by: Christian Gmeiner Reviewed-by: Lucas Stach > --- > src/gallium/drivers/etnaviv/etnaviv_blt.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/src/gallium/drivers/etnaviv/etn

Re: [Mesa-dev] [PATCH v2 3/4] etnaviv: hook-up etc2 patching

2019-02-27 Thread Lucas Stach
Am Dienstag, den 26.02.2019, 19:15 +0100 schrieb Christian Gmeiner: > Changes v1 -> v2: >  - Avoid the GPU sampling from the resource that gets mutated by the the >    transfer map by setting DRM_ETNA_PREP_WRITE. > > > Signed-off-by: Christian Gmeiner > --- >  .../drivers/etnaviv/etnaviv_resource

Re: [Mesa-dev] [PATCH v2 1/4] etnaviv: implement ETC2 block patching for HALTI0

2019-02-27 Thread Lucas Stach
ds_patching(const struct pipe_resource *prsc) > +{ > +   const struct etna_screen *screen = etna_screen(prsc->screen); > + > +   if (!util_format_is_etc(prsc->format)) > +  return false; > + > +   if (prsc->format == PIPE_FORMAT_ETC1_RGB8) > +  retu

Re: [Mesa-dev] [PATCH v2 4/4] etnaviv: enable ETC2 texture compression support for HALTI0 GPUs

2019-02-27 Thread Lucas Stach
Am Dienstag, den 26.02.2019, 19:15 +0100 schrieb Christian Gmeiner: > Signed-off-by: Christian Gmeiner Reviewed-by: Lucas Stach > --- >  src/gallium/drivers/etnaviv/etnaviv_screen.c | 12 +--- >  1 file changed, 1 insertion(+), 11 deletions(-) > > diff --git a/s

Re: [Mesa-dev] [PATCH v3 3/4] etnaviv: hook-up etc2 patching

2019-02-27 Thread Lucas Stach
- drop minor optimization regarding rsc->layout == ETNA_LAYOUT_LINEAR > - better documentation why DRM_ETNA_PREP_WRITE is needed > > Signed-off-by: Christian Gmeiner Reviewed-by: Lucas Stach > --- > .../drivers/etnaviv/etnaviv_resource.c| 3 + > ..

[Mesa-dev] [PATCH RFC 2/2] GBM: use KMS device to allocate scanout and cursor BOs

2016-03-04 Thread Lucas Stach
. Signed-off-by: Lucas Stach --- src/gbm/main/gbm.c| 77 +-- src/gbm/main/gbmint.h | 1 + 2 files changed, 69 insertions(+), 9 deletions(-) diff --git a/src/gbm/main/gbm.c b/src/gbm/main/gbm.c index 26339747f3a1..74f0bdb6d0f1 100644 --- a/src/gbm

[Mesa-dev] [PATCH RFC 1/2] GBM: add KMS provider interface

2016-03-04 Thread Lucas Stach
backing the window surface and hiding the needed PRIME import/export. This interface allows this by constructing a second GBM device on top of the KMS capable DRM device and binding this as the KMS provider to the render GBM device. Signed-off-by: Lucas Stach --- src/gbm/main/gbm.c| 35

[Mesa-dev] [PATCH RFC 0/2] GBM API extension to support fusing KMS and render devices

2016-03-04 Thread Lucas Stach
hope that the Tegra guys can help to move things forward and would like to hear from you if this design sounds sane to all of you. Regards, Lucas Lucas Stach (2): GBM: add KMS provider interface GBM: use KMS device to allocate scanout and cursor BOs src/gbm/main/gbm.c| 98

Re: [Mesa-dev] [PATCH RFC 0/2] GBM API extension to support fusing KMS and render devices

2016-03-04 Thread Lucas Stach
Am Freitag, den 04.03.2016, 15:09 + schrieb Daniel Stone: > Hi Lucas, > > On 4 March 2016 at 13:49, Lucas Stach wrote: > > this is a first shot at trying to hash out an API to allow bootstrapping > > an EGL context on top of split render/scanout DRM devices. It tri

Re: [Mesa-dev] [PATCH RFC 0/2] GBM API extension to support fusing KMS and render devices

2016-03-04 Thread Lucas Stach
Am Freitag, den 04.03.2016, 17:20 + schrieb Daniel Stone: > Hi, > > On 4 March 2016 at 16:08, Lucas Stach wrote: > > Am Freitag, den 04.03.2016, 15:09 + schrieb Daniel Stone: > >> Thanks for taking this on, it looks really good! I just have the one > >>

Re: [Mesa-dev] [PATCH RFC 0/2] GBM API extension to support fusing KMS and render devices

2016-03-07 Thread Lucas Stach
Am Freitag, den 04.03.2016, 18:34 + schrieb Emil Velikov: > On 4 March 2016 at 17:38, Lucas Stach wrote: > > Am Freitag, den 04.03.2016, 17:20 + schrieb Daniel Stone: > >> Hi, > >> > >> On 4 March 2016 at 16:08, Lucas Stach wrote: > >> >

Re: [Mesa-dev] [PATCH RFC 0/2] GBM API extension to support fusing KMS and render devices

2016-03-07 Thread Lucas Stach
Am Montag, den 07.03.2016, 11:19 +0100 schrieb Thierry Reding: > On Mon, Mar 07, 2016 at 10:46:52AM +0100, Lucas Stach wrote: > > Am Freitag, den 04.03.2016, 18:34 + schrieb Emil Velikov: > > > On 4 March 2016 at 17:38, Lucas Stach wrote: > > > > Am Freita

[Mesa-dev] [PATCH 3/6] etnaviv: honor PIPE_TRANSFER_UNSYNCHRONIZED flag

2017-05-19 Thread Lucas Stach
This gets rid of quite a bit of CPU/GPU sync on frequent vertex buffer uploads and I haven't seen any of the issues mentioned in the comment, so this one seems stale. Ignore the flag if there exists a temporary resource, as those ones are never busy. Signed-off-by: Lucas Stach --- src/ga

[Mesa-dev] [PATCH 1/6] etnaviv: always do cpu_fini in transfer_unmap

2017-05-19 Thread Lucas Stach
.org Signed-off-by: Lucas Stach --- src/gallium/drivers/etnaviv/etnaviv_transfer.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/etnaviv/etnaviv_transfer.c b/src/gallium/drivers/etnaviv/etnaviv_transfer.c index 1a5aa7fc043c..4809b04ff95f 100644 --

[Mesa-dev] [PATCH 4/6] etnaviv: don't read back resource if transfer discards contents

2017-05-19 Thread Lucas Stach
Reduces bandwidth usage of transfers which discard the buffer contents, as well as skipping unnecessary command stream flushes and CPU/GPU synchronization. Signed-off-by: Lucas Stach --- src/gallium/drivers/etnaviv/etnaviv_transfer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion

[Mesa-dev] [PATCH 5/6] etnaviv: simplify transfer tiling handling

2017-05-19 Thread Lucas Stach
There is no need to special case compressed resources, as they are already marked as linear on allocation. With that out of the way, there is room to cut down on the number of if clauses used. Signed-off-by: Lucas Stach --- src/gallium/drivers/etnaviv/etnaviv_transfer.c | 70

[Mesa-dev] [PATCH 2/6] etnaviv: slim down resource waiting

2017-05-19 Thread Lucas Stach
cpu_prep() already does all the required waiting, so the only thing that needs to be done is flushing the commandstream, if a GPU write is pending. Signed-off-by: Lucas Stach --- src/gallium/drivers/etnaviv/etnaviv_clear_blit.c | 5 +++-- src/gallium/drivers/etnaviv/etnaviv_resource.c | 16

[Mesa-dev] [PATCH 0/6] etnaviv transfer handling improvements

2017-05-19 Thread Lucas Stach
some handling for the easy "make things faster" flags. Regards, Lucas Lucas Stach (6): etnaviv: always do cpu_fini in transfer_unmap etnaviv: slim down resource waiting etnaviv: honor PIPE_TRANSFER_UNSYNCHRONIZED flag etnaviv: don't read back resource if transfer discard

[Mesa-dev] [PATCH 6/6] etnaviv: upgrade DISCARD_RANGE to DISCARD_WHOLE_RESOURCE if possible

2017-05-19 Thread Lucas Stach
Stolen from VC4. As we don't do any fancy reallocation tricks yet, it's possible to upgrade also coherent mappings and shared resources. Signed-off-by: Lucas Stach --- src/gallium/drivers/etnaviv/etnaviv_transfer.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/s

Re: [Mesa-dev] [PATCH v13 11/36] st/dri: implement createImageWithModifiers in DRIimage

2017-05-19 Thread Lucas Stach
Am Freitag, den 19.05.2017, 10:37 +0100 schrieb Daniel Stone: > From: Varad Gautam > > adds a pscreen->resource_create_with_modifiers() to create textures > with modifier. > > Signed-off-by: Varad Gautam > Signed-off-by: Daniel Stone Reviewed-by: Lucas Stach >

Re: [Mesa-dev] [PATCH v13 10/36] st/dri: enable DRIimage modifier queries

2017-05-19 Thread Lucas Stach
> Signed-off-by: Daniel Stone Reviewed-by: Lucas Stach > --- > src/gallium/state_trackers/dri/dri2.c | 15 +++ > src/gallium/state_trackers/dri/dri_screen.h | 1 + > 2 files changed, 16 insertions(+) > > diff --git a/src/gallium/state_trackers/dri/dri2

Re: [Mesa-dev] [PATCH v13 12/36] st/dri: implement DRIimage creation from dmabufs with modifiers

2017-05-19 Thread Lucas Stach
alize winsys modifier to DRM_FORMAT_MOD_INVALID (Daniel Stone) > > Signed-off-by: Varad Gautam > Signed-off-by: Daniel Stone Reviewed-by: Lucas Stach > --- > src/gallium/include/state_tracker/drm_driver.h | 2 ++ > src/gallium/state_trackers/dri/dri2.c | 48 >

Re: [Mesa-dev] [PATCH v13 13/36] st/dri: support format queries

2017-05-19 Thread Lucas Stach
Am Freitag, den 19.05.2017, 10:37 +0100 schrieb Daniel Stone: > From: Varad Gautam > > ask the driver for supported dmabuf formats > > v2: rebase to master. > v3: return false on failure. > v4: use pscreen->is_format_supported instead of adding a new query. > (L

Re: [Mesa-dev] [PATCH v13 15/36] st/dri: support format modifier queries

2017-05-19 Thread Lucas Stach
y driver. > v4: purge PIPE_CAP_QUERY_DMABUF_ATTRIBS. > > Signed-off-by: Varad Gautam > Signed-off-by: Daniel Stone Reviewed-by: Lucas Stach > --- > src/gallium/state_trackers/dri/dri2.c | 24 +++- > 1 file changed, 23 insertions(+), 1 deletion(-) >

Re: [Mesa-dev] [PATCH] etnaviv: Don't try to use the index buffer if size is zero

2017-05-22 Thread Lucas Stach
y: Tomeu Vizoso > Cc: etna...@lists.freedesktop.org > Cc: Marek Olšák > Fixes: 330d0607ed60 ("gallium: remove pipe_index_buffer and set_index_buffer") Reviewed-by: Lucas Stach If no one objects, I'm going to push this today. Regards, Lucas > --- > src/gallium/drivers/etnaviv/e

Re: [Mesa-dev] [PATCH libdrm] header: update drm_fourcc.h

2017-05-22 Thread Lucas Stach
Am Dienstag, den 02.05.2017, 16:35 +0200 schrieb Lucas Stach: > Mostly to pull in the Vivante tiling format modifiers, but some other > little changes included. > > Signed-off-by: Lucas Stach If there are no objections to this patch, I'm going to push it today. Regards, Lucas

Re: [Mesa-dev] [PATCH v3 01/15] st/dri: refactor multi-planar YUV import path

2017-05-22 Thread Lucas Stach
Am Mittwoch, den 10.05.2017, 23:15 +0530 schrieb Varad Gautam: > From: Varad Gautam > > we currently ignore the plane count when converting from > __DRI_IMAGE_FORMAT* tokens to __DRI_IMAGE_FOURCC* for multiplanar > images, and only return the first plane's simplified fourcc. > > this adds a four

Re: [Mesa-dev] [PATCH 1/3] etnaviv: Add support for extended texture formats

2017-05-22 Thread Lucas Stach
Am Dienstag, den 16.05.2017, 21:31 +0200 schrieb Christian Gmeiner: > Hi Wladimir. > > I started working on this topic last week and thought some time on how > to add those ext texture formats in a clean and nice way. I come up > with this patches: > > https://github.com/austriancoder/mesa/commit

Re: [Mesa-dev] [PATCH v3 01/15] st/dri: refactor multi-planar YUV import path

2017-05-23 Thread Lucas Stach
Hi Varad, Am Dienstag, den 23.05.2017, 14:40 +0530 schrieb Varad Gautam: > Hi Lucas, > > On Mon, May 22, 2017 at 11:16 PM, Lucas Stach wrote: > > Am Mittwoch, den 10.05.2017, 23:15 +0530 schrieb Varad Gautam: > >> From: Varad Gautam > >> > >> we curren

Re: [Mesa-dev] [PATCH] etnaviv: Don't try to use the index buffer if size is zero

2017-05-29 Thread Lucas Stach
Hi Tomeu, Am Freitag, den 19.05.2017, 12:40 +0200 schrieb Tomeu Vizoso: > If info->index_size is zero, info->index will point to uninitialized > memory. > > Fatal signal 11 (SIGSEGV), code 2, fault addr 0xab5d07a3 in tid 20456 > (surfaceflinger) > > Signed-off-by: Tomeu Vizoso > Cc: etna...@li

Re: [Mesa-dev] [PATCH 1/6] etnaviv: always do cpu_fini in transfer_unmap

2017-05-30 Thread Lucas Stach
Can someone please take a look at this one patch at least? I'm fine with the rest of the series waiting a bit longer, but I would like to push this bugfix patch in the next few days. Thanks, Lucas Am Freitag, den 19.05.2017, 11:41 +0200 schrieb Lucas Stach: > The cpu_fini() call pu

[Mesa-dev] [PATCH 0/6] Shooting some piglits

2017-06-04 Thread Lucas Stach
next 2 patches fix some fallout from the RB swapped rendertarget work, so they are fixing real regressions from mesa 17.0. The last patch gets the LOD bias test to pass. Regards, Lucas Lucas Stach (6): etnaviv: don't try RS blit if blit region is unaligned etnaviv: use padded width/heigh

[Mesa-dev] [PATCH 3/6] etnaviv: remove bogus assert

2017-06-04 Thread Lucas Stach
etna_resource_copy_region handles resources with multiple samples by falling back to the software path. There is no need to kill the application there. Signed-off-by: Lucas Stach --- src/gallium/drivers/etnaviv/etnaviv_clear_blit.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src

[Mesa-dev] [PATCH 1/6] etnaviv: don't try RS blit if blit region is unaligned

2017-06-04 Thread Lucas Stach
If the blit region is not aligned to the RS min alignment don't try to execute the blit, but fall back to the software path. Signed-off-by: Lucas Stach --- src/gallium/drivers/etnaviv/etnaviv_clear_blit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/dr

[Mesa-dev] [PATCH 2/6] etnaviv: use padded width/height for resource copies

2017-06-04 Thread Lucas Stach
copies. Signed-off-by: Lucas Stach --- src/gallium/drivers/etnaviv/etnaviv_clear_blit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/etnaviv/etnaviv_clear_blit.c b/src/gallium/drivers/etnaviv/etnaviv_clear_blit.c index 6844943..263b283 100644 --- a/src

[Mesa-dev] [PATCH 4/6] etnaviv: replace translate_clear_color with util_pack_color

2017-06-04 Thread Lucas Stach
This replaces the open coded etnaviv version of the color pack with the common util_pack_color. Fixes piglits: arb_color_buffer_float-clear fcc-front-buffer-distraction fbo-clearmipmap Signed-off-by: Lucas Stach --- src/gallium/drivers/etnaviv/etnaviv_clear_blit.c | 13 ++- src/gallium

[Mesa-dev] [PATCH 6/6] etnaviv: advertise correct max LOD bias

2017-06-04 Thread Lucas Stach
The maximum LOD bias supported is the same as the max texture level supported. Fixes piglit: ext_texture_lod_bias Signed-off-by: Lucas Stach --- src/gallium/drivers/etnaviv/etnaviv_screen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/etnaviv

[Mesa-dev] [PATCH 5/6] etnaviv: mask correct channel for RB swapped rendertargets

2017-06-04 Thread Lucas Stach
Now that we support RB swapped targets by using a shader variant, we must derive the color mask from both the blend state and the bound framebuffer. Fixes piglit: fbo-colormask-formats Signed-off-by: Lucas Stach --- src/gallium/drivers/etnaviv/etnaviv_blend.c | 48

Re: [Mesa-dev] [PATCH 5/6] etnaviv: mask correct channel for RB swapped rendertargets

2017-06-05 Thread Lucas Stach
Am Sonntag, den 04.06.2017, 16:37 -0400 schrieb Ilia Mirkin: > On Sun, Jun 4, 2017 at 3:06 PM, Lucas Stach wrote: > > +   /* If the complete render target is written, set > > full_overwrite: > > +* - The color mask is > > +* - No blending is us

[Mesa-dev] [PATCH] etnaviv: fix blend color for RB swapped rendertargets

2017-06-05 Thread Lucas Stach
Same as with the colormasks, the blend color needs to be swizzled according to the rendertarget format. Signed-off-by: Lucas Stach --- src/gallium/drivers/etnaviv/etnaviv_blend.c| 35 ++ src/gallium/drivers/etnaviv/etnaviv_blend.h| 6 + src/gallium/drivers

Re: [Mesa-dev] [PATCH 0/6] Shooting some piglits

2017-06-05 Thread Lucas Stach
Hi Fabio, Am Sonntag, den 04.06.2017, 18:26 -0300 schrieb Fabio Estevam: > Hi Lucas, > > On Sun, Jun 4, 2017 at 4:06 PM, Lucas Stach wrote: > > Hi all, > > > > I decided to take a look at our current piglit status and the > > following are > > some stri

[Mesa-dev] [PATCH 2/2] etnaviv: flush resource when binding as sampler view

2017-06-06 Thread Lucas Stach
As TS is also allowed on sampler resources, we need to make sure to resolve to self when binding the resource as a texture, to avoid stale content being sampled. Signed-off-by: Lucas Stach --- src/gallium/drivers/etnaviv/etnaviv_texture.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a

[Mesa-dev] [PATCH 1/2] etnaviv: don't flush resource to self without TS

2017-06-06 Thread Lucas Stach
From: Lucas Stach A resolve to self is only necessary if the resource is fast cleared, so there is never a need to do so if there is no TS allocated. Signed-off-by: Lucas Stach --- src/gallium/drivers/etnaviv/etnaviv_resource.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [Mesa-dev] [PATCH 3/6] etnaviv: honor PIPE_TRANSFER_UNSYNCHRONIZED flag

2017-06-06 Thread Lucas Stach
Am Dienstag, den 30.05.2017, 17:40 +0200 schrieb Philipp Zabel: > On Fri, 2017-05-19 at 11:41 +0200, Lucas Stach wrote: > > This gets rid of quite a bit of CPU/GPU sync on frequent vertex buffer > > uploads and I haven't seen any of the issues mentioned in the comment, > &g

Re: [Mesa-dev] [PATCH 1/2] etnaviv: don't flush resource to self without TS

2017-06-06 Thread Lucas Stach
Am Dienstag, den 06.06.2017, 12:59 +0200 schrieb Wladimir J. van der Laan: > On Tue, Jun 06, 2017 at 12:38:23PM +0200, Lucas Stach wrote: > > From: Lucas Stach > > > > A resolve to self is only necessary if the resource is fast cleared, so > > there is never a need

Re: [Mesa-dev] [PATCH 6/6] etnaviv: upgrade DISCARD_RANGE to DISCARD_WHOLE_RESOURCE if possible

2017-06-08 Thread Lucas Stach
Hi Wladimir, did you also review this patch? It's the last one of this series missing review. Regards, Lucas Am Freitag, den 19.05.2017, 11:41 +0200 schrieb Lucas Stach: > Stolen from VC4. As we don't do any fancy reallocation tricks yet, it's > possible to upgrade also

[Mesa-dev] [PATCH 2/2] etnaviv: remove flat shading workaround

2017-06-08 Thread Lucas Stach
It turned out not to be a hardware bug, but the shader compiler emitting wrong varying component use information. With that fixed we can turn flat shading back on. Signed-off-by: Lucas Stach --- src/gallium/drivers/etnaviv/etnaviv_rasterizer.c | 6 +- 1 file changed, 1 insertion(+), 5

[Mesa-dev] [PATCH 1/2] etnaviv: fix varying interpolation

2017-06-08 Thread Lucas Stach
ut missing a better name I left it as-is. Signed-off-by: Lucas Stach --- src/gallium/drivers/etnaviv/etnaviv_compiler.c | 24 ++-- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/src/gallium/drivers/etnaviv/etnaviv_compiler.c b/src/gallium/drive

Re: [Mesa-dev] [PATCH 6/6] etnaviv: upgrade DISCARD_RANGE to DISCARD_WHOLE_RESOURCE if possible

2017-06-08 Thread Lucas Stach
Am Donnerstag, den 08.06.2017, 15:08 +0200 schrieb Wladimir J. van der Laan: > Hello Lucas, > > On Thu, Jun 08, 2017 at 10:26:04AM +0200, Lucas Stach wrote: > > Hi Wladimir, > > > > did you also review this patch? It's the last one of this series missing > &g

Re: [Mesa-dev] [PATCH v14 08/36] gallium/winsys/drm: introduce modifier field to winsys_handle

2017-06-08 Thread Lucas Stach
Am Dienstag, den 30.05.2017, 17:23 +0530 schrieb Varad Gautam: > From: Varad Gautam > > we use this to import resources with format modifiers, and to support > per-resource modifier queries. > > Signed-off-by: Varad Gautam > Cc: Lucas Stach Reviewed-by: Lucas Stach

Re: [Mesa-dev] [PATCH v14 09/36] st/dri: enable DRIimage modifier queries

2017-06-08 Thread Lucas Stach
ifier from v1. > use DRM_API_HANDLE_TYPE_KMS instead of DRM_API_HANDLE_TYPE_FD to avoid > ownership transfer. (Lucas) > > Suggested-by: Daniel Stone > Signed-off-by: Varad Gautam > Cc: Lucas Stach Reviewed-by: Lucas Stach > --- > src/gallium/state_trackers/dri/dri2.c | 12 ++

Re: [Mesa-dev] [PATCH v14 10/36] st/dri: implement createImageWithModifiers in DRIimage

2017-06-08 Thread Lucas Stach
ce_create_with_modifiers. we can > use the winsys_handle to get this. > > Signed-off-by: Varad Gautam > Reviewed-by: Lucas Stach (v1) > Cc: Lucas Stach Reviewed-by: Lucas Stach > --- > src/gallium/include/pipe/p_screen.h | 15 + > src/gallium/state_trackers/dri

Re: [Mesa-dev] [PATCH v14 13/36] gallium: introduce format modifier querying

2017-06-08 Thread Lucas Stach
mport_modifiers. > > v2: rebase to master. > v3: drivers must return false on query failure. > v4: use pscreen->is_format_supported instead of adding a separate > format query handle, remove PIPE_CAP_QUERY_DMABUF_ATTRIBS. > (Lucas Stach) > v5: add external_only parameter.

Re: [Mesa-dev] [PATCH v14 14/36] st/dri: support format modifier queries

2017-06-08 Thread Lucas Stach
_QUERY_DMABUF_ATTRIBS. > v5: > - move to __DRIimageExtension v15, pass external_only to the driver. > > Signed-off-by: Varad Gautam > Reviewed-by: Lucas Stach (v4) Still valid. > Cc: Lucas Stach > --- > src/gallium/state_trackers/dri/dri2.c | 24 +++- &g

[Mesa-dev] [PATCH 2/2] gbm: implement FD import with modifier

2017-06-08 Thread Lucas Stach
This implements a way to import FDs with modifiers on plain GBM devices, without the need to go through EGL. This is mostly to the benefit of gbm_gralloc, which can keep its dependencies low. Signed-off-by: Lucas Stach --- src/gbm/backends/dri/gbm_dri.c | 54

[Mesa-dev] [PATCH 1/2] gbm: add API to to import FD with modifier

2017-06-08 Thread Lucas Stach
This allows to import an FD with an explicit modifier passed through userspace protocols. Signed-off-by: Lucas Stach --- src/gbm/main/gbm.h | 12 1 file changed, 12 insertions(+) diff --git a/src/gbm/main/gbm.h b/src/gbm/main/gbm.h index b52137ed01d4..6a9bf1fc2a80 100644 --- a/src

Re: [Mesa-dev] [PATCH] etnaviv: add rs-operations sw query

2017-06-09 Thread Lucas Stach
Am Freitag, den 09.06.2017, 12:34 +0200 schrieb Christian Gmeiner: > It could be useful to get the number of emited resolve operations when > doing driver optimizations. > > Signed-off-by: Christian Gmeiner Reviewed-by: Lucas Stach > --- > src/gallium/drivers/etnaviv/etna

Re: [Mesa-dev] glmark2 segfault on imx6

2017-06-13 Thread Lucas Stach
> ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/mesa-devFrom: Lucas Stach Date: Wed, 31 May 2017 13:01:00 +0200 Subject: [PATCH] NativeStateDRM: use fixed event context version

Re: [Mesa-dev] [PATCH] etnaviv: keep track of buffer valid ranges

2017-10-19 Thread Lucas Stach
Am Donnerstag, den 19.10.2017, 07:59 +0200 schrieb Christian Gmeiner: > This allows a write to proceed to an uninitialized part of a buffer > even when the GPU is using the previously-initialized portions. > Same is done for freedreno, nouveau and radeon. > > > Signed-off-by: Christian Gmeiner >

Re: [Mesa-dev] [PATCH] etnaviv: make use of TEXTURE_TYPE_1D

2017-10-26 Thread Lucas Stach
Am Donnerstag, den 26.10.2017, 03:17 +0200 schrieb Christian Gmeiner: > Signed-off-by: Christian Gmeiner Has this been tested on older GPU cores like the GC600? > --- > src/gallium/drivers/etnaviv/etnaviv_texture.c | 7 ++- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a

Re: [Mesa-dev] [PATCH] etnaviv: Don't flush on transfer when UNSYNCHRONIZED

2017-10-30 Thread Lucas Stach
onize. This change is fine as-is. Flushes are only necessary for GPU/CPU sync and to actually fill temporary resources with data, the latter case is handled by the trans->rsc part of the condition. Reviewed-by: Lucas Stach > diff --git a/src/gallium/drivers/etnaviv/etnaviv_transfer.c > b/sr

Re: [Mesa-dev] [PATCH v2] etnaviv: Allow clearing constant buffer using buffer==NULL user_buffer==NULL

2017-10-30 Thread Lucas Stach
Am Samstag, den 28.10.2017, 16:16 +0200 schrieb Wladimir J. van der Laan: > Prevents an assertion when using GALLIUM_HUD with ioquake3, > when cso_restore_constant_buffer_slot0 restores an empty > constant buffer in slot 0. > > > Signed-off-by: Wladimir J. van der Laan > --- >  src/gallium/driver

Re: [Mesa-dev] [PATCH] etnaviv: bugfix: Don't do resolve-in-place without valid TS

2017-11-01 Thread Lucas Stach
Am Mittwoch, den 01.11.2017, 11:17 +0100 schrieb Wladimir J. van der Laan: > GC3000 resolve-in-place assumes that the TS state is configured. > If it is not, this will result in MMU errors. This is especially > apparent when using glGenMipmaps(). > > Fixes a problem introduced in 78ade659569ee6fe9

Re: [Mesa-dev] [PATCH] etnaviv: bugfix: Don't do resolve-in-place without valid TS

2017-11-01 Thread Lucas Stach
Am Mittwoch, den 01.11.2017, 12:34 +0100 schrieb Wladimir J. van der Laan: > On Wed, Nov 01, 2017 at 11:52:55AM +0100, Lucas Stach wrote: > > Am Mittwoch, den 01.11.2017, 11:17 +0100 schrieb Wladimir J. van der Laan: > > > GC3000 resolve-in-place assumes that the TS state is co

  1   2   3   4   >