diff options
author | Grigori Goronzy <[email protected]> | 2013-06-12 00:04:01 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-07-01 03:02:43 +0200 |
commit | 30004b20c2ae5ee78619f441b01afef0d4d992f0 (patch) | |
tree | a0c2f26db57707a29fe287c470f61433cb59b09a /src/gallium/drivers/r300/Makefile.am | |
parent | b1693194eee7e99ef8abb6c8319834bd93879400 (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/gallium/drivers/r300/Makefile.am')
0 files changed, 0 insertions, 0 deletions