[Mesa-dev] [PATCH v2] translate_sse: Preserve low bit during unsigned -> float conversion.

2014-04-14 Thread Andreas Hartmetz
From: Andreas Hartmetz --- src/gallium/auxiliary/translate/translate_sse.c | 35 - 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/src/gallium/auxiliary/translate/translate_sse.c b/src/gallium/auxiliary/translate/translate_sse.c index dace722..2a0d3c1

Re: [Mesa-dev] [PATCH 5/7] translate_sse: Preserve low bit during unsigned -> float conversion.

2014-04-14 Thread Andreas Hartmetz
> > + /* right shift & convert, losing the low bit - must clear > > +* high bit because there is no unsigned convert > > instruction */> > > sse2_psrld_imm(p->func, dataXMM, 1); > > > > + sse2_cvtdq2ps(p->func, dataXMM, dataXMM); > > + >

[Mesa-dev] [PATCH 6/7] translate_sse: Be more specific in comment about loss of precision.

2014-04-13 Thread Andreas Hartmetz
From: Andreas Hartmetz The only loss of precision here due to intrinsic properties of unsigned int and float. --- src/gallium/auxiliary/translate/translate_sse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/translate/translate_sse.c b/src/gallium

[Mesa-dev] [PATCH 4/7] translate_sse: Use the correct buffer index in this fast path.

2014-04-13 Thread Andreas Hartmetz
From: Andreas Hartmetz It is possible that there are multiple input buffers but only one is relevant for translation. Then there will be only a single translation group, which might need to source data from a buffer index != 0. Fixes wrong vertex shader inputs as observed while debugging with

[Mesa-dev] [PATCH 3/7] translate_sse: Make those comments less abstract.

2014-04-13 Thread Andreas Hartmetz
From: Andreas Hartmetz --- src/gallium/auxiliary/translate/translate_sse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/auxiliary/translate/translate_sse.c b/src/gallium/auxiliary/translate/translate_sse.c index e25d450..8dd30c4 100644 --- a/src/gallium

[Mesa-dev] [PATCH 0/7] translate_sse fixes

2014-04-13 Thread Andreas Hartmetz
ug fixes in patches 4 and 5. The others are non-functional changes, mostly for readability. Andreas Hartmetz (7): translate_sse: Explain what struct translate_buffer_variant is for. translate_sse: Rename translate_buffer_variant to translate_group. translate_sse: Make those comments less

[Mesa-dev] [PATCH 7/7] translate_sse: Remove a stray break;

2014-04-13 Thread Andreas Hartmetz
From: Andreas Hartmetz --- src/gallium/auxiliary/translate/translate_sse.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gallium/auxiliary/translate/translate_sse.c b/src/gallium/auxiliary/translate/translate_sse.c index ca02b7a..992c5f6 100644 --- a/src/gallium/auxiliary/translate

[Mesa-dev] [PATCH 2/7] translate_sse: Rename translate_buffer_variant to translate_group.

2014-04-13 Thread Andreas Hartmetz
From: Andreas Hartmetz It is a better description of what goes on and it's shorter, too. --- src/gallium/auxiliary/translate/translate_sse.c | 86 - 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/src/gallium/auxiliary/translate/translate_sse.c

[Mesa-dev] [PATCH 5/7] translate_sse: Preserve low bit during unsigned -> float conversion.

2014-04-13 Thread Andreas Hartmetz
From: Andreas Hartmetz --- src/gallium/auxiliary/translate/translate_sse.c | 35 - 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/src/gallium/auxiliary/translate/translate_sse.c b/src/gallium/auxiliary/translate/translate_sse.c index dace722..03d8276

[Mesa-dev] [PATCH 1/7] translate_sse: Explain what struct translate_buffer_variant is for.

2014-04-13 Thread Andreas Hartmetz
From: Andreas Hartmetz --- src/gallium/auxiliary/translate/translate_sse.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/gallium/auxiliary/translate/translate_sse.c b/src/gallium/auxiliary/translate/translate_sse.c index 1b698cd..24d8017 100644 --- a/src/gallium/auxiliary

Re: [Mesa-dev] [PATCH] mesa/main: add ARB_clear_texture entrypoints

2014-03-01 Thread Andreas Hartmetz
On Saturday 01 March 2014 17:09:58 Ilia Mirkin wrote: > This adds enough code to let drivers implement texture clearing, but > doesn't actually do that for any of them. > > Signed-off-by: Ilia Mirkin > --- > > Thought I'd give this a shot. Am I on the right track here? Is the dd API > reasonable

