Skip to content

gallium/winsys/kms: Fix dumb buffer bpp

Kevin Strasser requested to merge strassek/mesa:fix_dumb_buffer_bpp into master

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 kevin.strasser@intel.com Reviewed-by: Adam Jackson ajax@redhat.com Reviewed-by: Marek Olšák marek.olsak@amd.com

Edited by Kevin Strasser

Merge request reports

Loading