[Mesa-dev] [PATCH 8/9] glsl: Pass ctx->Const.NativeIntegers to do_algebraic.

2014-04-06 Thread Kenneth Graunke
The next patch will introduce an optimization that only works when integers are not represented as floating point values. Signed-off-by: Kenneth Graunke --- src/glsl/glsl_parser_extras.cpp | 2 +- src/glsl/ir_optimization.h | 2 +- src/glsl/opt_algebraic.cpp | 8 +--- src/glsl/test

[Mesa-dev] [PATCH 6/9] glsl: Validate that base types match for a number of binops.

2014-04-06 Thread Kenneth Graunke
The IR is not supposed to support implicit type conversions; we just failed to validate it. Signed-off-by: Kenneth Graunke --- src/glsl/ir_validate.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/glsl/ir_validate.cpp b/src/glsl/ir_validate.cpp index 527acea..71defc8 100644 --- a/s

[Mesa-dev] [PATCH 3/9] glsl: Make is_16bit_constant from i965 an ir_constant method.

2014-04-06 Thread Kenneth Graunke
The i965 MUL instruction doesn't natively support 32-bit by 32-bit integer multiplication; additional instructions (MACH/MOV) are required. However, we can avoid those if we know one of the operands can be represented in 16 bits or less. The vector backend's is_16bit_constant static helper functio

[Mesa-dev] [PATCH 2/9] mesa: Move is_power_of_two() function from brw_context.h to macros.h.

2014-04-06 Thread Kenneth Graunke
This makes the function available from core Mesa code, including the GLSL compiler. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_context.h | 6 -- src/mesa/main/macros.h | 11 +++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/sr

[Mesa-dev] [PATCH 9/9] glsl: Convert mul/div by power-of-two factors to shift expressions.

2014-04-06 Thread Kenneth Graunke
Integer shifts are basically always well supported and efficient; that isn't always true of integer division, and sometimes even integer multiplication isn't without issues. On some Intel hardware, INTDIV can't be used in SIMD16 mode. It also doesn't support immediate operands (on any generation)

[Mesa-dev] [PATCH 7/9] glsl: Pass ctx->Const.NativeIntegers to do_common_optimization().

2014-04-06 Thread Kenneth Graunke
The next few patches will introduce an optimization that only works when integers are not represented as floating point values. Signed-off-by: Kenneth Graunke --- src/glsl/glsl_parser_extras.cpp| 6 -- src/glsl/ir_optimization.h | 3 ++- src/glsl/linker.cpp

[Mesa-dev] [PATCH 1/9] i965: Fix "SIMD16 unsupported" messages via KHR_debug.

2014-04-06 Thread Kenneth Graunke
Performance warnings are logged via KHR_debug in addition to when the INTEL_DEBUG=perf environment variable is set. Without this, messages in debug contexts would have "(null)" for the reason. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs.cpp | 2 +- 1 file changed, 1 inse

[Mesa-dev] [PATCH 5/9] glsl: Fix lack of i2u in lower_ubo_reference.

