projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf3c42f
)
asahi: Use dt_stride for line_stride where needed
author
Alyssa Rosenzweig
<alyssa@rosenzweig.io>
Sun, 30 May 2021 21:45:10 +0000
(
03:15
+0530)
committer
Marge Bot
<eric+marge@anholt.net>
Tue, 1 Jun 2021 01:31:02 +0000
(
01:31
+0000)
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11086>
src/gallium/drivers/asahi/agx_pipe.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/asahi/agx_pipe.c
b/src/gallium/drivers/asahi/agx_pipe.c
index
fb3b9e5
..
fa76af1
100644
(file)
--- a/
src/gallium/drivers/asahi/agx_pipe.c
+++ b/
src/gallium/drivers/asahi/agx_pipe.c
@@
-199,6
+199,9
@@
agx_resource_create(struct pipe_screen *screen,
NULL /*map_front_private*/,
&nresource->dt_stride);
+ nresource->slices[0].line_stride = nresource->dt_stride;
+ assert((nresource->dt_stride & 0xF) == 0);
+
if (nresource->dt == NULL) {
agx_bo_unreference(nresource->bo);
FREE(nresource);