Module: Mesa
Branch: master
Commit: e0dbbf9987c6f75b8aeb38ac70fb906a3e0d9493
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e0dbbf9987c6f75b8aeb38ac70fb906a3e0d9493

Author: Eric Anholt <e...@anholt.net>
Date:   Mon Jul  9 17:51:37 2018 -0700

gallium/u_transfer_helper: Initialize the stride of MSAA maps.

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 <robdcl...@gmail.com>

---

 src/gallium/auxiliary/util/u_transfer_helper.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/auxiliary/util/u_transfer_helper.c 
b/src/gallium/auxiliary/util/u_transfer_helper.c
index fd8a5c3a08..df67f82885 100644
--- 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;
 }

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to