i965: Factor out oword block read and write message control calculation.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 9 Dec 2016 03:58:25 +0000 (19:58 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Thu, 15 Dec 2016 00:50:26 +0000 (16:50 -0800)
commit7a6aadb76ff3f6ef73216b53b0dc5edda5bae978
tree633a25df0521cc28b6f42186eca774bba33cbb92
parentad38ba113491869ab0dffed937f7b3dd50e8a735
i965: Factor out oword block read and write message control calculation.

We'll need roughly the same logic in other places and it would be
annoying to duplicate it.  Instead factor it out into a function-like
macro that takes the number of dwords per block (which will prove more
convenient than taking the same value in owords or some other unit).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_eu_emit.c