summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/d3d1x
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2011-10-13 14:25:44 +0200
committerChristoph Bumiller <[email protected]>2011-10-21 23:00:37 +0200
commit4b7851623ed665ffc1ace5f46570b990346372ce (patch)
tree5e2b1573aa3d5d51e9c38571b534a4d22f8546cd /src/gallium/state_trackers/d3d1x
parentdac5baf2e4702fabe627adc5b30e537560e8980d (diff)
d3d1x: fix initial data upload for 3D textures
Diffstat (limited to 'src/gallium/state_trackers/d3d1x')
-rw-r--r--src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h2
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;
}