mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
d3d1x: fix initial data upload for 3D textures
This commit is contained in:
parent
dac5baf2e4
commit
4b7851623e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue