intel/fs,vec4: Properly account SENDs in IVB memory fence
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 3 Jan 2020 18:05:39 +0000 (10:05 -0800)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Mon, 20 Apr 2020 16:29:09 +0000 (09:29 -0700)
commitc76f2292b556502018ecc591f3388516c8ded469
treef68baa6d237aebdf9d3751c04f3c1386ffdef31c
parentc3c1f4d6bcc210408f8b180727d269838b38193b
intel/fs,vec4: Properly account SENDs in IVB memory fence

Change brw_memory_fence to return the number of messages emitted, and
use that to update the send_count statistic in code generation.

This will fix the book-keeping for IVB since the memory fences will
result in two SEND messages.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4646>
src/intel/compiler/brw_eu.h
src/intel/compiler/brw_eu_emit.c
src/intel/compiler/brw_fs_generator.cpp
src/intel/compiler/brw_vec4_generator.cpp