[Mesa-dev] [PATCH 08/27] glsl: add 64-bit integer support to uniform initialiser code

2016-06-19 Thread Dave Airlie
From: Dave Airlie Just add support to the double case, same code should work. Signed-off-by: Dave Airlie --- src/compiler/glsl/link_uniform_initializers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/glsl/link_uniform_initializers.cpp b/src/compiler/g

[Mesa-dev] [PATCH 25/27] tgsi/softpipe: enable ARB_gpu_shader_int64 support. (v2)

2016-06-19 Thread Dave Airlie
From: Dave Airlie This adds all the opcodes to tgsi_exec for softpipe to use. It also enables the cap. v2: add conversion opcodes. Signed-off-by: Dave Airlie --- src/gallium/auxiliary/tgsi/tgsi_exec.c | 673 +-- src/gallium/drivers/softpipe/sp_screen.c | 2 +

[Mesa-dev] [PATCH 26/27] gallivm/llvmpipe: add support for ARB_gpu_shader_int64.

2016-06-19 Thread Dave Airlie
From: Dave Airlie This enables 64-bit integer support in gallivm and llvmpipe. v2: add conversion opcodes. Signed-off-by: Dave Airlie --- src/gallium/auxiliary/gallivm/lp_bld_tgsi.c| 2 + src/gallium/auxiliary/gallivm/lp_bld_tgsi.h| 4 + src/gallium/auxiliary/gallivm/lp_bld

[Mesa-dev] [PATCH 24/27] st/mesa: add support for enabling ARB_gpu_shader_int64.

2016-06-19 Thread Dave Airlie
From: Dave Airlie Signed-off-by: Dave Airlie --- src/mesa/state_tracker/st_extensions.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 04f6b1a..6c08895 100644 --- a/src/mesa/state_tracker/st_extensions.c

[Mesa-dev] [PATCH 06/27] glsl/ast/ir: add 64-bit integer constant support (v2)

2016-06-19 Thread Dave Airlie
From: Dave Airlie This adds support for 64-bit integer constants to the parser, ast and ir. v2: fix a few issues found in testing. Signed-off-by: Dave Airlie --- src/compiler/glsl/ast.h | 4 ++ src/compiler/glsl/ast_function.cpp | 8 ++- src/compiler/glsl/ast_to_hir

[Mesa-dev] [PATCH 02/27] mesa: add ARB_gpu_shader_int64 extension bits

2016-06-19 Thread Dave Airlie
From: Dave Airlie This just adds the usual boilerplate in mesa core. Signed-off-by: Dave Airlie --- src/mesa/main/extensions_table.h | 1 + src/mesa/main/mtypes.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/mesa/main/extensions_table.h b/src/mesa/main/extensions_table.h

[Mesa-dev] [PATCH 20/27] gallium: add integer 64 capability. (v1.1)

2016-06-19 Thread Dave Airlie
From: Dave Airlie TODO: go back and fill this out to avoid warnings. v1.1: move to using a normal CAP. (Marek) Signed-off-by: Dave Airlie --- src/gallium/include/pipe/p_defines.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pip

[Mesa-dev] [PATCH 13/27] glsl: add 64-bit integer support to some operations.

2016-06-19 Thread Dave Airlie
From: Dave Airlie This adds 64-bit integer support to some AST and IR operations where it is needed. Signed-off-by: Dave Airlie --- src/compiler/glsl/ast_to_hir.cpp | 12 ++-- src/compiler/glsl/ir_validate.cpp | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/s

[Mesa-dev] [PATCH 23/27] st/glsl_to_tgsi: add support for 64-bit integers. (v2)

2016-06-19 Thread Dave Airlie
From: Dave Airlie v2: add conversion opcodes. Signed-off-by: Dave Airlie --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 217 ++--- 1 file changed, 198 insertions(+), 19 deletions(-) diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_

[Mesa-dev] [PATCH 22/27] gallium/tgsi: add support for 64-bit integer immediates.

