i965/vec4: Return the last emitted instruction in emit_math()
authorAntia Puentes <apuentes@igalia.com>
Tue, 16 Jun 2015 22:04:09 +0000 (00:04 +0200)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 3 Aug 2015 16:40:48 +0000 (09:40 -0700)
commit068a41b349e8bc30293c44d96553184f7562949f
tree81c91e79bdd67358ed585f9c604460e4d76ee21d
parent9acebf146184c35e6897b91fff414c5295d47996
i965/vec4: Return the last emitted instruction in emit_math()

Needed in the NIR backend to set the "saturate" value of the
instruction.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp