[Mesa-dev] [PATCH 1/2] glsl: add lowering passes for carry/borrow
Chris Forbes
chrisf at ijw.co.nz
Mon Apr 28 20:49:48 PDT 2014
On Tue, Apr 29, 2014 at 3:17 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> @@ -91,6 +92,10 @@
> * Breaks ir_quadop_bitfield_insert into ir_binop_bfm (bitfield mask) and
> * ir_triop_bfi (bitfield insert).
> *
> + * CARRY_TO_ARITH:
> + * ---------------
> + * Converts ir_carry and ir_borrow into (x + y) > x and (x < y)
> + *
> * Many GPUs implement the bitfieldInsert() built-in from ARB_gpu_shader_5
> * with a pair of instructions.
This should be a few lines later, rather than in the middle of the
description of BITFIELD_INSERT_TO_BFM_BFI :)
More information about the mesa-dev
mailing list