OSDN Git Service

st/nine: Fix mistake in Volume9 UnlockBox
authorAxel Davy <axel.davy@ens.fr>
Sat, 22 Oct 2016 09:59:11 +0000 (11:59 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 27 Oct 2016 10:02:45 +0000 (11:02 +0100)
In the format fallback path,
the height was used instead of the depth.

CC: "12.0 13.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
(cherry picked from commit fe7bb46134162c9a9a18832f1746991aa78121e8)

src/gallium/state_trackers/nine/volume9.c

index e2201af..8e8bd68 100644 (file)
@@ -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);