i965/fs: Make an emit_discard_jump() function to reduce duplication.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 5 Mar 2015 23:48:39 +0000 (15:48 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 19 Mar 2015 23:14:51 +0000 (16:14 -0700)
commit8a0946f3b1522e5f91afe14c8c3b22ba6009ed04
treec89c3977f5e55eda937d9feb365453c986b7e1c0
parent09bfa326a90a0ec1ddce0dc971d7d4b429884266
i965/fs: Make an emit_discard_jump() function to reduce duplication.

This is already copied in two places, and I want to copy it to a third
place.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Carl Worth <cworth@cworth.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp