mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
radeonsi: always calculate DCC info even if it's not used immediately
for a later use Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
ebb9c7d7c4
commit
fa7c927625
2 changed files with 2 additions and 2 deletions
|
|
@ -1040,7 +1040,8 @@ r600_texture_create_object(struct pipe_screen *screen,
|
|||
* apply_opaque_metadata later.
|
||||
*/
|
||||
if (rtex->surface.dcc_size &&
|
||||
(buf || !(rscreen->debug_flags & DBG_NO_DCC))) {
|
||||
(buf || !(rscreen->debug_flags & DBG_NO_DCC)) &&
|
||||
!(rtex->surface.flags & RADEON_SURF_SCANOUT)) {
|
||||
/* Reserve space for the DCC buffer. */
|
||||
rtex->dcc_offset = align64(rtex->size, rtex->surface.dcc_alignment);
|
||||
rtex->size = rtex->dcc_offset + rtex->surface.dcc_size;
|
||||
|
|
|
|||
|
|
@ -365,7 +365,6 @@ static int amdgpu_surface_init(struct radeon_winsys *rws,
|
|||
* driver team).
|
||||
*/
|
||||
AddrSurfInfoIn.flags.dccCompatible = !(surf->flags & RADEON_SURF_Z_OR_SBUFFER) &&
|
||||
!(surf->flags & RADEON_SURF_SCANOUT) &&
|
||||
!(surf->flags & RADEON_SURF_DISABLE_DCC) &&
|
||||
!compressed && AddrDccIn.numSamples <= 1 &&
|
||||
((surf->array_size == 1 && surf->npix_z == 1) ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue