[Mesa-dev] [PATCH] i965/nir: Resolve source modifiers on Gen8+ logic operations.

Pohjolainen, Topi topi.pohjolainen at intel.com
Fri Mar 6 02:35:52 PST 2015


On Fri, Mar 06, 2015 at 01:33:05AM -0800, Kenneth Graunke wrote:
> On Gen8+, AND/OR/XOR/NOT don't support the abs() source modifier, and
> negate changes meaning to bitwise-not (~, not -).  This isn't what NIR
> expects, so we should resolve the source modifers via a MOV.
> 
> +30 Piglits (fs-op-bit{and,or,xor}-not-abs-*).
> 
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> ---
>  src/mesa/drivers/dri/i965/brw_fs.cpp     | 11 +++++++++++
>  src/mesa/drivers/dri/i965/brw_fs.h       |  1 +
>  src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 15 +++++++++++++++
>  3 files changed, 27 insertions(+)

Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>


More information about the mesa-dev mailing list