diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2022-07-08 20:20:52 +0200 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2022-07-09 15:08:16 +0200 |
commit | 0a2486f85e0cfa6439116abb9078ab888a619746 (patch) | |
tree | df47e72a5a31a96ce0e032144d596ff3f2b7955b /drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | |
parent | ba71593217b5b03c9e3385b268ff8613a71fc6ce (diff) |
drm/gem-fb-helper: Use actual bpp for size calculations
The AFBC helpers derive the number of bits per pixel from the deprecated
drm_format_info.cpp[] field, which does not take into account block
sizes.
Fix this by using the actual number of bits per pixel instead.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/b1d938d903157627c4ac101df92a1f3bf8ebe83d.1657294931.git.geert@linux-m68k.org
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c')
0 files changed, 0 insertions, 0 deletions