i965: Clarify check for which cache to use on Gen6 data port reads.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 8 Oct 2011 04:45:34 +0000 (21:45 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 18 Oct 2011 22:57:55 +0000 (15:57 -0700)
commitbbea5c5a5a7fb327d4ef03f80fe19cfa8d8edccd
treee2f991a73a65f2093e1a58b5a57dd5768e6a5a3b
parent0d4a9ba9b247664bc5662b3db774064778f9aa17
i965: Clarify check for which cache to use on Gen6 data port reads.

Currently, we use the Render Cache for scratch access (read/write data)
and the Sampler Cache for all read only data (pull constants).

Reversing the condition here is clearer: if the caller requested the
Render Cache, use that.  Otherwise, they requested the Data Cache
(which does not exist on Gen6) or Sampler Cache, so use the Sampler
Cache.

This should not change behavior in any way.

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