Re: [Mesa-dev] [PATCH 2/5] mesa: Make compile_shader() take a gl_shader, not a GLuint.

2016-03-16 Thread Timothy Arceri
Patches 2-4 are Reviewed-by: Timothy Arceri I'll take a better look at the other two in the next few days unless someone beats me to it. On Wed, 2016-03-16 at 00:12 -0700, Kenneth Graunke wrote: > In half the callers, we already have a pointer, and don't need > to look it up again.  This will a

Re: [Mesa-dev] [PATCH mesa 6/6] nouveau: codegen: Disable more old resource handling code

2016-03-16 Thread Hans de Goede
Hi, On 16-03-16 11:45, Samuel Pitoiset wrote: On 03/16/2016 10:23 AM, Hans de Goede wrote: Commit c3083c7082 ("nv50/ir: add support for BUFFER accesses") disabled / commented out some of the old resource handling code, but not all of it. Effectively all of it is dead already, if we ever ente

Re: [Mesa-dev] [PATCH mesa 6/6] nouveau: codegen: Disable more old resource handling code

2016-03-16 Thread Samuel Pitoiset
On 03/16/2016 10:23 AM, Hans de Goede wrote: Commit c3083c7082 ("nv50/ir: add support for BUFFER accesses") disabled / commented out some of the old resource handling code, but not all of it. Effectively all of it is dead already, if we ever enter the old code paths in handeLOAD / handleSTORE

Re: [Mesa-dev] [PATCH mesa 5/6] nouveau: codegen: Add support for OpenCL global memory buffers

2016-03-16 Thread Hans de Goede
Hi, On 16-03-16 11:37, Samuel Pitoiset wrote: Could you please get rid of the cosmetic changes (eg. the switch ones)? Because this doesn't really improve readability and in my opinion these changes should be eventually done in a separate patch. I need at least halve of those cosmetic changes,

Re: [Mesa-dev] [PATCH 1/5] include/GL: add mesa_glinterop.h for OpenGL-OpenCL interop (v3)

2016-03-16 Thread Marek Olšák
On Sat, Mar 12, 2016 at 12:35 AM, Emil Velikov wrote: > On 9 March 2016 at 18:36, Marek Olšák wrote: >> On Wed, Mar 9, 2016 at 6:51 PM, Emil Velikov >> wrote: >>> On 9 March 2016 at 17:11, Marek Olšák wrote: On Wed, Mar 9, 2016 at 4:31 PM, Emil Velikov wrote: > On 8 March 2016

Re: [Mesa-dev] [PATCH mesa 5/6] nouveau: codegen: Add support for OpenCL global memory buffers

2016-03-16 Thread Samuel Pitoiset
Could you please get rid of the cosmetic changes (eg. the switch ones)? Because this doesn't really improve readability and in my opinion these changes should be eventually done in a separate patch. Other than that, this patch is : Reviewed-by: Samuel Pitoiset Yes, this probably won't work a

Re: [Mesa-dev] [PATCH mesa 3/6] nouveau: codegen: gk110: Make emitSTORE offset handling identical to emitLOAD

2016-03-16 Thread Samuel Pitoiset
Reviewed-by: Samuel Pitoiset On 03/16/2016 10:23 AM, Hans de Goede wrote: Make the store offset handling in CodeEmitterGK110::emitSTORE identical to the one in CodeEmitterGK110::emitLOAD handling. This is just a cleanup, it does not cause any functional changes. Signed-off-by: Hans de Goede

Re: [Mesa-dev] [PATCH mesa 2/6] nouveau: codegen: Slightly refactor Source::scanInstruction() dst handling

2016-03-16 Thread Samuel Pitoiset
Reviewed-by: Samuel Pitoiset On 03/16/2016 10:23 AM, Hans de Goede wrote: Use the dst temp variable which was used in the TGSI_FILE_OUTPUT case everywhere. This makes the code somewhat easier to reads and helps avoiding going over 80 chars with upcoming changes. This also brings the dst handli

Re: [Mesa-dev] [PATCH 5/5] nvc0: shift driver constant buffer offsets by 32 bytes

