Commit ec0a68e5 authored by Kevin Strasser's avatar Kevin Strasser
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: Kevin Strasser's avatarKevin Strasser <kevin.strasser@intel.com>
Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
Reviewed-by: Emil Velikov's avatarEmil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@intel.com>
parent 9996ddbb
Pipeline #42185 passed with stages
in 12 minutes and 53 seconds