2014-04-06 Thread Kenneth Graunke
ir_binop_ubo_load takes unsigned integer operands. However, the array index used to compute these offsets may be a signed integer. (For example, see Piglit's spec/glsl-1.40/uniform_buffer/fs-bvec-array). For some reason, we were missing an ir_binop_i2u cast, and ir_validator was failing to catch

[Mesa-dev] [PATCH 4/9] i965/fs: Skip emitting MACH/MOV for small integers.

2014-04-06 Thread Kenneth Graunke
The vector backend already implemented this optimization, but surprisingly, we never bothered to implement it in the scalar backend. In addition to saving two instructions, this eliminates a use of the accumulator as an explicit source, which is unsupported in SIMD16 mode on Gen7+, which could hel

Re: [Mesa-dev] [WIP 04/13] mesa: add a storage for inactive/removed uniform variables

2014-04-06 Thread Tapani Pälli
On 04/05/2014 01:13 AM, Ian Romanick wrote: > I've been thinking about this a bit, and I think this is more complex > than it needs to be. I don't have a complete design, but here are some > thoughts on the matter. > > When linking is all done, we just want the UniformRemapTable. It's > entires s

Re: [Mesa-dev] [WIP 08/13] glsl/linker: GL_ARB_explicit_uniform_location support

2014-04-06 Thread Tapani Pälli
On 04/05/2014 01:18 AM, Ian Romanick wrote: > On 03/27/2014 11:45 PM, Tapani Pälli wrote: >> Patch refactors the existing uniform processing so explicit locations >> are taken in to account during variable processing. These locations >> are temporarily stored in gl_uniform_storage before actual loc

Re: [Mesa-dev] [PATCH V3 01/30] mesa: Prefer non-swizzled formats for most sized internalformats

2014-04-06 Thread Chris Forbes
I'll move this patch after 7/30 to avoid things being temporarily broken. On Thu, Apr 3, 2014 at 3:34 AM, Brian Paul wrote: > On 04/02/2014 02:04 AM, Chris Forbes wrote: >> >> These formats can be cast to others (with different component types or >> sizes) via ARB_texture_view or ARB_shader_image

Re: [Mesa-dev] [PATCH V3 06/30] i965: Pretend we don't support BRW_SURFACEFORMAT_R16G16B16_FLOAT for textures.

2014-04-06 Thread Chris Forbes
Yes, that will work -- will do. On Mon, Apr 7, 2014 at 5:29 PM, Kenneth Graunke wrote: > On 04/02/2014 01:05 AM, Chris Forbes wrote: >> None of the other 3-component 16bpc formats are directly supported, so >> they get promoted to XRGB equivalents. *Not* promoting RGB16F the same >> way makes tex

Re: [Mesa-dev] [PATCH V3 06/30] i965: Pretend we don't support BRW_SURFACEFORMAT_R16G16B16_FLOAT for textures.

2014-04-06 Thread Kenneth Graunke
On 04/02/2014 01:05 AM, Chris Forbes wrote: > None of the other 3-component 16bpc formats are directly supported, so > they get promoted to XRGB equivalents. *Not* promoting RGB16F the same > way makes texture views much more fiddly -- we don't want to have to do > crazy copying behind the scenes.

Re: [Mesa-dev] [WIP 11/13] glsl: parser changes for GL_ARB_explicit_uniform_location

2014-04-06 Thread Tapani Pälli
On 04/05/2014 12:58 AM, Ian Romanick wrote: > On 04/04/2014 02:42 PM, Ian Romanick wrote: >> On 03/27/2014 11:45 PM, Tapani Pälli wrote: >>> Patch adds a preprocessor define for the extension and stores >>> explicit location data for uniforms during AST->HIR conversion. >>> It also sets layout toke

Re: [Mesa-dev] [WIP 00/13] GL_ARB_explicit_uniform_location extension

2014-04-06 Thread Tapani Pälli
On 04/05/2014 12:33 AM, Ian Romanick wrote: > On 03/27/2014 11:45 PM, Tapani Pälli wrote: >> Hi; >> >> Patches implement the extension, no Piglit regressions and all the tests >> for the extension pass (I've planned some more tests which are not yet >> in though). >> >> Changes shortly: >> >>-

Re: [Mesa-dev] [PATCH V3 02/30] mesa: fix packing of float texels to GL_SHORT/GL_BYTE

2014-04-06 Thread Kenneth Graunke
On 04/02/2014 01:04 AM, Chris Forbes wrote: > Previously, we would unpack the texels to floats using *_TO_FLOAT_TEX, > and then pack them into the desired format using FLOAT_TO_*. Unfortunately, > this isn't quite the inverse operation, and so some texel values would > end up off-by-one. These fun

[Mesa-dev] [PATCH] i965/vec4: fix record clearing in copy propagation

2014-04-06 Thread Chia-I Wu
From: Chia-I Wu Given mov vgrf7, vgrf9.xyxz add vgrf9.xyz, vgrf4.xyzw, vgrf5.xyzw add vgrf10.x, vgrf6.xyzw, vgrf7. the last instruction would be wrongly changed to add vgrf10.x, vgrf6.xyzw, vgrf9. during copy propagation. The issue is that when deciding if a record should be

Re: [Mesa-dev] [PATCH 05/16] targets/xvmc: limit the amount of exported symbols

2014-04-06 Thread Christian König
Am 05.04.2014 03:46, schrieb Emil Velikov: In the presence of LLVM the final library exports every symbol from the llvm namespace. Resolve this by using a version script (w/o the version/name tag). Considering that there are only ~25 symbols, explicitly list them to minimize the chances of rogue

Re: [Mesa-dev] [PATCH 15/16] targets/omx: use GALLIUM_VIDEO_CFLAGS

2014-04-06 Thread Christian König
Am 05.04.2014 03:47, schrieb Emil Velikov: Cc: Christian König Signed-off-by: Emil Velikov Reviewed-by: Christian König --- src/gallium/targets/r600/omx/Makefile.am | 8 +--- src/gallium/targets/radeonsi/omx/Makefile.am | 8 +--- 2 files changed, 2 insertions(+), 14 deletio

Re: [Mesa-dev] [PATCH 07/16] targets/omx: use version script to limit amount of exported symbols

2014-04-06 Thread Christian König
Am 05.04.2014 03:46, schrieb Emil Velikov: Using export-symbols-regex is the least desirable method of restricting the exported symbols, as is completely messes up with the symbol table. radeon_drm_winsys_create is not needed, avoid exporting it. Please add that anyway, we are going to need OM

Re: [Mesa-dev] [PATCH 08/16] targets/vdpau: use version script to limit the exported symbols

2014-04-06 Thread Christian König
Am 05.04.2014 11:47, schrieb Emil Velikov: On 05/04/14 10:34, Christian König wrote: Am 05.04.2014 03:46, schrieb Emil Velikov: Using export-symbols-regex is the least desirable method of restricting the exported symbols, as is completely messes up with the symbol table. Why? As far as I can t

Re: [Mesa-dev] [PATCH 06/16] targets/dri: use a single version script to restict exported symbols

2014-04-06 Thread Christian König
Am 05.04.2014 11:16, schrieb Maarten Lankhorst: op 05-04-14 03:46, Emil Velikov schreef: Rather than having multiple (almost) identical version scripts use a single one. Cc: Maarten Lankhorst Cc: Christian König Signed-off-by: Emil Velikov --- src/gallium/Automake.inc

Re: [Mesa-dev] [PATCH 08/16] targets/vdpau: use version script to limit the exported symbols

2014-04-06 Thread Christian König
Am 05.04.2014 03:46, schrieb Emil Velikov: Using export-symbols-regex is the least desirable method of restricting the exported symbols, as is completely messes up with the symbol table. Why? As far as I can tell it does exactly what it is supposed to do. Christian. Cc: Christian König Sig

Re: [Mesa-dev] [PATCH 00/16] Yet another round of exported symbols cleanup

2014-04-06 Thread Negreanu, Adrian M
On Sat, Apr 5, 2014 at 5:07 AM, Emil Velikov wrote: > Hi all, > > This is the final round cleaning up the exported symbols mayhem for > gallium. > IIRC the only place in mesa that needs some love is src/mapi. > > Highlights: > - Drops __dri2ConfigOptions for both classic and gallium drivers. > Pr

[Mesa-dev] [Bug 77102] gallium nouveau has no profile in vdpau and libva

2014-04-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77102 Ilia Mirkin changed: What|Removed |Added Assignee|mesa-dev@lists.freedesktop. |nouveau@lists.freedesktop.o

[Mesa-dev] [Bug 77102] gallium nouveau has no profile in vdpau and libva

2014-04-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77102 Stefan Ringel changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|NOTABUG

Re: [Mesa-dev] [PATCH mesa/mesa] Hardcode the DRI driver extension as .so to match it's current uses.

2014-04-06 Thread Emil Velikov
Hi Jon, Sorry about this breakage. I assumed that the library extensions are handled consistently across mesa. Seems like I was wrong. Guessing that you meant to send this to the mesa-dev ? On 06/04/14 15:59, Jon TURNEY wrote: > Partially revert bba9c28 "configure: use LIB_EXT rather than hardco

[Mesa-dev] [Bug 77102] gallium nouveau has no profile in vdpau and libva

2014-04-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77102 Ilia Mirkin changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 77102] gallium nouveau has no profile in vdpau and libva

2014-04-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77102 --- Comment #2 from Stefan Ringel --- Created attachment 96975 --> https://bugs.freedesktop.org/attachment.cgi?id=96975&action=edit vainfo valgrind -- You are receiving this mail because: You are the assignee for the bug.

[Mesa-dev] [Bug 77102] gallium nouveau has no profile in vdpau and libva

2014-04-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77102 --- Comment #3 from Stefan Ringel --- Created attachment 96976 --> https://bugs.freedesktop.org/attachment.cgi?id=96976&action=edit vdpauinfo valgrind -- You are receiving this mail because: You are the assignee for the bug. _

[Mesa-dev] [Bug 77102] gallium nouveau has no profile in vdpau and libva

2014-04-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77102 --- Comment #1 from Stefan Ringel --- Created attachment 96974 --> https://bugs.freedesktop.org/attachment.cgi?id=96974&action=edit vdpainfo gdb -- You are receiving this mail because: You are the assignee for the bug. ___

[Mesa-dev] [Bug 77102] New: gallium nouveau has no profile in vdpau and libva

2014-04-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77102 Priority: medium Bug ID: 77102 Assignee: mesa-dev@lists.freedesktop.org Summary: gallium nouveau has no profile in vdpau and libva Severity: normal Classification: Unclassified