2016-03-16 Thread Samuel Pitoiset
The offsets are wrong in this patch... But even after fixing them I have a few number of regressions (~10 piglit tests). Anyway, these changes are not too useful for now, so I'm going to get rid of it. I'll now try with Kepler. On 03/15/2016 09:55 PM, Samuel Pitoiset wrote: The first 32 bytes

[Mesa-dev] [Bug 94549] [swrast] piglit glsl-arb-fragment-coord-conventions regression

2016-03-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=94549 --- Comment #2 from Plamena Manolova --- Hi Vinson, Could you please give the proposed patch a go? -- You are receiving this mail because: You are the assignee for the bug. You are the QA Contact for the bug.

Re: [Mesa-dev] [PATCH mesa 1/6] tgsi_build: Fix return of uninitialized memory in tgsi_*_instruction_memory

2016-03-16 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Wed, Mar 16, 2016 at 10:23 AM, Hans de Goede wrote: > tgsi_default_instruction_memory / tgsi_build_instruction_memory were > returning uninitialized memory for tgsi_instruction_memory.Texture and > tgsi_instruction_memory.Format. Note 0 means not set, and thus

[Mesa-dev] [Bug 94549] [swrast] piglit glsl-arb-fragment-coord-conventions regression

2016-03-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=94549 --- Comment #1 from Plamena Manolova --- Created attachment 122339 --> https://bugs.freedesktop.org/attachment.cgi?id=122339&action=edit Proposed Patch -- You are receiving this mail because: You are the QA Contact for the bug. You are the as

Re: [Mesa-dev] [PATCH mesa v2 3/3] nouveau: codegen: Add support for clover / OpenCL kernel input parameters

2016-03-16 Thread Samuel Pitoiset
Reviewed-by: Samuel Pitoiset On 03/16/2016 09:55 AM, Hans de Goede wrote: Add support for clover / OpenCL kernel input parameters. Signed-off-by: Hans de Goede Reviewed-by: Ilia Mirkin --- Changes in v2: -s/local/private/ -Add: Reviewed-by: Ilia Mirkin --- .../drivers/nouveau/codegen/nv50

Re: [Mesa-dev] [PATCH mesa v2 2/3] tgsi: Add support for global / private / input MEMORY

2016-03-16 Thread Samuel Pitoiset
Reviewed-by: Samuel Pitoiset Btw, usually when someone has reviewed the v1 we add (v1) after the Rb tag, like: Reviewed-by: XXX (v1) On 03/16/2016 09:55 AM, Hans de Goede wrote: Extend the MEMORY file support to differentiate between global, private and shared memory, as well as "input" mem

Re: [Mesa-dev] [PATCH mesa v2 1/3] tgsi: Fix decl.Atomic and .Shared not propagating when parsing tgsi text

2016-03-16 Thread Samuel Pitoiset
Reviewed-by: Samuel Pitoiset On 03/16/2016 09:55 AM, Hans de Goede wrote: When support for decl.Atomic and .Shared was added, tgsi_build_declaration was not updated to propagate these properly. Signed-off-by: Hans de Goede Reviewed-by: Ilia Mirkin --- Changes in v2: -Add Reviewed-by: Ilia Mi

Re: [Mesa-dev] [PATCH 2/5] nv50/ir: make use of auxCBSlot instead of magic numbers

2016-03-16 Thread Hans de Goede
Hi, On 15-03-16 21:55, Samuel Pitoiset wrote: This avoids using magic numbers for the driver constbuf slot which is always 15 except for compute shaders on gk104+ where the slot 0 is used. For gk104+, some special compute-related values like the thread index are uploaded to screen->parm which i

[Mesa-dev] [PATCH mesa 5/6] nouveau: codegen: Add support for OpenCL global memory buffers

2016-03-16 Thread Hans de Goede
Add support for OpenCL global memory buffers, note this has only been tested with regular load and stores and likely needs more work for e.g. atomic ops. Signed-off-by: Hans de Goede --- src/gallium/drivers/nouveau/codegen/nv50_ir.h | 1 + .../drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp

[Mesa-dev] [PATCH mesa 3/6] nouveau: codegen: gk110: Make emitSTORE offset handling identical to emitLOAD

2016-03-16 Thread Hans de Goede
Make the store offset handling in CodeEmitterGK110::emitSTORE identical to the one in CodeEmitterGK110::emitLOAD handling. This is just a cleanup, it does not cause any functional changes. Signed-off-by: Hans de Goede --- src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp | 4 +--- 1 fi

