Re: [Mesa-dev] [PATCH 2/6] New unary opcodes for ARB_shader_bit_encoding support.

2012-05-02 Thread Ian Romanick
On 04/30/2012 01:40 PM, Kenneth Graunke wrote: On 04/30/2012 04:19 AM, Olivier Galibert wrote: The opcodes are bf2u, bf2i, bi2f and bu2f, with "b" meaning bitwise conversions. Signed-off-by: Olivier Galibert I can't say I'm crazy about the names bf2u, bf2i, bi2f, and bu2f. It seems like somet

Re: [Mesa-dev] [PATCH 2/6] New unary opcodes for ARB_shader_bit_encoding support.

2012-05-01 Thread Kenneth Graunke
On 05/01/2012 10:24 AM, Eric Anholt wrote: On Tue, 1 May 2012 08:52:51 +0200, Olivier Galibert wrote: On Mon, Apr 30, 2012 at 02:21:51PM -0700, Eric Anholt wrote: GLSL 1.30 is already on for gen6+. You can force 1.30 for your purposes if needed on older hardware with the environment variable:

Re: [Mesa-dev] [PATCH 2/6] New unary opcodes for ARB_shader_bit_encoding support.

2012-05-01 Thread Eric Anholt
On Tue, 1 May 2012 08:52:51 +0200, Olivier Galibert wrote: > On Mon, Apr 30, 2012 at 02:21:51PM -0700, Eric Anholt wrote: > > GLSL 1.30 is already on for gen6+. You can force 1.30 for your purposes > > if needed on older hardware with the environment variable: > > > > MESA_GLSL_VERSION_OVERRIDE=

Re: [Mesa-dev] [PATCH 2/6] New unary opcodes for ARB_shader_bit_encoding support.

2012-04-30 Thread Olivier Galibert
On Mon, Apr 30, 2012 at 02:21:51PM -0700, Eric Anholt wrote: > GLSL 1.30 is already on for gen6+. You can force 1.30 for your purposes > if needed on older hardware with the environment variable: > > MESA_GLSL_VERSION_OVERRIDE=130 > > (Also, there's MESA_EXTENSION_OVERRIDE="+GL_ARB_texture_buffe

Re: [Mesa-dev] [PATCH 2/6] New unary opcodes for ARB_shader_bit_encoding support.

2012-04-30 Thread Eric Anholt
On Mon, 30 Apr 2012 22:57:02 +0200, Olivier Galibert wrote: > On Mon, Apr 30, 2012 at 01:40:44PM -0700, Kenneth Graunke wrote: > > Would you like to try and implement it in the i965 driver (FS - > > brw_fs_visitor.cpp and VS - brw_vec4_visitor.cpp)? If not, I'd be glad to. > > How do you activa

Re: [Mesa-dev] [PATCH 2/6] New unary opcodes for ARB_shader_bit_encoding support.

2012-04-30 Thread Olivier Galibert
On Mon, Apr 30, 2012 at 01:40:44PM -0700, Kenneth Graunke wrote: > Would you like to try and implement it in the i965 driver (FS - > brw_fs_visitor.cpp and VS - brw_vec4_visitor.cpp)? If not, I'd be glad to. How do you activate GLSL 1.3 with the i965 driver? OG. __

Re: [Mesa-dev] [PATCH 2/6] New unary opcodes for ARB_shader_bit_encoding support.

2012-04-30 Thread Kenneth Graunke
On 04/30/2012 04:19 AM, Olivier Galibert wrote: The opcodes are bf2u, bf2i, bi2f and bu2f, with "b" meaning bitwise conversions. Signed-off-by: Olivier Galibert I can't say I'm crazy about the names bf2u, bf2i, bi2f, and bu2f. It seems like something I could easily mistake for 'b2f', or migh

[Mesa-dev] [PATCH 2/6] New unary opcodes for ARB_shader_bit_encoding support.

2012-04-30 Thread Olivier Galibert
The opcodes are bf2u, bf2i, bi2f and bu2f, with "b" meaning bitwise conversions. Signed-off-by: Olivier Galibert --- src/glsl/builtins/ir/floatBitsToInt.ir | 21 +++ src/glsl/builtins/ir/floatBitsToUint.ir| 21 +++ src/glsl/builtins/ir/