2016-06-19 Thread Dave Airlie
From: Dave Airlie This adds support to TGSI for 64-bit integer immediates. Signed-off-by: Dave Airlie --- src/gallium/auxiliary/tgsi/tgsi_dump.c | 14 ++ src/gallium/auxiliary/tgsi/tgsi_exec.c | 2 ++ src/gallium/auxiliary/tgsi/tgsi_parse.c| 2 ++ src/gallium/auxiliary/tg

[Mesa-dev] [PATCH 11/27] glsl/ast: add 64-bit integer support to conversion functions

2016-06-19 Thread Dave Airlie
From: Dave Airlie This adds support to call the new operations on conversions. Signed-off-by: Dave Airlie --- src/compiler/glsl/ast_function.cpp | 75 ++ src/compiler/glsl/ast_to_hir.cpp | 20 ++ 2 files changed, 95 insertions(+) diff --git a/src/

[Mesa-dev] [PATCH 09/27] glsl/ir: add support for 64-bit integer conversions.

2016-06-19 Thread Dave Airlie
From: Dave Airlie This adds all the conversions in the world, I'm not 100% sure of all of these are needed, but add all of them and we can cut them down later. v2: fix issue with packing output types. Reviewed-by: Ian Romanick Signed-off-by: Dave Airlie --- src/compiler/glsl/ir.cpp

[Mesa-dev] [PATCH 12/27] glsl/ir_builder: add support for some 64-bit bitcasts.

2016-06-19 Thread Dave Airlie
From: Dave Airlie We need builder support to implement some of the builtins. Signed-off-by: Dave Airlie --- src/compiler/glsl/ir_builder.cpp | 24 src/compiler/glsl/ir_builder.h | 6 ++ 2 files changed, 30 insertions(+) diff --git a/src/compiler/glsl/ir_builder

[Mesa-dev] [PATCH 27/27] [rfc] radeonsi: enable 64-bit integer support.

2016-06-19 Thread Dave Airlie
From: Dave Airlie This passes all my current piglit tests except the variants on: fs-op-div-int64_t-i64vec3 I'm guessing this is probably a backend bug. [rfc: this needs more testing - just posting to show I've done it] Signed-off-by: Dave Airlie --- src/gallium/drivers/radeon/radeon_llvm.h

[Mesa-dev] [PATCH 05/27] mesa: add support for 64-bit integer uniforms.

2016-06-19 Thread Dave Airlie
From: Dave Airlie This hooks up the API to the internals for 64-bit integer uniforms. Signed-off-by: Dave Airlie --- src/mesa/main/uniform_query.cpp | 60 +- src/mesa/main/uniforms.c| 170 +++- 2 files changed, 225 insertions(+), 5 delet

[Mesa-dev] [PATCH 15/27] glsl/varying_packing: add 64-bit integer support

2016-06-19 Thread Dave Airlie
From: Dave Airlie As for the double code, but using the 64-bit integer conversions. Signed-off-by: Dave Airlie --- src/compiler/glsl/lower_packed_varyings.cpp | 62 + 1 file changed, 62 insertions(+) diff --git a/src/compiler/glsl/lower_packed_varyings.cpp b/src/c

[Mesa-dev] [PATCH 03/27] glsl: add arb_gpu_shader_int64 boilerplate.

2016-06-19 Thread Dave Airlie
From: Dave Airlie This just adds the basic boilerplate support. Signed-off-by: Dave Airlie --- src/compiler/glsl/glcpp/glcpp-parse.y| 3 +++ src/compiler/glsl/glsl_parser_extras.cpp | 1 + src/compiler/glsl/glsl_parser_extras.h | 7 +++ 3 files changed, 11 insertions(+) diff --git a

[Mesa-dev] [PATCH 19/27] i965: avoid int64 warnings.

2016-06-19 Thread Dave Airlie
From: Dave Airlie Just add operations to the switch statement here. Signed-off-by: Dave Airlie --- .../dri/i965/brw_fs_channel_expressions.cpp| 30 ++ 1 file changed, 30 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp b/src/mesa

