From 4b7851623ed665ffc1ace5f46570b990346372ce Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Thu, 13 Oct 2011 14:25:44 +0200 Subject: [PATCH] d3d1x: fix initial data upload for 3D textures --- src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h index 899ccc7364b..cf8c564d889 100644 --- a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h +++ b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h @@ -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; } -- 2.30.2