mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
freedreno: align renderonly scanout buffers
Signed-off-by: Jonathan Marek <jonathan@marek.ca> Reviewed-by: Rob Clark <robdclark@chromium.org>
This commit is contained in:
parent
6125c93e00
commit
e25388c97b
1 changed files with 3 additions and 0 deletions
|
|
@ -918,6 +918,9 @@ fd_resource_create_with_modifiers(struct pipe_screen *pscreen,
|
|||
struct renderonly_scanout *scanout;
|
||||
struct winsys_handle handle;
|
||||
|
||||
/* apply freedreno alignment requirement */
|
||||
scanout_templat.width0 = align(tmpl->width0, screen->gmem_alignw);
|
||||
|
||||
scanout = renderonly_scanout_for_resource(&scanout_templat,
|
||||
screen->ro, &handle);
|
||||
if (!scanout)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue