i965/eu: Take into account the target cache argument in brw_set_dp_read_message.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 22 Jul 2016 01:49:36 +0000 (18:49 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 26 Aug 2016 01:36:08 +0000 (18:36 -0700)
commit29eb8059fd7906d2595ea99bc65a27691b9fbe53
treee01aabb5ca9931c5bff9460b413d838f0260f834
parent8a2f19a7772c80fcac85d6bdfa8e588d6cea1beb
i965/eu: Take into account the target cache argument in brw_set_dp_read_message.

brw_set_dp_read_message() was setting the data cache as send message
SFID on Gen7+ hardware, ignoring the target cache specified by the
caller.  Some of the callers were passing a bogus target cache value
as argument relying on brw_set_dp_read_message not to take it into
account.  Fix them too.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_eu_emit.c
src/mesa/drivers/dri/i965/brw_vec4_generator.cpp