summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine/surface9.c
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2016-10-22 12:00:40 +0200
committerAxel Davy <[email protected]>2016-10-24 21:56:44 +0200
commiteed605a473554575305e1bf10c3641761a85feb9 (patch)
tree9a40bab6de84dd14ff7d78145a1f33594573c762 /src/gallium/state_trackers/nine/surface9.c
parentfe7bb46134162c9a9a18832f1746991aa78121e8 (diff)
st/nine: Fix locking CubeTexture surfaces.
Only one face of Cubetextures was locked when in DEFAULT Pool. Fixes: https://github.com/iXit/Mesa-3D/issues/129 CC: "12.0 13.0" <[email protected]> Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/surface9.c')
-rw-r--r--src/gallium/state_trackers/nine/surface9.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/nine/surface9.c b/src/gallium/state_trackers/nine/surface9.c
index 1b00b96b933..2efdfd1b878 100644
--- a/src/gallium/state_trackers/nine/surface9.c
+++ b/src/gallium/state_trackers/nine/surface9.c
@@ -447,6 +447,7 @@ NineSurface9_LockRect( struct NineSurface9 *This,
} else {
u_box_origin_2d(This->desc.Width, This->desc.Height, &box);
}
+ box.z = This->layer;
user_warn(This->desc.Format == D3DFMT_NULL);