Skip to content
Commit ac087eb4 authored by Lucas Stach's avatar Lucas Stach Committed by Emil Velikov
Browse files

renderonly: fix dumb BO allocation for non 32bpp formats



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.

Fixes: 848b49b2 ("gallium: add renderonly library")
CC: <mesa-stable@lists.freedesktop.org>
Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
Reviewed-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: default avatarDaniel Stone <daniels@collabora.com>
(cherry picked from commit 0c71a19f)
parent 6a7e3a15
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