summaryrefslogtreecommitdiffstats
path: root/src/mapi/table.c
diff options
context:
space:
mode:
authorGrigori Goronzy <[email protected]>2013-06-12 00:04:01 +0200
committerMarek Olšák <[email protected]>2013-07-01 03:02:43 +0200
commit30004b20c2ae5ee78619f441b01afef0d4d992f0 (patch)
treea0c2f26db57707a29fe287c470f61433cb59b09a /src/mapi/table.c
parentb1693194eee7e99ef8abb6c8319834bd93879400 (diff)
r600g: implement fast color clears for MSAA on evergreen+
Allows MSAA colorbuffers, which have a CMASK automatically and don't need any further special handling, to be fast cleared. Instead of clearing the buffer, set the clear color and the CMASK to the cleared state. Fast clear is used only when all bound colorbuffers fulfill certain conditions: a CMASK is required, we have to be able to create a clear color value for the format and the texture mustn't contain multiple images. Technically, it should be possible to support array textures and cubemaps if all images are attached to the framebuffer, but this does not appear to be common. v2: fix fast clear check v3: Marek: - disable fast clear with 128-bit formats, which are unsupported - set tex->dirty_level_mask in r600_clear, so that the driver knows the resource must be decompressed/expanded - return early from r600_clear if there's nothing else to do Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mapi/table.c')
0 files changed, 0 insertions, 0 deletions