intel: Don't mark front buffer dirty if we're only reading
authorKristian Høgsberg <krh@bitplanet.net>
Mon, 10 May 2010 20:01:38 +0000 (16:01 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 10 May 2010 21:48:11 +0000 (17:48 -0400)
commitd8cfdbe894be8691242df4e812601320fbf6c5e7
treeffa4f5641571086fdafd9bcfa81ebc86612caf59
parent32942d2b1c80d3f16048d6acfedf7dbcf5e2f8cb
intel: Don't mark front buffer dirty if we're only reading

When we call intel_prepare_render() from intelReadPixels(), we'll mark
the front buffer dirty.  That's silly, since we're only reading from it
and marking it dirty will cause us to copy from fake front to front
eventually.

Just clear the dirty flag after doing the read.
src/mesa/drivers/dri/intel/intel_pixel_read.c