mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
gallium/radeon: more use of vi_dcc_formats_are_incompatible()
Found by inspection. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
8860b39d94
commit
eba2abf54b
1 changed files with 1 additions and 2 deletions
|
|
@ -1910,8 +1910,7 @@ void vi_disable_dcc_if_incompatible_format(struct r600_common_context *rctx,
|
|||
{
|
||||
struct r600_texture *rtex = (struct r600_texture *)tex;
|
||||
|
||||
if (vi_dcc_enabled(rtex, level) &&
|
||||
!vi_dcc_formats_compatible(tex->format, view_format))
|
||||
if (vi_dcc_formats_are_incompatible(tex, level, view_format))
|
||||
if (!si_texture_disable_dcc(rctx, (struct r600_texture*)tex))
|
||||
rctx->decompress_dcc(&rctx->b, rtex);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue