[Mesa-dev] [PATCH] st/mesa: expose EXT_vertex_array_bgra when supported by backend

2016-06-20 Thread Christian Gmeiner
Signed-off-by: Christian Gmeiner --- src/mesa/state_tracker/st_extensions.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 383983b..122bc88 100644 --- a/src/mesa/state_tracker

Re: [Mesa-dev] [PATCH] st/mesa: expose EXT_vertex_array_bgra when supported by backend

2016-06-22 Thread Christian Gmeiner
Thanks for the reviews.. I only need someone to push this patch :) 2016-06-20 16:46 GMT+02:00 Marek Olšák : > Reviewed-by: Marek Olšák > > Marek > > On Mon, Jun 20, 2016 at 9:44 AM, Christian Gmeiner > wrote: >> Signed-off-by: Christian Gmeiner >>

Re: [Mesa-dev] [RFC] Deprecating old DRI loaders/drivers

2017-05-17 Thread Christian Gmeiner
xx. Not sure about >> etnaviv. > > It doesn't look like etnaviv currently supports native integers. But > I guess some variants do (since some support gles3/gles31). There are > also still folks who want to use a2xx (although not sure that I've > seen any patches po

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

2017-05-22 Thread Christian Gmeiner
2017-05-22 19:51 GMT+02:00 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 c

Re: [Mesa-dev] [PATCH 1/2] etnaviv: Only use renderonly_get_handle for GEM handles.

2017-05-24 Thread Christian Gmeiner
an assert that renderonly_get_handle is only used for getting the > GEM handle. > > Signed-off-by: Eric Anholt Reviewed-by: Christian Gmeiner greets -- Christian Gmeiner, MSc https://www.youtube.com/user/AloryOFFICIAL https://soundcloud.com/christian-gmeiner

Re: [Mesa-dev] [PATCH 2/2] gallium: Add renderonly-based support for pl111+vc4.

2017-05-24 Thread Christian Gmeiner
s that stride > match width. The kernel will reject any modesets to an incorrect stride, > so the 3D driver doesn't need to worry about that. With Emil's comment (regarding drmOpen* API) taken care of Reviewed-by: Christian Gmeiner greets -- Christian Gmeiner, MSc https

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

2017-06-08 Thread Christian Gmeiner
an infinite loop in a release build, or just fall over in a debug build. > > The 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. > Thanks - the series is Rev

[Mesa-dev] [libdrm 0/4] etnaviv: performance counter support

2017-06-09 Thread Christian Gmeiner
function to submit performance monitor requests - etna_cmd_stream_perf(..). The series can be found here: https://github.com/austriancoder/libdrm/tree/perfmon Happy reviewing! Christian Gmeiner (4): etnaviv: submit full struct drm_etnaviv_gem_submit etnaviv: sync uapi header etnaviv: add permon

[Mesa-dev] [libdrm 1/4] etnaviv: submit full struct drm_etnaviv_gem_submit

2017-06-09 Thread Christian Gmeiner
support Signed-off-by: Christian Gmeiner --- etnaviv/etnaviv_cmd_stream.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/etnaviv/etnaviv_cmd_stream.c b/etnaviv/etnaviv_cmd_stream.c index 3c7b0ed..8d0e813 100644 --- a/etnaviv/etnaviv_cmd_stream.c +++ b/etnaviv

[Mesa-dev] [libdrm 2/4] etnaviv: sync uapi header

2017-06-09 Thread Christian Gmeiner
Import the etnaviv header changes from kernel commits x The drm_etnaviv_gem_submit structure was extended to include performance monitor requests. Also two new ioctls got added to readout performance monitor domains and their signals. Signed-off-by: Christian Gmeiner --- etnaviv

[Mesa-dev] [libdrm 4/4] etnaviv: support performance monitor requests

2017-06-09 Thread Christian Gmeiner
Add etna_cmd_stream_perf(..) to submit perform requests. Userspace can submit pmrs via submit ioctl to sample perfmon signals. Signed-off-by: Christian Gmeiner --- etnaviv/etnaviv-symbol-check | 1 + etnaviv/etnaviv_cmd_stream.c | 20 etnaviv/etnaviv_drmif.h | 12

[Mesa-dev] [libdrm 3/4] etnaviv: add permon support

2017-06-09 Thread Christian Gmeiner
Query all domains and their signals and provide it this information via struct etna_perfmon and the corresponding api functions. Signed-off-by: Christian Gmeiner --- etnaviv/Makefile.sources | 1 + etnaviv/etnaviv-symbol-check | 4 + etnaviv/etnaviv_drmif.h | 10 +++ etnaviv

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

2017-06-09 Thread Christian Gmeiner
It could be useful to get the number of emited resolve operations when doing driver optimizations. Signed-off-by: Christian Gmeiner --- src/gallium/drivers/etnaviv/etnaviv_context.h | 1 + src/gallium/drivers/etnaviv/etnaviv_emit.c | 2 ++ src/gallium/drivers/etnaviv/etnaviv_query.c| 1

[Mesa-dev] [PATCH 1/5] etnaviv: update headers from rnndb

2017-10-17 Thread Christian Gmeiner
Update to etna_viv commit 6c9c706. Signed-off-by: Christian Gmeiner --- src/gallium/drivers/etnaviv/hw/cmdstream.xml.h | 36 ++- src/gallium/drivers/etnaviv/hw/common.xml.h| 117 src/gallium/drivers/etnaviv/hw/isa.xml.h | 4 +- src/gallium/drivers/etnaviv/hw/state.xml.h

[Mesa-dev] [PATCH 2/5] etnaviv: add basic infrastructure for hw queries

2017-10-17 Thread Christian Gmeiner
No hardware query is supported yet. Signed-off-by: Christian Gmeiner --- src/gallium/drivers/etnaviv/Makefile.sources | 2 + src/gallium/drivers/etnaviv/etnaviv_context.c | 11 ++ src/gallium/drivers/etnaviv/etnaviv_context.h | 3 + src/gallium/drivers/etnaviv/etnaviv_query.c| 3

[Mesa-dev] [PATCH 3/5] etnaviv: add support for occlusion queries

2017-10-17 Thread Christian Gmeiner
Passes most occlusion query piglits. The following piglits are broken: - spec@arb_occlusion_query@occlusion_query_meta_fragments - spec@arb_occlusion_query@occlusion_query_meta_save - spec@arb_occlusion_query2@render Signed-off-by: Christian Gmeiner --- src/gallium/drivers/etnaviv

[Mesa-dev] [PATCH 5/5] etnaviv: fix implicit conversion warning

2017-10-17 Thread Christian Gmeiner
Galliums query_type used in APIs is unsigned. Signed-off-by: Christian Gmeiner --- src/gallium/drivers/etnaviv/etnaviv_query.h| 2 +- src/gallium/drivers/etnaviv/etnaviv_query_sw.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/etnaviv

[Mesa-dev] [PATCH 4/5] etnaviv: enable occlusion query if GPU supports it

2017-10-17 Thread Christian Gmeiner
Signed-off-by: Christian Gmeiner --- src/gallium/drivers/etnaviv/etnaviv_screen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/etnaviv/etnaviv_screen.c b/src/gallium/drivers/etnaviv/etnaviv_screen.c index 738605a4f3..009bc73c14 100644 --- a/src

[Mesa-dev] [PATCH 0/5] etnaviv: support occlusion queries

2017-10-17 Thread Christian Gmeiner
This small patch series adds support for occlusion queries. This is the last thing needed to expose desktop opengl 2.0! Not all piglits for occlusion queries are passing but overall the results are looking good. Christian Gmeiner (5): etnaviv: update headers from rnndb etnaviv: add basic

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

2017-10-18 Thread 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 --- src/gallium/drivers/etnaviv/etnaviv_resource.c | 3 +++ src/gallium/drivers

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

2017-10-19 Thread Christian Gmeiner
Hi Lucas, 2017-10-19 11:25 GMT+02:00 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

Re: [Mesa-dev] [PATCH 3/5] etnaviv: add support for occlusion queries

2017-10-19 Thread Christian Gmeiner
Am 19.10.2017 7:46 nachm. schrieb "Wladimir J. van der Laan" < laa...@gmail.com>: On Tue, Oct 17, 2017 at 10:38:15PM +0200, Christian Gmeiner wrote: > Passes most occlusion query piglits. The following piglits are broken: > - spec@arb_occlusion_query@occlusion_query_m

[Mesa-dev] [PATCH v2 2/5] etnaviv: add basic infrastructure for hw queries

2017-10-19 Thread Christian Gmeiner
No hardware query is supported yet. v1 -> v2 - removed query_type from strcut etna_hw_sample_provider Signed-off-by: Christian Gmeiner --- src/gallium/drivers/etnaviv/Makefile.sources | 2 + src/gallium/drivers/etnaviv/etnaviv_context.c | 11 ++ src/gallium/drivers/etna

[Mesa-dev] [PATCH v2 1/5] etnaviv: update headers from rnndb

2017-10-19 Thread Christian Gmeiner
Update to etna_viv commit 6c9c706. Signed-off-by: Christian Gmeiner Reviewed-by: Wladimir J. van der Laan --- src/gallium/drivers/etnaviv/hw/cmdstream.xml.h | 36 ++- src/gallium/drivers/etnaviv/hw/common.xml.h| 117 src/gallium/drivers/etnaviv/hw/isa.xml.h | 4 +- src

[Mesa-dev] [PATCH v2 3/5] etnaviv: add support for occlusion queries

2017-10-19 Thread Christian Gmeiner
add comment about 'magic' value 0x1DF5E76 Signed-off-by: Christian Gmeiner --- src/gallium/drivers/etnaviv/etnaviv_query_hw.c | 78 ++ 1 file changed, 78 insertions(+) diff --git a/src/gallium/drivers/etnaviv/etnaviv_query_hw.c b/src/gallium/drivers/etnaviv/etnav

[Mesa-dev] [PATCH v2 4/5] etnaviv: enable occlusion query if GPU supports it

2017-10-19 Thread Christian Gmeiner
Signed-off-by: Christian Gmeiner Reviewed-by: Wladimir J. van der Laan --- src/gallium/drivers/etnaviv/etnaviv_screen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/etnaviv/etnaviv_screen.c b/src/gallium/drivers/etnaviv/etnaviv_screen.c index

[Mesa-dev] [PATCH v2 5/5] etnaviv: fix implicit conversion warning

2017-10-19 Thread Christian Gmeiner
Galliums query_type used in APIs is unsigned. Signed-off-by: Christian Gmeiner Reviewed-by: Wladimir J. van der Laan --- src/gallium/drivers/etnaviv/etnaviv_query.h| 2 +- src/gallium/drivers/etnaviv/etnaviv_query_sw.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a

[Mesa-dev] [PATCH 2/8] etnaviv: HALTI0 indicates extended PE formats