[Mesa-dev] [PATCH mesa 4/6] nouveau: codegen: s/FILE_MEMORY_GLOBAL/FILE_MEMORY_BUFFER/

2016-03-16 Thread Hans de Goede
FILE_MEMORY_GLOBAL is currently only used for buffer handling, as we do not yet have (opencl) global memory support. Global memory support actually requires some different handling during lowering, so rename FILE_MEMORY_GLOBAL to FILE_MEMORY_BUFFER to reflect that the current code is for buffer han

[Mesa-dev] [PATCH mesa 6/6] nouveau: codegen: Disable more old resource handling code

2016-03-16 Thread Hans de Goede
Commit c3083c7082 ("nv50/ir: add support for BUFFER accesses") disabled / commented out some of the old resource handling code, but not all of it. Effectively all of it is dead already, if we ever enter the old code paths in handeLOAD / handleSTORE / handleATOM we will get an exception due to tryi

[Mesa-dev] [PATCH mesa 2/6] nouveau: codegen: Slightly refactor Source::scanInstruction() dst handling

2016-03-16 Thread Hans de Goede
Use the dst temp variable which was used in the TGSI_FILE_OUTPUT case everywhere. This makes the code somewhat easier to reads and helps avoiding going over 80 chars with upcoming changes. This also brings the dst handling more in line with the src handling. Signed-off-by: Hans de Goede --- src

[Mesa-dev] [PATCH mesa 1/6] tgsi_build: Fix return of uninitialized memory in tgsi_*_instruction_memory

