From: Christoph Bumiller Date: Thu, 13 Oct 2011 12:25:44 +0000 (+0200) Subject: d3d1x: fix initial data upload for 3D textures X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b7851623ed665ffc1ace5f46570b990346372ce;p=mesa.git d3d1x: fix initial data upload for 3D textures --- 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; }