2017-10-20 Thread Christian Gmeiner
Signed-off-by: Christian Gmeiner --- src/gallium/drivers/etnaviv/etnaviv_screen.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/etnaviv/etnaviv_screen.c b/src/gallium/drivers/etnaviv/etnaviv_screen.c index 009bc73c14..0fba192284

[Mesa-dev] [PATCH 5/8] etnaviv: handle 8 byte block in tiling

2017-10-20 Thread Christian Gmeiner
Signed-off-by: Christian Gmeiner --- src/gallium/drivers/etnaviv/etnaviv_tiling.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/etnaviv/etnaviv_tiling.c b/src/gallium/drivers/etnaviv/etnaviv_tiling.c index f4f85c1d6e..113b39cc98 100644 --- a/src

[Mesa-dev] [PATCH 8/8] etnaviv: fix rs blit for formats with blocksize of 8

2017-10-20 Thread Christian Gmeiner
Fixes piglit/bin/oes_texture_float half Signed-off-by: Christian Gmeiner --- src/gallium/drivers/etnaviv/etnaviv_translate.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/etnaviv/etnaviv_translate.h b/src/gallium/drivers/etnaviv/etnaviv_translate.h index 0761251a36

[Mesa-dev] [PATCH 3/8] etnaviv: update RS_FORMAT_MASK to include extended formats

2017-10-20 Thread Christian Gmeiner
Also update RS_FORMAT_RB_SWAP. Signed-off-by: Christian Gmeiner --- src/gallium/drivers/etnaviv/etnaviv_format.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/etnaviv/etnaviv_format.c b/src/gallium/drivers/etnaviv/etnaviv_format.c index a2e215b439

[Mesa-dev] [PATCH 0/8] etnaviv: add OES_texture_half_float support

2017-10-20 Thread Christian Gmeiner
This patch series adds support for half-float texture support. I have the feeling that RS and PE formats differ but that needs more investigation. The last patch in this series is a result of that assumption. Nevertheless it passes piglit/bin/oes_texture_float half. Christian Gmeiner (8): mesa

[Mesa-dev] [PATCH 4/8] etnaviv: add support for extended PE formats

2017-10-20 Thread Christian Gmeiner
Use the extended format if an such a format was passed. Signed-off-by: Christian Gmeiner --- src/gallium/drivers/etnaviv/etnaviv_state.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/etnaviv/etnaviv_state.c b/src/gallium/drivers/etnaviv

[Mesa-dev] [PATCH 1/8] mesa: handle OES_texture_half_float formats in _mesa_base_tex_format()

2017-10-20 Thread Christian Gmeiner
Signed-off-by: Christian Gmeiner --- src/mesa/main/glformats.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index 1e797c24c2..78299aebae 100644 --- a/src/mesa/main/glformats.c +++ b/src/mesa/main/glformats.c

[Mesa-dev] [PATCH 7/8] etnaviv: add float formats

2017-10-20 Thread Christian Gmeiner
Signed-off-by: Christian Gmeiner --- src/gallium/drivers/etnaviv/etnaviv_format.c | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/etnaviv/etnaviv_format.c b/src/gallium/drivers/etnaviv/etnaviv_format.c index 7297de3d85..a7085800aa

[Mesa-dev] [PATCH 6/8] etnaviv: expose float formats only if GPU supports it

2017-10-20 Thread Christian Gmeiner
Signed-off-by: Christian Gmeiner --- src/gallium/drivers/etnaviv/etnaviv_screen.c | 4 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/etnaviv/etnaviv_screen.c b/src/gallium/drivers/etnaviv/etnaviv_screen.c index 0fba192284..ff52054990 100644 --- a/src/gallium/drivers

Re: [Mesa-dev] [PATCH 4/8] etnaviv: add support for extended PE formats

2017-10-21 Thread Christian Gmeiner
Hi Wladimir 2017-10-21 7:27 GMT+02:00 Wladimir J. van der Laan : > On Fri, Oct 20, 2017 at 10:21:24PM +0200, Christian Gmeiner wrote: >> Use the extended format if an such a format was passed. >> >> Signed-off-by: Christian Gmeiner >> --- >> src/gallium/dri

Re: [Mesa-dev] [PATCH 7/8] etnaviv: add float formats

2017-10-21 Thread Christian Gmeiner
Hi Wladimir 2017-10-21 8:27 GMT+02:00 Wladimir J. van der Laan : > On Fri, Oct 20, 2017 at 10:21:27PM +0200, Christian Gmeiner wrote: >> Signed-off-by: Christian Gmeiner > > Reviewed-by: Wladimir J. van der Laan > > Optional suggestions inline. > Makes sense

Re: [Mesa-dev] [PATCH 8/8] etnaviv: fix rs blit for formats with blocksize of 8

2017-10-21 Thread Christian Gmeiner
Hi Wladimir 2017-10-21 7:28 GMT+02:00 Wladimir J. van der Laan : > On Fri, Oct 20, 2017 at 10:21:28PM +0200, Christian Gmeiner wrote: >> Fixes piglit/bin/oes_texture_float half >> >> Signed-off-by: Christian Gmeiner >> --- >> src/gallium/drivers/etnaviv/etna

Re: [Mesa-dev] meson build for etnaviv and imx

2017-10-21 Thread Christian Gmeiner
for adding etnaviv/imx support - had that on my TODO list for elce. I am just updating the used rfs filesystem on my nfs share and will give it a try. greets -- Christian Gmeiner, MSc https://christian-gmeiner.info ___ mesa-dev mailing list mesa-dev@list

Re: [Mesa-dev] [PATCH 1/2] meson: build etnaviv driver + winsys

