i965/vec4: Add support for the MAC instruction

Graphics / Mesa 3D Graphics Library / Mesa - Juha-Pekka Heikkila [gmail.com] - 17 April 2014 00:46 UTC

This allows us to generate the MAC (multiply-accumulate) instruction, which can be used to implement some expressions in fewer instructions than doing a series of MUL and ADDs.

0974706 i965/vec4: Add support for the MAC instruction.
src/mesa/drivers/dri/i965/brw_eu.h | 1 +
src/mesa/drivers/dri/i965/brw_vec4_generator.cpp | 3 +++
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 1 +
3 files changed, 5 insertions(+)

Upstream: cgit.freedesktop.org


  • Share