glsl: lower double optional passes (v2)
authorDave Airlie <airlied@gmail.com>
Thu, 14 Aug 2014 10:21:46 +0000 (20:21 +1000)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 19 Feb 2015 05:28:35 +0000 (00:28 -0500)
commitfffbf371242b07ff157b88792ab65d82c785de78
tree8cf203814c837c16f15d7baf6c619f6ee983f01f
parente6354a2850d6735b857298ad206a97db0de47fd6
glsl: lower double optional passes (v2)

These lowering passes are optional for the backend to request, currently
the TGSI softpipe backend most likely the r600g backend would want to use
these passes as is. They aim to hit the gallium opcodes from the standard
rounding/truncation functions.

v2: also lower floor in mod_to_floor

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/glsl/ir_optimization.h
src/glsl/lower_instructions.cpp