[Mesa-dev] [PATCH] glsl: provide the option of using BFE for unpack builting lowering

2015-08-20 Thread Ilia Mirkin
This greatly improves generated code, especially for the snorm variants, since it is able to get rid of the lshift/rshift for sext, as well as replacing each shift + mask with a single op. Signed-off-by: Ilia Mirkin imir...@alum.mit.edu --- This actually slightly pessimizes nvc0 generated code

Re: [Mesa-dev] [PATCH] glsl: provide the option of using BFE for unpack builting lowering

2015-08-20 Thread Ilia Mirkin
On Thu, Aug 20, 2015 at 9:58 PM, Ilia Mirkin imir...@alum.mit.edu wrote: This greatly improves generated code, especially for the snorm variants, since it is able to get rid of the lshift/rshift for sext, as well as replacing each shift + mask with a single op. Signed-off-by: Ilia Mirkin