Mesa (master): freedreno: align renderonly scanout buffers
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Aug 2 16:29:47 UTC 2019
Module: Mesa
Branch: master
Commit: e25388c97b67f626aa8135e84282312128d90f78
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e25388c97b67f626aa8135e84282312128d90f78
Author: Jonathan Marek <jonathan at marek.ca>
Date: Thu Aug 1 12:42:33 2019 -0400
freedreno: align renderonly scanout buffers
Signed-off-by: Jonathan Marek <jonathan at marek.ca>
Reviewed-by: Rob Clark <robdclark at chromium.org>
---
src/gallium/drivers/freedreno/freedreno_resource.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c
index 3c411f5bc15..4d188c24d64 100644
--- a/src/gallium/drivers/freedreno/freedreno_resource.c
+++ b/src/gallium/drivers/freedreno/freedreno_resource.c
@@ -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)
More information about the mesa-commit
mailing list