[Mesa-dev] [PATCH 0/2] i965: Simulate MAD opcode with gen<6

Juha-Pekka Heikkila juhapekka.heikkila at gmail.com
Tue May 6 03:53:57 PDT 2014


These patches allow MAD opcode to be used with pre gen6 hardware.
Instead of failing on emitting MAD there will be emitted MUL and ADD 
to simulate MAD.

I tried this with piglit on ILK (gen5) and did not see regression.

Juha-Pekka Heikkila (2):
  i965/fs: Simulate MAD opcode with gen<6
  i965/vec4: Simulate MAD opcode for gen<6

 src/mesa/drivers/dri/i965/brw_fs_visitor.cpp   | 15 ++++++----
 src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 41 ++++++++++++++++++--------
 2 files changed, 39 insertions(+), 17 deletions(-)

-- 
1.8.1.2



More information about the mesa-dev mailing list