Skip to content
Snippets Groups Projects
Commit e6a53533 authored by Kristian Høgsberg's avatar Kristian Høgsberg
Browse files

i965: Flush the RC and TC before doing a fast clear resolve


The docs say "When performing a render target resolve, PIPE_CONTROL with end
of pipe sync must be delivered.", which doesn't actually tell us whether we
need to do it before or after.  Blorp did it before and after, and doing it
before certainly makes sense.  The resolve operation needs to read from the
MCS and if we don't flush the render cache it won't get up-to-date data.

On the other hand, doing it after should not be necessary, since we call
brw_render_cache_set_check_flush() after the resolve.

Fixes rendering corruption in kwin's cover switch effect and various steam
games.

Missing flush spotted by Ken.

Reviewed-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
Reviewed-by: default avatarChris Forbes <chrisf@ijw.co.nz>
Signed-off-by: default avatarKristian Høgsberg <krh@bitplanet.net>
parent 8791cfed
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment