[Mesa-dev] [PATCH 05/16] i965: Fix bitcast operations with negate
Kenneth Graunke
kenneth at whitecape.org
Thu Dec 11 16:52:00 PST 2014
On Thursday, December 11, 2014 11:34:11 PM Eduardo Lima Mitev wrote:
> From: Iago Toral Quiroga <itoral at igalia.com>
>
> 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 would eventually become:
>
> rndd(8) g14<1>.xF -g3<0,4,1>.xF
> mov(8) g6<1>.xD -g14<4,4,1>.xD
> mov(8) g116<1>D g6<4,4,1>D
Weird...it does indeed use RNDD. Shouldn't it use RNDU instead?
--Ken
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20141211/4072c628/attachment.sig>
More information about the mesa-dev
mailing list