[Mesa-dev] [PATCH 16/27] glsl: add 64-bit integer functions. (v2)

2016-06-19 Thread Dave Airlie
From: Dave Airlie These are all the allowed 64-bit functions from ARB_gpu_shader_int64 spec. v2: restrict int64/double functions better. Signed-off-by: Dave Airlie --- src/compiler/glsl/builtin_functions.cpp | 179 +++- 1 file changed, 176 insertions(+), 3 deletion

[Mesa-dev] [PATCH 21/27] gallium: add opcode and types for 64-bit integers. (v2)

2016-06-19 Thread Dave Airlie
From: Dave Airlie This just adds the basic support for 64-bit opcodes, and the new types. v2: add conversion opcodes. add documentation. Signed-off-by: Dave Airlie --- src/gallium/auxiliary/tgsi/tgsi_info.c | 92 +-- src/gallium/auxiliary/tgsi/tgsi_info.h | 4 +- src/galliu

[Mesa-dev] [PATCH 14/27] glsl/ast: add 64-bit integer support in some places.

2016-06-19 Thread Dave Airlie
From: Dave Airlie Just add support in two more places in ast parsing. Signed-off-by: Dave Airlie --- src/compiler/glsl/ast_to_hir.cpp | 5 + 1 file changed, 5 insertions(+) diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp index 82fc922..3380a1a 100644 --- a

[Mesa-dev] [PATCH 07/27] glsl/varyings: add 64-bit integer support.

2016-06-19 Thread Dave Airlie
From: Dave Airlie This adds 64-bit ints to the link_varyings 64-bit support. Signed-off-by: Dave Airlie --- src/compiler/glsl/link_varyings.h | 8 1 file changed, 8 insertions(+) diff --git a/src/compiler/glsl/link_varyings.h b/src/compiler/glsl/link_varyings.h index 39e9070..a44f9f

[Mesa-dev] [PATCH 18/27] i965: avoid int64 induced warnings

2016-06-19 Thread Dave Airlie
From: Dave Airlie Just add types into unsupported or double equivalent spots. Signed-off-by: Dave Airlie --- src/mesa/drivers/dri/i965/brw_fs.cpp | 2 ++ src/mesa/drivers/dri/i965/brw_shader.cpp | 2 ++ src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 2 ++ 3 files changed, 6 i

[Mesa-dev] [PATCH 10/27] glsl: add 64-bit integer support for constant expressions (v2)

2016-06-19 Thread Dave Airlie
From: Dave Airlie This just adds the new operations and add 64-bit integer support to all the existing cases where it is needed. v2: fix some issues found in testing. Signed-off-by: Dave Airlie --- src/compiler/glsl/ir_constant_expression.cpp | 428 --- 1 file changed,

[Mesa-dev] [PATCH 17/27] mesa/program: add unused ir operations.

2016-06-19 Thread Dave Airlie
From: Dave Airlie --- src/mesa/program/ir_to_mesa.cpp | 30 ++ 1 file changed, 30 insertions(+) diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 94a6ca3..b010cbd 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/i

[Mesa-dev] [PATCH 04/27] glsl: add basic arb_gpu_shader_int64 types

2016-06-19 Thread Dave Airlie
From: Dave Airlie This adds the builtins and the lexer support. To avoid too many warnings, it adds basic support to the type in a few other places in mesa, mostly in the trivial places. It also adds a query to be used later for if a type is an integer 32 or 64. Signed-off-by: Dave Airlie ---

[Mesa-dev] ARB_gpu_shader_int64 second posting (softpipe/llvmpipe/radeonsi)

2016-06-19 Thread Dave Airlie
Okay this is the second posting for the ARB_gpu_shader_int64 series. This adds support for the conversion and plumbs the necessary ones down through gallium and into the drivers. It documents the gallium opcodes as well. I haven't taken Ian's advice to macroise the GLSL constant expression stuff

[Mesa-dev] [PATCH 01/27] mapi: add support for ARB_gpu_shader_int64.

