diff options
author | Christoph Bumiller <[email protected]> | 2011-10-13 14:25:44 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2011-10-21 23:00:37 +0200 |
commit | 4b7851623ed665ffc1ace5f46570b990346372ce (patch) | |
tree | 5e2b1573aa3d5d51e9c38571b534a4d22f8546cd | |
parent | dac5baf2e4702fabe627adc5b30e537560e8980d (diff) |
d3d1x: fix initial data upload for 3D textures
-rw-r--r-- | src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |