[Mesa-dev] [PATCH] radeonsi: fix a crash if a stencil ref state is set before a DSA state

2015-02-15 Thread Marek Olšák
From: Marek Olšák + minor indentation fixes Discovered by Axel Davy. This can't be reproduced with any app, because all state trackers set a DSA state first. Cc: 10.5 10.4 10.3 --- src/gallium/drivers/radeonsi/si_state.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) dif

Re: [Mesa-dev] [PATCH] radeonsi: fix a crash if a stencil ref state is set before a DSA state

2015-02-15 Thread Axel Davy
It works fine. Since no state tracker need it currently, why do you want to backport it to older mesa versions ? In all cases, Reviewed-by: Axel Davy (btw: missing signoff) Axel Davy On 15/02/2015 18:21, Marek Olšák wrote : From: Marek Olšák + minor indentation fixes Discovered by Axel D

Re: [Mesa-dev] [PATCH] mesa: don't enable NV_fragment_program_option with swrast

2015-02-15 Thread Matt Turner
On Sat, Feb 14, 2015 at 2:33 PM, Roland Scheidegger wrote: > Am 14.02.2015 um 21:12 schrieb Kenneth Graunke: >> On Saturday, February 14, 2015 04:37:25 PM srol...@vmware.com wrote: >>> From: Roland Scheidegger >>> >>> Since dropping some NV_fragment_program opcodes (commits >>> 868f95f1da74cf6dd7

Re: [Mesa-dev] [LLVMdev] mesa-10.4.4: BROKEN TLS support in GLX with llvm-toolchain v3.6.0rc2

2015-02-15 Thread Dimitry Andric
On 11 Feb 2015, at 11:16, Sedat Dilek wrote: > > On Wed, Feb 11, 2015 at 12:09 AM, Emil Velikov > wrote: >> On 10/02/15 13:17, Dimitry Andric wrote: >>> On 09 Feb 2015, at 18:52, Sedat Dilek wrote: On Mon, Feb 9, 2015 at 6:44 PM, Emil Velikov wrote: > On 07/02/15 22:42, S

[Mesa-dev] [PATCH:mesa 2/4] Avoid fighting with Solaris headers over isnormal()

2015-02-15 Thread Alan Coopersmith
When compiling in C99 or C++11 modes, Solaris defines isnormal() as a macro via , which causes the function definition to become too mangled to compile. Signed-off-by: Alan Coopersmith --- src/glsl/ir_constant_expression.cpp |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

[Mesa-dev] [PATCH:mesa 4/4] Make _mesa_swizzle_and_convert argument types in .c match those in .h

2015-02-15 Thread Alan Coopersmith
Caused Solaris Studio compilers to fail to build with errors about incompatible function redefinitions. Signed-off-by: Alan Coopersmith --- src/mesa/main/format_utils.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/format_utils.c b/src/mesa/main/format_

[Mesa-dev] [PATCH:mesa 3/4] Use __typeof instead of typeof with Solaris Studio compilers

2015-02-15 Thread Alan Coopersmith
While the C compiler accepts typeof, C++ requires __typeof. Signed-off-by: Alan Coopersmith --- src/util/u_atomic.h |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/u_atomic.h b/src/util/u_atomic.h index 192cc8d..d15398e 100644 --- a/src/util/u_atomic.h +++ b

[Mesa-dev] [PATCH:mesa 1/4] Remove extraneous ; after DECL_TYPE usage

2015-02-15 Thread Alan Coopersmith
The macro is defined to provide a trailing ; so this caused the expansion to end in ";;" which made the Solaris Studio compilers issue warnings for every line of: "builtin_type_macros.h", line 113: Warning: extra ";" ignored. for every file that included the header, filling build logs with thousa

[Mesa-dev] [PATCH] r600/sb: avoid op3 instructions in trans slots

2015-02-15 Thread Dave Airlie
From: Dave Airlie There was some code here to avoid MULADD on r600/r700, however some recent changes caused some tests to start failing on evergreen as well. (cayman has no T slot). It seems likely there are some issues with writing a register in XYZW slots and reading the same registers in T sl

[Mesa-dev] [Bug 89107] [Radeonsi/Hawaii] Rendering errors when running basic opengl 3 demo

2015-02-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89107 --- Comment #6 from Tapani Pälli --- (In reply to Sebastian Parborg from comment #5) > (In reply to Tapani Pälli from comment #4) > > It looks like lab1-1.c source does not match provided binary lab1-1. If I > > compile sources again I get segfau

[Mesa-dev] [Bug 89107] [Radeonsi/Hawaii] Rendering errors when running basic opengl 3 demo

2015-02-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89107 --- Comment #7 from Tapani Pälli --- I got it compiling and working when using '--std=c99' but even then the visual result of the app is different than what the prebuilt binary provides. For me the bunny is completely solid black (on i965 driver)

[Mesa-dev] [Bug 89107] [Radeonsi/Hawaii] Rendering errors when running basic opengl 3 demo

2015-02-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89107 --- Comment #8 from Sebastian Parborg --- (In reply to Tapani Pälli from comment #6) > > The way how you pass matrix does not seem legit with C standard. Which > compiler and version are you using? Are you using C or C++ compiler? I'm using gcc

[Mesa-dev] [Bug 89107] [Radeonsi/Hawaii] Rendering errors when running basic opengl 3 demo

2015-02-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89107 --- Comment #9 from Sebastian Parborg --- Disregard the last question. You have to use the supplied makefile! The bunny is black for you because you didn't use the "-DGL_GLEXT_PROTOTYPES" compile flag. -- You are receiving this mail because: Y

[Mesa-dev] [Bug 89107] [Radeonsi/Hawaii] Rendering errors when running basic opengl 3 demo

2015-02-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89107 --- Comment #10 from Tapani Pälli --- (In reply to Sebastian Parborg from comment #9) > Disregard the last question. You have to use the supplied makefile! > > The bunny is black for you because you didn't use the > "-DGL_GLEXT_PROTOTYPES" compi

[Mesa-dev] [Bug 89107] [Radeonsi/Hawaii] Rendering errors when running basic opengl 3 demo

2015-02-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89107 --- Comment #11 from Sebastian Parborg --- Created attachment 113518 --> https://bugs.freedesktop.org/attachment.cgi?id=113518&action=edit The bunny on fglrx and/or the binary nvidia drivers This is how it look like when using the nvidia binar

Re: [Mesa-dev] [PATCH] mesa: Fix element count for byte-swaps in texstore, readpix and texgetimage

2015-02-15 Thread Iago Toral
On Fri, 2015-02-13 at 10:18 -0800, Ian Romanick wrote: > On 02/13/2015 03:56 AM, Iago Toral Quiroga wrote: > > Some old format conversion code in pack.c implemented byte-swapping like > > this: > > > > GLint comps = _mesa_components_in_format(dstFormat); > > GLint swapSize = _mesa_sizeof_packed_t

[Mesa-dev] [PATCH 4/4] freedreno/a3xx: add ETC2 decoding support

2015-02-15 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- src/gallium/drivers/freedreno/a3xx/a3xx.xml.h | 11 +++ src/gallium/drivers/freedreno/a3xx/fd3_format.c | 10 ++ 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/freedreno/a3xx/a3xx.xml.h b/src/gallium/drivers/fr

[Mesa-dev] [PATCH 2/4] gallium: add ETC2 format support

2015-02-15 Thread Ilia Mirkin
No actual decoding is added, similar faking mechanism to bptc. Signed-off-by: Ilia Mirkin --- src/gallium/auxiliary/Makefile.sources | 6 +- src/gallium/auxiliary/util/u_format.csv| 11 +++ src/gallium/auxiliary/util/u_format_bptc.h | 109 -

[Mesa-dev] [PATCH 1/4] freedreno/a3xx: add hardware ETC1 support

2015-02-15 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- src/gallium/drivers/freedreno/a3xx/a3xx.xml.h | 1 + src/gallium/drivers/freedreno/a3xx/fd3_format.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/gallium/drivers/freedreno/a3xx/a3xx.xml.h b/src/gallium/drivers/freedreno/a3xx/a3xx.xml.h index 366bf2

[Mesa-dev] [PATCH 3/4] st/mesa: pass etc2 textures to driver if supported

2015-02-15 Thread Ilia Mirkin
If the driver actually supports ETC2, don't decode it in software. Signed-off-by: Ilia Mirkin --- src/mesa/state_tracker/st_cb_texture.c | 4 ++-- src/mesa/state_tracker/st_context.c| 3 +++ src/mesa/state_tracker/st_context.h| 1 + src/mesa/state_tracker/st_format.c | 43

[Mesa-dev] [PATCH] i965/simd8vs: Fix SIMD8 atomics

2015-02-15 Thread Ben Widawsky
The short version: we need to set bits in R0.7 which provide a mask to be used for PS kill samples/pixels. Since the VS has no such concept, we just need to set all 1. The longer version... Execution for SIMD8 atomics is defined as follows: SIMD8: The low 8 bits of the execution mask are ANDed wit