OSDN Git Service

i965: Delete "the data cache is the sampler cache" comments on Gen7+.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 10 Jul 2013 20:22:00 +0000 (13:22 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 16 Jul 2013 02:40:52 +0000 (19:40 -0700)
commit43ea4342257d9d2c57eb379a6326258100c2156b
treebfed3b39f4532627d5215ec26a24c34e8b713f26
parent3f64cfabfc0bae7f5dba9d541680edcc6b745cea
i965: Delete "the data cache is the sampler cache" comments on Gen7+.

I cut and pasted these comments from the Gen4 code during Ivybridge
enabling, and didn't understand what they meant at the time.

The data cache is NOT the same as the sampler cache on Ivybridge.
The sampler cache has L1 and L2 caches in addition to the L3 cache,
while data port messages to the "data cache" hit L3 directly.

This means that the sampler domain is technically wrong, but we stopped
caring about read/write domains quite a while ago.  The kernel just
flushes all the caches at the end of each batchbuffer, and our render to
texture code flushes the sampler caches when necessary.

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