Re: [Mesa-dev] [Bug 73578] egl_pipe.c:46:38: fatal error: radeonsi/radeonsi_public.h: No such file or directory

2014-01-13 Thread Andreas Hartmetz
Sorry, I did apparently not compile-check some part. And thanks for fixing it. On Tuesday 14 January 2014 00:06:05 bugzilla-dae...@freedesktop.org wrote: > https://bugs.freedesktop.org/show_bug.cgi?id=73578 > > Vinson Lee changed: > >What|Removed |Added > ---

Re: [Mesa-dev] Naming everything in src/gallium/drivers/radeonsi si_*

2014-01-13 Thread Andreas Hartmetz
t; Feel free to push this. > > Marek > > On Sat, Jan 11, 2014 at 4:20 PM, Andreas Hartmetz wrote: > > Continuing here because the threads had diverged... > > > > I've updated the patch series under the same URL and applied all the > > suggested improvements.

Re: [Mesa-dev] Naming everything in src/gallium/drivers/radeonsi si_*

2014-01-11 Thread Andreas Hartmetz
Continuing here because the threads had diverged... I've updated the patch series under the same URL and applied all the suggested improvements. The variable renames are still in, but at the very end so they are trivial to omit. On Tuesday 07 January 2014 17:27:56 Andreas Hartmetz wrote:

Re: [Mesa-dev] Naming everything in src/gallium/drivers/radeonsi si_*

2014-01-07 Thread Andreas Hartmetz
commonly occurring rctx/r600 to now more suitable sctx." > "Rename the commonly occurring rscreen to now more suitable sscreen." > > It's too much for my eye to handle. > > Marek > > On Tue, Jan 7, 2014 at 5:27 PM, Andreas Hartmetz wrote: > >

Re: [Mesa-dev] Naming everything in src/gallium/drivers/radeonsi si_*

2014-01-07 Thread Andreas Hartmetz
s. I can still do it when I need to change the patch series anyway, among other things for the commit messages. > Assuming that we already moved everything that r600 and radeonsi should > have in common under drivers/radeon the idea looks good to me. > > Christian. > > Am 07

Re: [Mesa-dev] Naming everything in src/gallium/drivers/radeonsi si_*

2014-01-07 Thread Andreas Hartmetz
ry (branch is master): git git://anongit.kde.org/scratch/ahartmetz/mesa.git web http://quickgit.kde.org/?p=scratch%2Fahartmetz%2Fmesa.git On Monday 06 January 2014 15:50:05 Marek Olšák wrote: > It sounds good, but I'd like the prefix to be si_ everywhere. > > Marek > > On Mon,

[Mesa-dev] Naming everything in src/gallium/drivers/radeonsi si_*

2014-01-06 Thread Andreas Hartmetz
Hello, many of the files in radeonsi originally came from other places where they had different names and were never renamed. Most of them now have names that don't tell what the files are for (r600 is not actually the first hardware supported by them, they start at radeonsi), and even those with

Re: [Mesa-dev] [PATCH 4/4] radeon: Determine the bo priority (MSAA, depth, UVD are high)

