Reviewed-by: Bas Nieuwenhuizen <b...@basnieuwenhuizen.nl> Tested-by: Bas Nieuwenhuizen <b...@basnieuwenhuizen.nl>
(Checked that Weston on SIENNA_CICHLID now gets DCC) Thanks! On Thu, Apr 15, 2021 at 7:35 PM Qingqing Zhuo <qingqing.z...@amd.com> wrote: > [Why] > Current list supports modifiers that have DCC_MAX_COMPRESSED_BLOCK > set to AMD_FMT_MOD_DCC_BLOCK_128B, while AMD_FMT_MOD_DCC_BLOCK_64B > is used instead by userspace. > > [How] > Replace AMD_FMT_MOD_DCC_BLOCK_128B with AMD_FMT_MOD_DCC_BLOCK_64B > for modifiers with DCC supported. > > Fixes: 91e54fd70c6a ("drm/amd/display: Expose modifiers") > Signed-off-by: Qingqing Zhuo <qingqing.z...@amd.com> > --- > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > index e29cb2e956db..9fded25d2363 100644 > --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > @@ -4544,7 +4544,7 @@ add_gfx10_3_modifiers(const struct amdgpu_device > *adev, > AMD_FMT_MOD_SET(DCC_CONSTANT_ENCODE, 1) | > AMD_FMT_MOD_SET(DCC_INDEPENDENT_64B, 1) | > AMD_FMT_MOD_SET(DCC_INDEPENDENT_128B, 1) | > - AMD_FMT_MOD_SET(DCC_MAX_COMPRESSED_BLOCK, > AMD_FMT_MOD_DCC_BLOCK_128B)); > + AMD_FMT_MOD_SET(DCC_MAX_COMPRESSED_BLOCK, > AMD_FMT_MOD_DCC_BLOCK_64B)); > > add_modifier(mods, size, capacity, AMD_FMT_MOD | > AMD_FMT_MOD_SET(TILE, AMD_FMT_MOD_TILE_GFX9_64K_R_X) | > @@ -4556,7 +4556,7 @@ add_gfx10_3_modifiers(const struct amdgpu_device > *adev, > AMD_FMT_MOD_SET(DCC_CONSTANT_ENCODE, 1) | > AMD_FMT_MOD_SET(DCC_INDEPENDENT_64B, 1) | > AMD_FMT_MOD_SET(DCC_INDEPENDENT_128B, 1) | > - AMD_FMT_MOD_SET(DCC_MAX_COMPRESSED_BLOCK, > AMD_FMT_MOD_DCC_BLOCK_128B)); > + AMD_FMT_MOD_SET(DCC_MAX_COMPRESSED_BLOCK, > AMD_FMT_MOD_DCC_BLOCK_64B)); > > add_modifier(mods, size, capacity, AMD_FMT_MOD | > AMD_FMT_MOD_SET(TILE, AMD_FMT_MOD_TILE_GFX9_64K_R_X) | > -- > 2.17.1 > >
_______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx