chrisforbes / mesa

chrisf's mesa hacks
2 stars 0 forks source link

Implement 2x MSAA hack for Gen6/7 #54

Open chrisforbes opened 10 years ago

chrisforbes commented 10 years ago

We can do a 2x MSAA mode via some hackery:

IMS perf impact depends a lot on cache behavior. If we avoid pulling in half the cache lines, we probably win big. Hardware prefetching might break us though.

UMS perf impact should be a clear win (layers 2/3 are never touched). CMS impact should be more of a win as triangle sizes get smaller.

chrisforbes commented 10 years ago

Note on CMS harm: we want full coverage to translate to a single live sample value in slot 0, plus MCS bits for all samples are in slot 0.

If we masked off two samples, then the hw has to keep whatever junk was there, so MCS bits are split even for fully covered pixels. This means we can't do the all-samples-in-slot0 optimization in the resolve.

chrisforbes commented 10 years ago

There are a few other wrinkles: