Mesa (master): st/nine: Fix mistake in Volume9 UnlockBox

Axel Davy axeldavy at kemper.freedesktop.org
Mon Oct 24 19:57:27 UTC 2016


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

Author: Axel Davy <axel.davy at ens.fr>
Date:   Sat Oct 22 11:59:11 2016 +0200

st/nine: Fix mistake in Volume9 UnlockBox

In the format fallback path,
the height was used instead of the depth.

CC: "12.0 13.0" <mesa-stable at lists.freedesktop.org>

Signed-off-by: Axel Davy <axel.davy at ens.fr>

---

 src/gallium/state_trackers/nine/volume9.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/state_trackers/nine/volume9.c b/src/gallium/state_trackers/nine/volume9.c
index 89565f2..a31dc0a 100644
--- a/src/gallium/state_trackers/nine/volume9.c
+++ b/src/gallium/state_trackers/nine/volume9.c
@@ -373,7 +373,7 @@ NineVolume9_UnlockBox( struct NineVolume9 *This )
                                         This->layer_stride_conversion,
                                         0, 0, 0,
                                         This->desc.Width, This->desc.Height,
-                                        This->desc.Height);
+                                        This->desc.Depth);
 
         if (!This->data)
             pipe_transfer_unmap(This->pipe, transfer);




More information about the mesa-commit mailing list