aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2022-07-08 20:20:49 +0200
committerSam Ravnborg <sam@ravnborg.org>2022-07-09 15:01:20 +0200
commit4c59b0805e9bf873fd3f5dca4fc53d8c220e39b4 (patch)
tree8b645c575991a66c7234e08b58e0d059b8af4950 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parent356d2c8e76ebb1134a0685ce4b923d8201337475 (diff)
downloadlinux-4c59b0805e9bf873fd3f5dca4fc53d8c220e39b4.tar.gz
linux-4c59b0805e9bf873fd3f5dca4fc53d8c220e39b4.tar.bz2
linux-4c59b0805e9bf873fd3f5dca4fc53d8c220e39b4.zip
drm/framebuffer: Use actual bpp for DRM_IOCTL_MODE_GETFB
When userspace queries the properties of a frame buffer, the number of bits per pixel is derived 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/b612780feef200b7f914a674db28ed227e7cdc64.1657294931.git.geert@linux-m68k.org
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions