i965: Unify the two emit_pipe_control functions
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 13 Jun 2017 16:59:18 +0000 (09:59 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 14 Jun 2017 22:11:21 +0000 (15:11 -0700)
commitb771d9a136715fdf8ba0b478380e19b63f1e491b
tree841ea21d20b50a05521e32d0b107876c42cd4d9a
parenta8ea68bc930f212dddf78a4e2073bcbd698b9140
i965: Unify the two emit_pipe_control functions

These two functions contain almost identical logic except for one SNB
workaround required for render target cache flushes.  They may as well
call into the same code so we only have to handle the work-arounds in
one place.

Cc: "17.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_pipe_control.c