d3d1x: fix initial data upload for 3D textures
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Thu, 13 Oct 2011 12:25:44 +0000 (14:25 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 21 Oct 2011 21:00:37 +0000 (23:00 +0200)
src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h

index 899ccc7364b7c7cc1a453265f868517b1a62f0b6..cf8c564d88962a04d07a48f5ca7f9776ecec1b8c 100644 (file)
@@ -746,7 +746,7 @@ struct GalliumD3D11ScreenImpl : public GalliumD3D11Screen
                                        box.z = slice;
                                        box.width = u_minify(width, level);
                                        box.height = u_minify(height, level);
-                                       box.depth = 1;
+                                       box.depth = u_minify(depth, level);
                                        immediate_pipe->transfer_inline_write(immediate_pipe, resource, level, PIPE_TRANSFER_WRITE | PIPE_TRANSFER_DISCARD | PIPE_TRANSFER_UNSYNCHRONIZED, &box, initial_data->pSysMem, initial_data->SysMemPitch, initial_data->SysMemSlicePitch);
                                        ++initial_data;
                                }