projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
589bb5b
)
gallium/u_transfer_helper: Initialize the stride of MSAA maps.
author
Eric Anholt
<eric@anholt.net>
Tue, 10 Jul 2018 00:51:37 +0000
(17:51 -0700)
committer
Eric Anholt
<eric@anholt.net>
Thu, 12 Jul 2018 18:31:06 +0000
(11:31 -0700)
We just never set the value that was returned for MSAA mappings (directly
reading back an MSAA framebuffer). Since we're handing back ss_map, it
should be ss_map's stride from our nested transfer.
Fixes piglit /home/anholt/src/piglit/bin/fbo-depthstencil -samples=4
cases.
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/gallium/auxiliary/util/u_transfer_helper.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_transfer_helper.c
b/src/gallium/auxiliary/util/u_transfer_helper.c
index fd8a5c3a08955cf47921e7615c4d108ddc1dc2d7..df67f8288523a4cc183682d010d7f2024cb417db 100644
(file)
--- a/
src/gallium/auxiliary/util/u_transfer_helper.c
+++ b/
src/gallium/auxiliary/util/u_transfer_helper.c
@@
-218,6
+218,7
@@
transfer_map_msaa(struct pipe_context *pctx,
return NULL;
}
+ ptrans->stride = trans->trans->stride;
*pptrans = ptrans;
return ss_map;
}