2016-03-16 Thread Hans de Goede
tgsi_default_instruction_memory / tgsi_build_instruction_memory were returning uninitialized memory for tgsi_instruction_memory.Texture and tgsi_instruction_memory.Format. Note 0 means not set, and thus is a correct default initializer for these. Fixes: 3243b6fc97 ("tgsi: add Texture and Format to

Re: [Mesa-dev] [PATCH 05/14] nir: update opcode definitions for different bit sizes

2016-03-16 Thread Iago Toral
On Mon, 2016-03-14 at 14:24 -0400, Connor Abbott wrote: > On Mon, Mar 14, 2016 at 2:10 PM, Jason Ekstrand wrote: (...) > >> > >> -opcode("ldexp", 0, tfloat, [0, 0], [tfloat, tint], "", """ > >> -dst = ldexpf(src0, src1); > >> +opcode("ldexp", 0, tfloat32, [0, 0], [tfloat32, tint32], "", """ > >> +

Re: [Mesa-dev] [PATCH 13/14] nir: propagate bitsize information in nir_search

2016-03-16 Thread Iago Toral
On Wed, 2016-03-16 at 09:48 +0100, Samuel Iglesias Gonsálvez wrote: > > On 15/03/16 08:41, Iago Toral wrote: > > On Mon, 2016-03-14 at 17:33 -0700, Jason Ekstrand wrote: > [...] > >> + nir_alu_type type; + union { - uint32_t u; - > >> int32_t i; - float f; + uint64_t u; + int

[Mesa-dev] [PATCH mesa v2 3/3] nouveau: codegen: Add support for clover / OpenCL kernel input parameters

2016-03-16 Thread Hans de Goede
Add support for clover / OpenCL kernel input parameters. Signed-off-by: Hans de Goede Reviewed-by: Ilia Mirkin --- Changes in v2: -s/local/private/ -Add: Reviewed-by: Ilia Mirkin --- .../drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp | 18 +++--- 1 file changed, 15 insertions(+

[Mesa-dev] [PATCH mesa v2 2/3] tgsi: Add support for global / private / input MEMORY

2016-03-16 Thread Hans de Goede
Extend the MEMORY file support to differentiate between global, private and shared memory, as well as "input" memory. "MEMORY[x], INPUT" is intended to access OpenCL kernel parameters, a special memory type is added for this, since the actual storage of these (e.g. UBO-s) may differ per implementa

[Mesa-dev] [PATCH mesa v2 1/3] tgsi: Fix decl.Atomic and .Shared not propagating when parsing tgsi text

2016-03-16 Thread Hans de Goede
When support for decl.Atomic and .Shared was added, tgsi_build_declaration was not updated to propagate these properly. Signed-off-by: Hans de Goede Reviewed-by: Ilia Mirkin --- Changes in v2: -Add Reviewed-by: Ilia Mirkin --- src/gallium/auxiliary/tgsi/tgsi_build.c | 6 ++ 1 file changed,

Re: [Mesa-dev] [PATCH 13/14] nir: propagate bitsize information in nir_search

2016-03-16 Thread Samuel Iglesias Gonsálvez
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 15/03/16 08:41, Iago Toral wrote: > On Mon, 2016-03-14 at 17:33 -0700, Jason Ekstrand wrote: [...] >> + nir_alu_type type; + union { - uint32_t u; - >> int32_t i; - float f; + uint64_t u; + int64_t i; + >> double d; } data;

Re: [Mesa-dev] [PATCH 06/14] nir: handle different bit sizes when constant folding

2016-03-16 Thread Iago Toral
On Tue, 2016-03-15 at 08:02 -0700, Jason Ekstrand wrote: > > On Mar 15, 2016 7:48 AM, "Connor Abbott" wrote: > > > > On Tue, Mar 15, 2016 at 10:43 AM, Connor Abbott > wrote: > > > On Tue, Mar 15, 2016 at 5:53 AM, Iago Toral > wrote: > > >> On Mon, 2016-03-14 at 16:48 -0700, Jason Ekstrand wrote

Re: [Mesa-dev] [PATCH] radeonsi: fix Hyper-Z hangs on P2 configs

2016-03-16 Thread Michel Dänzer
On 16.03.2016 08:05, Nicolai Hähnle wrote: > If I understand your patch correctly, the only effect is that a larger > HTILE buffer is allocated, right? I'm surprised that only hangs were > reported and not VM faults. We should really introduce guard pages / > gaps between mapped buffers. FWIW, tha

[Mesa-dev] [PATCH 1/5] meta: Use the _mesa_meta_compile_and_link_program helper more places.

2016-03-16 Thread Kenneth Graunke
Less boilerplate. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/common/meta.c | 34 - src/mesa/drivers/dri/i965/brw_meta_fast_clear.c | 14 +++--- 2 files changed, 8 insertions(+), 40 deletions(-) diff --git a/src/mesa/drivers/common/meta.c b/s

[Mesa-dev] [PATCH 3/5] mesa: Make link_program() take a gl_shader_program, not a GLuint.

2016-03-16 Thread Kenneth Graunke
In half the callers, we already have a pointer, and don't need to look it up again. This will also help with upcoming meta work. Signed-off-by: Kenneth Graunke --- src/mesa/main/shaderapi.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/mesa/main/shaderapi.c

[Mesa-dev] [PATCH 5/5] meta: Don't use integer handles for shaders or programs.

2016-03-16 Thread Kenneth Graunke
Previously, we gave our internal clear/blit shaders actual GL handles and stored them in the shader/program hash table. We used ordinary GL API entrypoints to work with them. We thought this shouldn't be a problem because GL doesn't allow applications to invent their own names for shaders or prog

[Mesa-dev] [PATCH 2/5] mesa: Make compile_shader() take a gl_shader, not a GLuint.

2016-03-16 Thread Kenneth Graunke
In half the callers, we already have a pointer, and don't need to look it up again. This will also help with upcoming meta work. Signed-off-by: Kenneth Graunke --- src/mesa/main/shaderapi.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/mesa/main/shadera

[Mesa-dev] [PATCH 4/5] mesa: Expose compile_shader() and link_program() beyond the file.

2016-03-16 Thread Kenneth Graunke
This will allow me to use them directly from Meta, bypassing the versions that work with GL integer handles. Signed-off-by: Kenneth Graunke --- src/mesa/main/shaderapi.c | 20 ++-- src/mesa/main/shaderapi.h | 6 ++ 2 files changed, 16 insertions(+), 10 deletions(-) diff --g

[Mesa-dev] [Bug 94561] [llvmpipe] PIPE_CAP_VIDEO_MEMORY reports negative value on 32 bits (with 16GB ram)

2016-03-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=94561 --- Comment #4 from Axel Davy --- Returning 2GB looks like a good idea. -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug.___ mesa-dev mailin