2016-06-19 Thread Dave Airlie
From: Dave Airlie Just add the boilerplate xml code. Signed-off-by: Dave Airlie --- src/mapi/glapi/gen/ARB_gpu_shader_int64.xml | 262 src/mapi/glapi/gen/Makefile.am | 1 + src/mapi/glapi/gen/gl_API.xml | 2 + src/mesa/main/uniforms.c

Re: [Mesa-dev] [PATCH] gallivm: don't use integer min/max sse intrinsics with llvm >= 3.9

2016-06-19 Thread Aaron Watry
This also fixes 'make check' for me. --Aaron On Sat, Jun 18, 2016 at 9:06 PM, wrote: > From: Roland Scheidegger > > Apparently, these are deprecated. There's some AutoUpgrade feature which > is supposed to promote these to cmp/select, which apparently doesn't work > with jit code. It is possib

Re: [Mesa-dev] [PATCH] nvc0: don't make use of push hint if there are no non-const user vbos

2016-06-19 Thread Samuel Pitoiset
On 06/19/2016 04:09 PM, Ilia Mirkin wrote: On Sun, Jun 19, 2016 at 9:56 AM, Samuel Pitoiset wrote: I don't know if you remember, but I suggested exactly the same patch few days ago when I was looking at the Talos issue, but I was not really sure if this was the "correct" fix. Sorry, I had n

Re: [Mesa-dev] [PATCH] nvc0: don't make use of push hint if there are no non-const user vbos

2016-06-19 Thread Ilia Mirkin
On Sun, Jun 19, 2016 at 9:56 AM, Samuel Pitoiset wrote: > I don't know if you remember, but I suggested exactly the same patch few > days ago when I was looking at the Talos issue, but I was not really sure if > this was the "correct" fix. Sorry, I had no recollection of that - I only remember th

Re: [Mesa-dev] [PATCH] translate: fix start_instance parameter in sse version

2016-06-19 Thread Samuel Pitoiset
Looks correct to me. Reviewed-by: Samuel Pitoiset On 06/19/2016 06:47 AM, Ilia Mirkin wrote: The generic version gets this right already, but this was using an incorrect formula in SSE. Signed-off-by: Ilia Mirkin --- src/gallium/auxiliary/translate/translate_sse.c | 14 +++--- 1 fil

Re: [Mesa-dev] [PATCH] nvc0: don't make use of push hint if there are no non-const user vbos

2016-06-19 Thread Samuel Pitoiset
I don't know if you remember, but I suggested exactly the same patch few days ago when I was looking at the Talos issue, but I was not really sure if this was the "correct" fix. Anyways, this patch looks fine to me (even if we don't exactly know why it works this way). This will also improve

Re: [Mesa-dev] [PATCH v2] gk104/ir: fix tex use generation to be more careful about eliding uses

2016-06-19 Thread Samuel Pitoiset
Reviewed-by: Samuel Pitoiset On 06/18/2016 10:05 PM, Ilia Mirkin wrote: If we have a loop, instructions before the tex might be added as tex uses, and those may in fact dominate all other uses of the tex results. This however doesn't mean that we don't need a texbar after the tex. Only check if

Re: [Mesa-dev] [PATCH v2] nv50, nvc0: fix start_instance in manual push path

2016-06-19 Thread Samuel Pitoiset
Reviewed-by: Samuel Pitoiset On 06/19/2016 06:54 AM, Ilia Mirkin wrote: The start instance is applied as an offset into the buffer directly, ignoring the divisor, not as an instance id offset that respects the divisor. Signed-off-by: Ilia Mirkin Cc: "11.2 12.0" --- v1 -> v2: use translate's

Re: [Mesa-dev] [PATCH] gallivm: don't use integer min/max sse intrinsics with llvm >= 3.9

2016-06-19 Thread Vinson Lee
On Sat, Jun 18, 2016 at 7:06 PM, wrote: > From: Roland Scheidegger > > Apparently, these are deprecated. There's some AutoUpgrade feature which > is supposed to promote these to cmp/select, which apparently doesn't work > with jit code. It is possible it's not actually even meant to work (see >