2017-10-21 Thread Christian Gmeiner
2017-10-21 1:04 GMT+02:00 Dylan Baker : > Build tested only. > > Signed-off-by: Dylan Baker Reviewed-by: Christian Gmeiner > --- > meson.build| 6 ++ > meson_options.txt | 2 +- > src/gallium/drivers/etnavi

Re: [Mesa-dev] [PATCH 2/2] meson: build imx driver

2017-10-21 Thread Christian Gmeiner
2017-10-21 1:04 GMT+02:00 Dylan Baker : > This is build tested only. > > Signed-off-by: Dylan Baker Reviewed-by: Christian Gmeiner > --- > meson.build| 5 + > meson_options.txt | 2 +- > src/gallium/meson.buil

Re: [Mesa-dev] meson build for etnaviv and imx

2017-10-21 Thread Christian Gmeiner
ers= cd build; ninja For more info have a look at http://mesonbuild.com/ greets -- Christian Gmeiner, MSc https://christian-gmeiner.info ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] meson build for etnaviv and imx

2017-10-21 Thread Christian Gmeiner
Hi Dylan 2017-10-21 12:17 GMT+02:00 Christian Gmeiner : > 2017-10-21 1:04 GMT+02:00 Dylan Baker : >> This is all pretty straight-forward, it builds on my system, but I don't have >> any actual hardware to test on. >> >> Christian and/or Wladimir, could one of yo

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

2017-10-25 Thread Christian Gmeiner
Signed-off-by: Christian Gmeiner --- src/gallium/drivers/etnaviv/etnaviv_texture.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/etnaviv/etnaviv_texture.c b/src/gallium/drivers/etnaviv/etnaviv_texture.c index b8ebab6082..f71169d227 100644 --- a

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

2017-10-26 Thread Christian Gmeiner
2017-10-26 9:45 GMT+02:00 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? > Not yet... only looked what binary blob is using. >> ---

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

2017-10-26 Thread Christian Gmeiner
2017-10-26 15:51 GMT+02:00 Wladimir : > On Thu, Oct 26, 2017 at 9:45 AM, Lucas Stach wrote: >> 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

[Mesa-dev] [PATCH] etnaviv: add ext_texture_srgb support

2017-10-28 Thread Christian Gmeiner
Following piglits are passing: - glean@texture_srgb - spec@ext_texture_srgb@fbo-srgb - spec@ext_texture_srgb@tex-srgb - spec@ext_texture_srgb@texwrap formats - spec@ext_texture_srgb@texwrap formats-s3tc Btw. this enables GL 2.1 :-) Signed-off-by: Christian Gmeiner --- src/gallium/drivers

Re: [Mesa-dev] [PATCH 2/2] etnaviv: ASTC texture support

2017-11-01 Thread Christian Gmeiner
Hi.. First quick review send from my smartphone... Am 01.11.2017 6:19 nachm. schrieb "Wladimir J. van der Laan" < laa...@gmail.com>: Add ASTC texture support for hardware that supports this (currently only GC3000 on i.MX6qp is known to have this). Signed-off-by: Wladimir J. van der Laan --- s

Re: [Mesa-dev] [PATCH 2/2] etnaviv: ASTC texture support

