radeon/r200: fix bogus clears
authorRoland Scheidegger <sroland@vmware.com>
Fri, 27 Jul 2012 01:43:11 +0000 (03:43 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 1 Aug 2012 12:58:23 +0000 (14:58 +0200)
commitde694b6b10b7ce23a00cd7296a955f162704ee62
treed21f7bb70b753491ab4fea0eb310ce304cd0dfc2
parent5b88a2a22daae4d09596804d8edc6b8796d05150
radeon/r200: fix bogus clears

There were several problems with these functions (which are a remnant
of dri1 hyperz mostly - should bring it back somehow someday).
First, it would always do a swrast clear if the buffer to clear was a fbo.
Second, for buffers we wouldn't handle the clear (I guess aux/accum?) we
would actually still have tried to clear that later even when we already
cleared it with swrast.
src/mesa/drivers/dri/r200/r200_ioctl.c
src/mesa/drivers/dri/radeon/radeon_ioctl.c