Re: [Mesa-dev] [PATCH 05/16] i965: Fix bitcast operations with negate

2014-12-15 Thread Iago Toral
On Fri, 2014-12-12 at 09:36 -0800, Matt Turner wrote: > On Thu, Dec 11, 2014 at 2:34 PM, Eduardo Lima Mitev wrote: > > From: Iago Toral Quiroga > > > > For code such as this in a vertex or fragment shader: > > > > uniform float in0; > > flat out float out0; > > ... > > out0 = ceil(in0) > > > > We

Re: [Mesa-dev] [PATCH 05/16] i965: Fix bitcast operations with negate

2014-12-12 Thread Matt Turner
On Thu, Dec 11, 2014 at 2:34 PM, Eduardo Lima Mitev wrote: > From: Iago Toral Quiroga > > For code such as this in a vertex or fragment shader: > > uniform float in0; > flat out float out0; > ... > out0 = ceil(in0) > > We generate this IR: > > (assign (x) (var_ref packed:out0) >(expression i

Re: [Mesa-dev] [PATCH 05/16] i965: Fix bitcast operations with negate

2014-12-11 Thread Iago Toral
On Thu, 2014-12-11 at 16:52 -0800, Kenneth Graunke wrote: > On Thursday, December 11, 2014 11:34:11 PM Eduardo Lima Mitev wrote: > > From: Iago Toral Quiroga > > > > For code such as this in a vertex or fragment shader: > > > > uniform float in0; > > flat out float out0; > > ... > > out0 = ceil(

Re: [Mesa-dev] [PATCH 05/16] i965: Fix bitcast operations with negate

2014-12-11 Thread Kenneth Graunke
On Thursday, December 11, 2014 11:34:11 PM Eduardo Lima Mitev wrote: > From: Iago Toral Quiroga > > For code such as this in a vertex or fragment shader: > > uniform float in0; > flat out float out0; > ... > out0 = ceil(in0) > > We generate this IR: > > (assign (x) (var_ref packed:out0) >

[Mesa-dev] [PATCH 05/16] i965: Fix bitcast operations with negate

2014-12-11 Thread Eduardo Lima Mitev
From: Iago Toral Quiroga For code such as this in a vertex or fragment shader: uniform float in0; flat out float out0; ... out0 = ceil(in0) We generate this IR: (assign (x) (var_ref packed:out0) (expression int bitcast_f2i (expression float ceil (var_ref in0) ) ) ) In i965, this wo