2017-11-01 Thread Christian Gmeiner
Am 01.11.2017 7:06 nachm. schrieb "Wladimir J. van der Laan" < laa...@gmail.com>: On Wed, Nov 01, 2017 at 06:38:21PM +0100, Christian Gmeiner wrote: > I would love to see a new format helper (util_format_is_astc(..) and not > even start thinking about adding a new f

Re: [Mesa-dev] [PATCH 02/19] etnaviv: Const-correctness etnaviv_emit.h

2017-11-05 Thread Christian Gmeiner
2017-10-30 17:16 GMT+01:00 Wladimir J. van der Laan : > The relocation structure is never changed by submitting it. > > Signed-off-by: Wladimir J. van der Laan Reviewed-by: Christian Gmeiner > --- > src/gallium/drivers/etnaviv/etnaviv_emit.h | 2 +- > 1 file changed,

Re: [Mesa-dev] [PATCH 03/19] etnaviv: Put HALTI level in specs

2017-11-05 Thread Christian Gmeiner
; Signed-off-by: Wladimir J. van der Laan Reviewed-by: Christian Gmeiner > --- > src/gallium/drivers/etnaviv/etnaviv_internal.h | 2 ++ > src/gallium/drivers/etnaviv/etnaviv_screen.c | 21 + > 2 files changed, 23 insertions(+) > > diff --git a/src/gallium/driver

Re: [Mesa-dev] [PATCH 04/19] etnaviv: Emit SCALE for vertex attributes

2017-11-05 Thread Christian Gmeiner
_state.c > @@ -550,6 +550,7 @@ etna_vertex_elements_state_create(struct pipe_context > *pctx, > > VIVS_FE_VERTEX_ELEMENT_CONFIG_STREAM(elements[idx].vertex_buffer_index) | > VIVS_FE_VERTEX_ELEMENT_CONFIG_START(elements[idx].src_offset) | > VIVS_FE_VERTEX_ELEMENT_CONFIG_END(end_of

Re: [Mesa-dev] [PATCH 06/19] etnaviv: GC7000: Support BLT as recipient for etna_stall

2017-11-05 Thread Christian Gmeiner
+81,11 @@ etna_stall(struct etna_cmd_stream *stream, uint32_t from, > uint32_t to) >etna_emit_load_state(stream, VIVS_GL_STALL_TOKEN >> 2, 1, 0); >etna_cmd_stream_emit(stream, VIVS_GL_STALL_TOKEN_FROM(from) | > VIVS_GL_STALL_TOKEN_TO(to)); > } > + > +

Re: [Mesa-dev] [PATCH 06/19] etnaviv: GC7000: Support BLT as recipient for etna_stall

2017-11-05 Thread Christian Gmeiner
2017-11-05 12:54 GMT+01:00 Wladimir : > On Sun, Nov 5, 2017 at 12:47 PM, Christian Gmeiner > wrote: >> 2017-10-30 17:16 GMT+01:00 Wladimir J. van der Laan : >>> When the BLT is involved as source or target, add an extra BLT >>> enable/disable sequence around the sync

Re: [Mesa-dev] [PATCH 07/19] etnaviv: GC7000: Add etnaviv_blt

2017-11-05 Thread Christian Gmeiner
fo src; > +struct blt_imginfo dest; > +uint16_t src_x; > +uint16_t src_y; > +uint16_t dest_x; > +uint16_t dest_y; > +uint16_t rect_w; > +uint16_t rect_h; > +}; > + > +/** Resolve-in-place operation. > + * Fills unfilled tiles. > + */ > +struct

Re: [Mesa-dev] [PATCH 07/19] etnaviv: GC7000: Add etnaviv_blt

2017-11-05 Thread Christian Gmeiner
2017-11-05 13:02 GMT+01:00 Christian Gmeiner : > 2017-10-30 17:16 GMT+01:00 Wladimir J. van der Laan : >> Add a low-level library for using the BLT engine from the etnaviv >> driver. >> > > As I have no HW to test it I am just looking at the code and write > down what

Re: [Mesa-dev] [PATCH 08/19] etnaviv: GC7000: Split off RS blit functions

2017-11-05 Thread Christian Gmeiner
2017-10-30 17:16 GMT+01:00 Wladimir J. van der Laan : > Prepare for BLT-based blitting path by moving RS-based > blitting to its own implementation file. > > Signed-off-by: Wladimir J. van der Laan > --- > src/gallium/drivers/etnaviv/Makefile.sources | 1 + src/gallium/drivers/etnaviv/mes

Re: [Mesa-dev] [PATCH 09/19] etnaviv: GC7000: BLT engine blitting support

2017-11-05 Thread Christian Gmeiner
at), > + util_format_short_name(info.dst.resource->format)); > + return; > + } > + > + etna_blit_save_state(ctx); > + util_blitter_blit(ctx->blitter, &info); > +} > + > +void > +etna_clear_blit_blt_init(struct pipe_context *pctx) > +{ > + DBG(

Re: [Mesa-dev] [PATCH 10/19] etnaviv: GC7000: No RS align when using BLT

2017-11-05 Thread Christian Gmeiner
t; + ptrans->box.y = ptrans->box.y & ~(h_align - 1); > + ptrans->box.height = align(ptrans->box.height, > +(ETNA_RS_HEIGHT_MASK + 1) * > + ctx->screen->specs.pixel_pipes); >}

Re: [Mesa-dev] [PATCH 11/19] etnaviv: GC7000: Update context reset for ..HALTI5

2017-11-05 Thread Christian Gmeiner
2017-10-30 17:16 GMT+01:00 Wladimir J. van der Laan : > Update context reset for HALTI3..HALTI5, sorting states for the HALTI > version that has them. > > Signed-off-by: Wladimir J. van der Laan Reviewed-by: Christian Gmeiner > --- > src/gallium/drivers/etnaviv/etna

Re: [Mesa-dev] [PATCH 12/19] etnaviv: GC7000: Update screen specs for HALTI5

2017-11-05 Thread Christian Gmeiner
2017-10-30 17:16 GMT+01:00 Wladimir J. van der Laan : > - This core must load shaders from memory (AFAIK) > - Yet another new location for UNIFORMS > > Signed-off-by: Wladimir J. van der Laan Reviewed-by: Christian Gmeiner > --- > src/gallium/drivers/etnaviv/etn

Re: [Mesa-dev] [PATCH 13/19] etnaviv: GC7000: State changes for HALTI3..5

2017-11-05 Thread Christian Gmeiner
2017-10-30 17:16 GMT+01:00 Wladimir J. van der Laan : > Update state objects to add new state, and emit function to emit new > state. > > Signed-off-by: Wladimir J. van der Laan Reviewed-by: Christian Gmeiner > --- > src/gallium/drivers/etnaviv/etnavi

Re: [Mesa-dev] [PATCH 14/19] etnaviv: GC7000: Make point sprites work on HALTI5

2017-11-05 Thread Christian Gmeiner
2017-10-30 17:17 GMT+01:00 Wladimir J. van der Laan : > Track varying component offset of the point size output, as well as > provide the offset of the point coord input. > > Signed-off-by: Wladimir J. van der Laan Reviewed-by: Christian Gmeiner > --- > src/galli

Re: [Mesa-dev] [PATCH 15/19] etnaviv: GC7000: Track dirty sampler views

2017-11-05 Thread Christian Gmeiner
2017-10-30 17:17 GMT+01:00 Wladimir J. van der Laan : > Need this to efficiently emit texture descriptor invalidations. > > Signed-off-by: Wladimir J. van der Laan Reviewed-by: Christian Gmeiner > --- > src/gallium/drivers/etnaviv/etnaviv_context.c | 1 + > src/galli

Re: [Mesa-dev] [PATCH 10/19] etnaviv: GC7000: No RS align when using BLT

2017-11-05 Thread Christian Gmeiner
ranch somewhere to look at this >> sereis? > > It looks somewhat funny but I don't think it's wrong. > There's an extra } there. Context is: > > if (surf->surf.ts_size) { > if (!ctx->specs.use_blt) { > ... > } > } else { > if

Re: [Mesa-dev] [PATCH 10/19] etnaviv: GC7000: No RS align when using BLT

2017-11-05 Thread Christian Gmeiner
Reviewed-by: Christian Gmeiner 2017-11-05 16:23 GMT+01:00 Christian Gmeiner : > 2017-11-05 13:38 GMT+01:00 Wladimir : >>>> + if (!ctx->specs.use_blt) { >>>> + /* This (ab)uses the RS as a plain buffer memset(). >>>> + * Current

Re: [Mesa-dev] [PATCH 17/19] etnaviv: GC7000: Move active_samplers_bits to texture

2017-11-05 Thread Christian Gmeiner
2017-10-30 17:17 GMT+01:00 Wladimir J. van der Laan : > This needs to be shared between texture_plain and texture_desc. > > Signed-off-by: Wladimir J. van der Laan Reviewed-by: Christian Gmeiner > --- > src/gallium/drivers/etnaviv/etnaviv_emit.c| 12 > s

Re: [Mesa-dev] [PATCH 19/19] etnaviv: GC7000: Split off current texture code

2017-11-05 Thread Christian Gmeiner
ir J. van der Laan Reviewed-by: Christian Gmeiner > --- > src/gallium/drivers/etnaviv/Makefile.sources | 2 + > src/gallium/drivers/etnaviv/etnaviv_context.h | 3 + > src/gallium/drivers/etnaviv/etnaviv_emit.c | 74 +- > src/gallium/drivers/etn

Re: [Mesa-dev] [PATCH 18/19] etnaviv: GC7000: Move etna_coalesce to emit header file

2017-11-05 Thread Christian Gmeiner
2017-10-30 17:17 GMT+01:00 Wladimir J. van der Laan : > Want to be able to emit state from the texture implementation. > > Signed-off-by: Wladimir J. van der Laan Reviewed-by: Christian Gmeiner > --- > src/gallium/drivers/etnaviv/etnaviv_emit.c | 83 > ---

Re: [Mesa-dev] [PATCH 16/19] etnaviv: GC7000: Factor out incompatible texture handling logic

2017-11-05 Thread Christian Gmeiner
2017-10-30 17:17 GMT+01:00 Wladimir J. van der Laan : > This will be shared with the texture descriptor path. > > Signed-off-by: Wladimir J. van der Laan Reviewed-by: Christian Gmeiner > --- > src/gallium/drivers/etnaviv/etnaviv_texture.c | 40 > +---

Re: [Mesa-dev] [PATCH 2/2] etnaviv: ASTC texture support

2017-11-06 Thread Christian Gmeiner
2017-11-01 18:19 GMT+01:00 Wladimir J. van der Laan : > Add ASTC texture support for hardware that supports this > (currently only GC3000 on i.MX6qp is known to have this). > > Signed-off-by: Wladimir J. van der Laan Reviewed-by: Christian Gmeiner > --- > src/galli

Re: [Mesa-dev] [PATCH 3/2] etnaviv: Don't over-pad compressed textures

2017-11-06 Thread Christian Gmeiner
imir J. van der Laan Reviewed-by: Christian Gmeiner > --- > src/gallium/drivers/etnaviv/etnaviv_resource.c | 24 +++- > 1 file changed, 15 insertions(+), 9 deletions(-) > > This is important in the case of ASTC. Padding ASTC to width 4 or 16 > produces intermit

Re: [Mesa-dev] [PATCH 1/3] etnaviv: rnndb update

2017-11-07 Thread Christian Gmeiner
2017-11-07 17:43 GMT+01:00 Wladimir J. van der Laan : > Update rnndb to etna_viv 07c756a. > > Signed-off-by: Wladimir J. van der Laan Reviewed-by: Christian Gmeiner > --- > src/gallium/drivers/etnaviv/hw/common.xml.h | 2 +- > src/gallium/drivers/etnaviv/hw/com

Re: [Mesa-dev] [PATCH 2/3] etnaviv: Add TS_SAMPLER formats to etnaviv_format

2017-11-07 Thread Christian Gmeiner
2017-11-07 17:43 GMT+01:00 Wladimir J. van der Laan : > Sampler TS introduces yet another format enumeration for renderable > formats. Introduce it into etnaviv_format as unobtrusively as possible. > > Signed-off-by: Wladimir J. van der Laan Reviewed-by: Christian Gmeiner > ---

Re: [Mesa-dev] [PATCH 3/3] etnaviv: Add sampler TS support

2017-11-07 Thread Christian Gmeiner
place can be avoided to flush the TS. > > This commit is also an optimization when not using sampler TS, as > resolve-in-place will now be skipped if a resource has no (valid) TS. > > Signed-off-by: Wladimir J. van der Laan Reviewed-by: Christian Gmeiner > --- > src/galli

Re: [Mesa-dev] [PATCH v2] etnaviv: Add support for ETC2 texture compression

2017-07-17 Thread Christian Gmeiner
* (GC3000) only. > + */ > + if (util_format_is_snorm(format) || etna_format_is_etc2(format)) >supported = VIV_FEATURE(screen, chipMinorFeatures2, HALTI1); > Your checkout seems to be a little old - please create the patch against current master. > if (!supported) > -- > 2.7.4 > greets -- Christian Gmeiner, MSc https://christian-gmeiner.info ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v2 08/10] etnaviv: fill in modifier in etna_resource_get_handle

2017-07-19 Thread Christian Gmeiner
2017-07-04 17:45 GMT+02:00 Lucas Stach : > This allows the state trackers to know the tiling layout of the > resource and pass this through the various userspace protocols. > > Signed-off-by: Lucas Stach > Reviewed-by: Wladimir J. van der Laan Reviewed-by: Christian Gmeiner

Re: [Mesa-dev] [PATCH v2 01/10] renderonly/etnaviv: stop importing resource from renderonly

2017-07-19 Thread Christian Gmeiner
ching stride alignments. > > Signed-off-by: Lucas Stach Looks good ti me (but I did not test this series on real hw). Reviewed-by: Christian Gmeiner > --- > src/gallium/auxiliary/renderonly/renderonly.c| 52 > +++- > src/gallium/auxiliary/renderonly/rendero

Re: [Mesa-dev] [PATCH v2 09/10] etnaviv: implement resource creation with modifier

2017-07-19 Thread Christian Gmeiner
s/etnaviv/etnaviv_transfer.c > b/src/gallium/drivers/etnaviv/etnaviv_transfer.c > index 27e1be19579a..3795c7839081 100644 > --- a/src/gallium/drivers/etnaviv/etnaviv_transfer.c > +++ b/src/gallium/drivers/etnaviv/etnaviv_transfer.c > @@ -203,7 +203,7 @@ etna_transfer_map(struct pipe_context *pctx, struct > pipe_resource *prsc, >templ.nr_samples = 0; >templ.bind = PIPE_BIND_RENDER_TARGET; > > - trans->rsc = etna_resource_alloc(pctx->screen, ETNA_LAYOUT_LINEAR, > &templ); > + trans->rsc = etna_resource_alloc(pctx->screen, ETNA_LAYOUT_LINEAR, 0, > &templ); >if (!trans->rsc) { > slab_free(&ctx->transfer_pool, trans); > return NULL; > -- > 2.11.0 > greets -- Christian Gmeiner, MSc https://christian-gmeiner.info ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v2 10/10] etnaviv: advertise supported dmabuf modifiers

2017-07-19 Thread Christian Gmeiner
arget binding for them. > > Signed-off-by: Lucas Stach Reviewed-by: Christian Gmeiner > --- > v2: don't advertise split tiled formats on single pipe/buffer GPUs > --- > src/gallium/drivers/etnaviv/etnaviv_screen.c | 44 > > 1 file cha

Re: [Mesa-dev] [PATCH] etnaviv: Clear lbl_usage array correctly

2017-07-23 Thread Christian Gmeiner
ware, but it will > cause problems in the future) > > Signed-off-by: Wladimir J. van der Laan Reviewed-by: Christian Gmeiner > --- > src/gallium/drivers/etnaviv/etnaviv_compiler.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/gallium/drivers

Re: [Mesa-dev] [PATCH 1/3] etnaviv: Update headers from rnndb

2017-08-05 Thread Christian Gmeiner
2017-07-24 10:28 GMT+02:00 Wladimir J. van der Laan : > Signed-off-by: Wladimir J. van der Laan Reviewed-by: Christian Gmeiner > --- > src/gallium/drivers/etnaviv/hw/state_3d.xml.h | 14 +- > 1 file changed, 9 insertions(+), 5 deletions(-) > > diff --git a/s

Re: [Mesa-dev] [PATCH 3/3] etnaviv: Implement ICACHE

2017-08-05 Thread Christian Gmeiner
d-off-by: Wladimir J. van der Laan Reviewed-by: Christian Gmeiner > --- > src/gallium/drivers/etnaviv/etnaviv_compiler.c | 3 +- > src/gallium/drivers/etnaviv/etnaviv_compiler.h | 5 +++ > src/gallium/drivers/etnaviv/etnaviv_emit.c | 52 > ++ &

Re: [Mesa-dev] [PATCH 2/3] etnaviv: Unified uniforms support

2017-08-05 Thread Christian Gmeiner
xplicit support, although in the simplest way possible: > the PS/VS uniforms split is still fixed and hardcoded. It should > make no difference on hardware that does not have unified uniform > memory. > > Signed-off-by: Wladimir J. van der Laan Reviewed-by: Christian Gmeiner > -

Re: [Mesa-dev] [PATCH] etnaviv: Add support for R8_UNORM textures

2017-08-06 Thread Christian Gmeiner
2017-07-28 16:05 GMT+02:00 Wladimir J. van der Laan : > R8_UNORM textures can be emulated by means of L8 and a swizzle. > > Signed-off-by: Wladimir J. van der Laan Reviewed-by: Christian Gmeiner > --- > src/gallium/drivers/etnaviv/etnaviv_format.c | 2 +- > 1 file changed,

Re: [Mesa-dev] [PATCH] etnaviv: etnaviv_fence: Simplify the return code logic

2017-04-22 Thread Christian Gmeiner
2017-04-18 0:36 GMT+02:00 Fabio Estevam : > The return code can be simplified by using the logical not operator. > > Signed-off-by: Fabio Estevam Reviewed-by: Christian Gmeiner Btw. the same change could be made to freedreno. greets -- Christian Gmeiner, MSc https://www.youtube

Re: [Mesa-dev] [PATCH] etnaviv: Supertiled texture support on gc3000

2017-04-22 Thread Christian Gmeiner
*paddingX = 64; > *paddingY = 64; > *halign = TEXTURE_HALIGN_SUPER_TILED; > > So this is just a matter of allowing it. > > Signed-off-by: Wladimir J. van der Laan Reviewed-by: Christian Gmeiner greets -- Christian Gmeiner, MSc https://www.youtube.com/user/AloryOF

Re: [Mesa-dev] [PATCH 1/2] renderonly: close transfer prime_fd

2017-05-02 Thread Christian Gmeiner
e DMA-BUF file handle. >> >> Signed-off-by: Philipp Zabel > Fixes: 848b49b288f ("gallium: add renderonly library") > Reviewed-by: Emil Velikov Reviewed-by: Christian Gmeiner greets -- Christian Gmeiner, MSc https://www.youtube.com/user/Alory

Re: [Mesa-dev] [PATCH 2/2] renderonly: drop resources on destroy

2017-05-02 Thread Christian Gmeiner
resource, the dumb BO also has >> to be destroyed. >> >> Signed-off-by: Philipp Zabel > Fixes: 848b49b288f ("gallium: add renderonly library") > Reviewed-by: Emil Velikov Reviewed-by: Christian Gmeiner greets -- Christian Gmeiner, MSc https://www.youtube.

Re: [Mesa-dev] [PATCH] renderonly: use drmIoctl

2017-05-02 Thread Christian Gmeiner
2017-04-28 13:11 GMT+02:00 Philipp Zabel : > To restart interrupted system calls, use drmIoctl. > > Suggested-by: Emil Velikov > Signed-off-by: Philipp Zabel Reviewed-by: Christian Gmeiner greets -- Christian Gmeiner, MSc https://www.youtube.com/user/AloryOFFICIAL https://so

[Mesa-dev] [PATCH] etnaviv: add L8A8_UNORM texture format

2017-05-02 Thread Christian Gmeiner
No piglit regressions. Signed-off-by: Christian Gmeiner --- src/gallium/drivers/etnaviv/etnaviv_format.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/etnaviv/etnaviv_format.c b/src/gallium/drivers/etnaviv/etnaviv_format.c index 0794603..7c24386 100644 --- a/src

Re: [Mesa-dev] [PATCH] renderonly: Initialize fields of struct winsys_handle.

2017-05-09 Thread Christian Gmeiner
2017-05-09 20:24 GMT+02:00 Eric Anholt : > vc4 was rejecting renderonly's import, because the offset field was > nonzero. Reviewed-by: Christian Gmeiner greets -- Christian Gmeiner, MSc https://www.youtube.com/user/AloryOFFICIAL https://soundcloud.com/christ

Re: [Mesa-dev] [PATCH 4/5] etnaviv: clean up sampler view reference counting

2017-05-10 Thread Christian Gmeiner
Hi Lucas, 2017-05-10 18:01 GMT+02:00 Lucas Stach : > Use the proper pipe_resource_reference function instead of > rolling our own. Would it make sense to convert all gallium drivers using this pattern? greets -- Christian Gmeiner, MSc https://www.youtube.com/user/AloryOFFICIAL

Re: [Mesa-dev] [PATCH 4/5] etnaviv: clean up sampler view reference counting

2017-05-11 Thread Christian Gmeiner
Hi Lucas, 2017-05-11 10:06 GMT+02:00 Lucas Stach : > Hi Christian, > > Am Mittwoch, den 10.05.2017, 21:44 +0200 schrieb Christian Gmeiner: >> Hi Lucas, >> >> 2017-05-10 18:01 GMT+02:00 Lucas Stach : >> > Use the proper pipe_resource_reference function instead

Re: [Mesa-dev] [PATCH 1/5] etnaviv: stop oversizing buffer resources

2017-05-16 Thread Christian Gmeiner
height of buffer resources, leading to largely oversizing >> those resources. This is especially bad, as the buffer resources used >> by the upload manager are already 1MB in size. Height alignment meant >> that those would result in 4 to 8MB big BOs. >> >> Signed-off-

Re: [Mesa-dev] [PATCH 2/5] etnaviv: allow R/B swapped surfaces to be cleared

2017-05-16 Thread Christian Gmeiner
2017-05-10 18:01 GMT+02:00 Lucas Stach : > Signed-off-by: Lucas Stach Reviewed-by: Christian Gmeiner greets -- Christian Gmeiner, MSc https://www.youtube.com/user/AloryOFFICIAL https://soundcloud.com/christian-gmeiner ___ mesa-dev mailing list m

Re: [Mesa-dev] [PATCH 3/5] etnaviv: apply feature overrides in one central location

2017-05-16 Thread Christian Gmeiner
2017-05-10 18:01 GMT+02:00 Lucas Stach : > This way we can just test the feature bits and don't need to spread > the debug overrides to all locations touching a feature. > > Signed-off-by: Lucas Stach Reviewed-by: Christian Gmeiner greets -- Christian Gmeiner, MSc https://www

Re: [Mesa-dev] [PATCH 4/5] etnaviv: clean up sampler view reference counting

2017-05-16 Thread Christian Gmeiner
2017-05-10 18:01 GMT+02:00 Lucas Stach : > Use the proper pipe_resource_reference function instead of > rolling our own. > > Signed-off-by: Lucas Stach Reviewed-by: Christian Gmeiner greets -- Christian Gmeiner, MSc https://www.youtube.com/user/AloryOFFICIAL https://soundcloud.c

Re: [Mesa-dev] [PATCH 5/5] etnaviv: increment the resource seqno in resource_changed

2017-05-16 Thread Christian Gmeiner
2017-05-10 18:01 GMT+02:00 Lucas Stach : > From: Philipp Zabel > > Just increment the resource seqno instead of setting the texture > seqno to be lower by one than the resource seqno. > > Signed-off-by: Philipp Zabel > Signed-off-by: Lucas Stach Reviewed-by: Chris

<    1   2   3   4   5   >