i965/nir: Add utility method for comparisons
authorAntia Puentes <apuentes@igalia.com>
Fri, 17 Apr 2015 15:58:35 +0000 (17:58 +0200)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 3 Aug 2015 16:40:49 +0000 (09:40 -0700)
commitb9c41affcf67f30d7f6c74c17ea34bc42756d56d
tree88a29ec234ae2beb2d7c3cc19046eb0ab74d5467
parentdae6025e8efdfb759458a3243c8cd1588f485135
i965/nir: Add utility method for comparisons

This method returns the brw_conditional_mod value used when emitting
comparative ALU operations.

It could be moved to brw_nir in the future to reuse it in fs_nir backend.

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