2014-01-02 Thread Andreas Hartmetz
On Thursday 02 January 2014 10:56:45 Lauri Kasanen wrote: > On Thu, 02 Jan 2014 05:57:46 +0100 > > Andreas Hartmetz wrote: > > On Wednesday 01 January 2014 16:58:46 Lauri Kasanen wrote: > > > @@ -257,6 +258,7 @@ struct radeon_winsys { > > > > > >

Re: [Mesa-dev] [PATCH 4/4] radeon: Determine the bo priority (MSAA, depth, UVD are high)

2014-01-01 Thread Andreas Hartmetz
On Wednesday 01 January 2014 16:58:46 Lauri Kasanen wrote: > > @@ -257,6 +258,7 @@ struct radeon_winsys { > unsigned size, > unsigned alignment, > boolean use_reusable_pool, > +

[Mesa-dev] [PATCH 1/2] radeonsi: Write zero to DB_RENDER_OVERRIDE. This register does nothing.

2013-12-21 Thread Andreas Hartmetz
This is not officially documented, but Marek says it is so. It also means that HiS was already enabled, we just didn't know it. --- src/gallium/drivers/radeonsi/si_state.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/

[Mesa-dev] [PATCH 2/2] radeonsi: Use htile_buffer for depth only when there is no stencil.

2013-12-21 Thread Andreas Hartmetz
--- src/gallium/drivers/radeonsi/si_state.c | 8 1 file changed, 8 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index d7d8317..5640013 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/

Re: [Mesa-dev] [PATCH] radeonsi: Since we're not using HiS, use more buffer space for HiZ.

2013-12-18 Thread Andreas Hartmetz
lšák wrote: > After reading some docs, I think it should only be set for depth > buffers without stencil, because it also disables stencil compression. > Would you like to make a new patch? > > Marek > > On Fri, Dec 13, 2013 at 4:58 PM, Andreas Hartmetz wrote: > > Also

[Mesa-dev] [PATCH] radeonsi: Since we're not using HiS, use more buffer space for HiZ.

2013-12-13 Thread Andreas Hartmetz
Also move a comment that was in the wrong place. --- src/gallium/drivers/radeonsi/si_state.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index d99cfe8..ee2372f 100644 --- a/src/gallium/

Re: [Mesa-dev] [PATCH] radeonsi: Write htile state to hardware.

2013-12-11 Thread Andreas Hartmetz
Here: git://anongit.kde.org/scratch/ahartmetz/mesa.git On Wednesday 11 December 2013 20:23:58 Marek Olšák wrote: > This looks good to me. Can you send me a git link pointing to all your > patches? > > Marek > > On Wed, Dec 11, 2013 at 6:50 AM, Andreas Hartmetz wrote: >

[Mesa-dev] radeonsi htile (aka HyperZ) support v4

2013-12-10 Thread Andreas Hartmetz
Removed the now unused db_render_override from si_state_dsa. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH] radeonsi: Write htile state to hardware.

2013-12-10 Thread Andreas Hartmetz
--- src/gallium/drivers/radeonsi/si_state.c | 67 +--- src/gallium/drivers/radeonsi/si_state.h | 4 +- src/gallium/drivers/radeonsi/si_state_draw.c | 7 +-- 3 files changed, 65 insertions(+), 13 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c

[Mesa-dev] [PATCH] radeonsi: Write htile state to hardware.

2013-12-10 Thread Andreas Hartmetz
--- src/gallium/drivers/radeonsi/si_state.c | 67 +--- src/gallium/drivers/radeonsi/si_state.h | 5 ++- src/gallium/drivers/radeonsi/si_state_draw.c | 7 +-- 3 files changed, 66 insertions(+), 13 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c

[Mesa-dev] radeonsi htile (aka HyperZ) support v3

2013-12-10 Thread Andreas Hartmetz
Another attempt at patch 3. I've picked Marek's suggestion 1, do it like CB_TARGET_MASK. The other option would probably be a lot less code but also a bit more "ad hoc" because it relies on the fact that state is only emitted just before drawing anyway (right?). I do not quite have the hang of git

[Mesa-dev] [PATCH] radeonsi: Write htile state to hardware.

2013-12-10 Thread Andreas Hartmetz
--- src/gallium/drivers/radeonsi/si_state.c | 38 +++-- src/gallium/drivers/radeonsi/si_state.h | 2 +- 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 7bae72a..67c

[Mesa-dev] radeonsi htile (aka HyperZ) support v2 (fixed)

2013-12-10 Thread Andreas Hartmetz
Fixed patch 3, the previous one didn't compile and would also have had a bug where it didn't compile. The storage location of db_render_override is a bit dubious, any better ideas? Create si_db_misc_state? Create si_db_framebuffer_state? ___ mesa-dev mai

[Mesa-dev] [PATCH 1/3] radeon: rearrange r600_texture and related code a bit.

2013-12-10 Thread Andreas Hartmetz
This should make the differences and similarities between color and depth buffer handling more clear. --- src/gallium/drivers/r600/evergreen_state.c| 10 ++--- src/gallium/drivers/r600/r600_blit.c | 6 +-- src/gallium/drivers/r600/r600_state.c | 10 ++--- src/gallium/drivers/

[Mesa-dev] [PATCH 2/3] radeon: Allocate htile buffer for SI in r600_texture.

2013-12-10 Thread Andreas Hartmetz
--- src/gallium/drivers/radeon/r600_texture.c | 82 +-- 1 file changed, 67 insertions(+), 15 deletions(-) diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index e7ce103..99db4df 100644 --- a/src/gallium/drivers/radeon/

[Mesa-dev] radeonsi htile (aka HyperZ) support v2

2013-12-10 Thread Andreas Hartmetz
Performance numbers are still the same. I've addressed almost all the concerns. Registers that shouldn't be used when depth htile is disabled are still written anyway because I figured it's no big overhead, simpler, and possibly safer. si_texture_htile_alloc_size() is modeled after si_texture_get_c

[Mesa-dev] [PATCH 3/3] radeonsi: Write htile state to hardware.

2013-12-10 Thread Andreas Hartmetz
--- src/gallium/drivers/radeonsi/si_state.c | 33 ++--- src/gallium/drivers/radeonsi/si_state.h | 1 - 2 files changed, 26 insertions(+), 8 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 7bae72a..68e8

[Mesa-dev] radeonsi htile (aka HyperZ) support

2013-12-03 Thread Andreas Hartmetz
This adds HyperZ support, without fast clear for now. I got a lot of help from Marek with this. There seem to be no piglit regressions; about 60 very basic GL1.0 tests were skipped in my test run for some reason - they looked very unrelated. There was no change in other tests. It does seem to make

[Mesa-dev] [PATCH 2/4] radeon: Allocate htile buffer for SI in r600_texture.

2013-12-03 Thread Andreas Hartmetz
--- src/gallium/drivers/radeon/r600_texture.c | 84 +-- 1 file changed, 68 insertions(+), 16 deletions(-) diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index 70f21bd..c91fbce 100644 --- a/src/gallium/drivers/radeon/

[Mesa-dev] [PATCH 1/4] radeon: rearrange r600_texture and related code a bit.

2013-12-03 Thread Andreas Hartmetz
This should make the differences and similarities between color and depth buffer handling more clear. --- src/gallium/drivers/r600/evergreen_state.c| 10 ++--- src/gallium/drivers/r600/r600_blit.c | 6 +-- src/gallium/drivers/r600/r600_state.c | 10 ++--- src/gallium/drivers/

[Mesa-dev] [PATCH 3/4] radeonsi: Rearrange si_create_dsa_state

2013-12-03 Thread Andreas Hartmetz
Reduce scope of variables and divide the code more clearly into sections dealing with one thing. --- src/gallium/drivers/radeonsi/si_state.c | 38 +++-- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/galliu

[Mesa-dev] [PATCH 4/4] radeonsi: Write htile state to SI hardware.

2013-12-03 Thread Andreas Hartmetz
--- src/gallium/drivers/radeonsi/si_state.c | 28 +++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 24c9cf3..7b1a6df 100644 --- a/src/gallium/drivers/radeonsi/si_state.

[Mesa-dev] Anybody still need clear_depth_stencil() or clear_render_target()?

2013-12-02 Thread Andreas Hartmetz
Hello, I've been lurking for a while, this seems to be my first post. While trying to make some "easy" (ha) improvements in radeonsi I looked around in all the surrounding code to get a good picture of how things work. So I noticed something: All the Gallium drivers need to implement clear_depth_

[Mesa-dev] [PATCH v2] radeonsi needs libLLVMipo.

2013-05-28 Thread Andreas Hartmetz
r600g needs it too, so add ipo in the common radeon_llvm_check(). radeonsi compiled and linked, but it failed at dynamic link time with a missing symbol. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index eef4327..521331b 100

[Mesa-dev] [PATCH] radeonsi needs libLLVMipo.

2013-05-27 Thread Andreas Hartmetz
--- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index eef4327..486a4e9 100644 --- a/configure.ac +++ b/configure.ac @@ -1786,6 +1786,7 @@ if test "x$with_gallium_drivers" != x; then gallium_require_drm_loader GALLIUM_DRIVER

[Mesa-dev] Compile fix for radeonsi

2013-05-27 Thread Andreas Hartmetz
Looks like the radeonsi build setup relies on other parts to pull in some dependencies. I seem to have a configuration where some of them aren't compiled. Mesa compiles without this patch, but radeonsi_dri.so will fail to load at runtime with missing symbol LLVMPassManagerBuilderCreate. My mesa con

Re: [Mesa-dev] Improved Patch review using Gerrit

2013-05-13 Thread Andreas Hartmetz
On Friday 10 May 2013 14:17:47 Eric Anholt wrote: > Andreas Hartmetz writes: > > On Wednesday 08 May 2013 13:33:37 Eric Anholt wrote: > >> Christoph Brill writes: > >> > Hi list, > >> > > >> > I'm trying to follow the patches and p

Re: [Mesa-dev] Improved Patch review using Gerrit

2013-05-10 Thread Andreas Hartmetz
On Wednesday 08 May 2013 13:33:37 Eric Anholt wrote: > Christoph Brill writes: > > Hi list, > > > > I'm trying to follow the patches and patchsets sent to mesa-dev and > > really like the process of how they get reviewed. It's a good way of > > catching bugs before they get committed. But current