summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2016-12-13 01:16:21 +0100
committerAxel Davy <[email protected]>2016-12-20 23:47:08 +0100
commit0ec4e5f630ed68ece3f176b174cfd66eff023904 (patch)
tree6e7dfcb766be3aaed1386ea473afff26d88e45f3 /src/gallium
parentbad7f7cc638391acc93f070fce3e1b7035dc48f8 (diff)
st/nine: Dirty MANAGED buffers at Lock time
Tests suggest MANAGED buffers are made dirty at Lock time, not at Unlock time. Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/nine/buffer9.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/nine/buffer9.c b/src/gallium/state_trackers/nine/buffer9.c
index b22713b3517..ca4e4380277 100644
--- a/src/gallium/state_trackers/nine/buffer9.c
+++ b/src/gallium/state_trackers/nine/buffer9.c
@@ -244,6 +244,9 @@ NineBuffer9_Lock( struct NineBuffer9 *This,
nine_csmt_process(This->base.base.device);
} else
u_box_union_2d(&This->managed.dirty_box, &This->managed.dirty_box, &box);
+ /* Tests trying to draw while the buffer is locked show that
+ * MANAGED buffers are made dirty at Lock time */
+ BASEBUF_REGISTER_UPDATE(This);
}
*ppbData = (char *)This->managed.data + OffsetToLock;
DBG("returning pointer %p\n", *ppbData);
@@ -412,8 +415,6 @@ NineBuffer9_Unlock( struct NineBuffer9 *This )
nine_context_get_pipe_release(device);
} else if (This->maps[This->nmaps].should_destroy_buf)
nine_upload_release_buffer(device->buffer_upload, This->maps[This->nmaps].buf);
- } else {
- BASEBUF_REGISTER_UPDATE(This);
}
return D3D_OK;
}