Skip to content
Commit be690332 authored by Kevin Strasser's avatar Kevin Strasser Committed by Juan A. Suarez Romero
Browse files

gallium/winsys/kms: Fix dumb buffer bpp



The bpp in the dumb buffer creation request is hardcoded to 32, which is an
incorrect assumption as the caller is free to pick any pipe format. Use the
bpp supplied to us through util_format_get_blocksizebits().

Fixes: 3b176c44 "gallium: Add a dumb drm/kms winsys backed swrast provider"
Signed-off-by: default avatarKevin Strasser <kevin.strasser@intel.com>
Reviewed-by: default avatarAdam Jackson <ajax@redhat.com>
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
Reviewed-by: default avatarEmil Velikov <emil.velikov@collabora.com>
Reviewed-by: default avatarEric Engestrom <eric.engestrom@intel.com>
(cherry picked from commit ec0a68e5)
parent 582b6910
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment