mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
radeonsi: don't mark non-dirty textures with CMASK as compressed
because the compression is skipped with non-dirty textures. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
566f2ed571
commit
bdd6449769
1 changed files with 3 additions and 2 deletions
|
|
@ -555,8 +555,9 @@ static void si_set_sampler_view(struct si_context *sctx,
|
|||
|
||||
static bool is_compressed_colortex(struct r600_texture *rtex)
|
||||
{
|
||||
return rtex->cmask.size || rtex->fmask.size ||
|
||||
(rtex->dcc_offset && rtex->dirty_level_mask);
|
||||
return rtex->fmask.size ||
|
||||
(rtex->dirty_level_mask &&
|
||||
(rtex->cmask.size || rtex->dcc_offset));
|
||||
}
|
||||
|
||||
static bool depth_needs_decompression(struct r600_texture *rtex,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue