gallium/radeon: allow multiple exports of the same texture with different usage
authorMarek Olšák <marek.olsak@amd.com>
Mon, 28 Mar 2016 23:36:40 +0000 (01:36 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 5 Apr 2016 13:32:40 +0000 (15:32 +0200)
commita64dbdf612805daff0bbc70bba26053bd226ae70
tree7f65ac2dc031ccd81c1174caf4799d0ee019a490
parent25f96d2b9766afa61a518667268e3134f43451e2
gallium/radeon: allow multiple exports of the same texture with different usage

Instead of failing an assertion, disable DCC and CMASK on the first export
that needs it, and merge the external usage flags.

v2: clear the EXPLICIT_FLUSH flag if it's not set; whitespace fixes

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeon/r600_texture.c