[Mesa-dev] [PATCH] renderonly: fix dumb BO allocation for non 32bpp formats

Lucas Stach l.stach at pengutronix.de
Thu Feb 1 18:40:37 UTC 2018


Am Mittwoch, den 31.01.2018, 11:37 +0000 schrieb Daniel Stone:
> On 30 January 2018 at 14:22, Lucas Stach <l.stach at pengutronix.de>
> wrote:
> > Take into account the resource format, instead of applying a
> > hardcoded
> > 32bpp. This not only over-allocates 16bpp formats, but also results
> > in
> > a wrong stride being filled into the handle.
> 
> Bikeshed: just use util_format_getblocksizebits()? getblocksize()
> internally just divides getblocksizebits by 8, so this is redundant.
> WIth that:
> Reviewed-by: Daniel Stone <daniels at collabora.com>

Thanks. Changed and pushed out with stable tag.

Regards,
Lucas


More information about the mesa-dev mailing list