From b5fcf0c8e07e666523b007fab1d0fc18c2c89241 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Sat, 28 Aug 2010 18:59:32 +1000 Subject: pb: add void * for flush ctx to mapping functions If the buffer we are attempting to map is referenced by the unsubmitted command stream for this context, we need to flush the command stream, however to do that we need to be able to access the context at the lowest level map function, currently we set the buffer in the toplevel map, but this racy between context. (we probably have a lot more issues than that.) I'll look into a proper solution as suggested by jrfonseca when I get some time. --- src/gallium/winsys/svga/drm/vmw_screen_svga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/winsys/svga') diff --git a/src/gallium/winsys/svga/drm/vmw_screen_svga.c b/src/gallium/winsys/svga/drm/vmw_screen_svga.c index 2b4e80f003..d96b2b9742 100644 --- a/src/gallium/winsys/svga/drm/vmw_screen_svga.c +++ b/src/gallium/winsys/svga/drm/vmw_screen_svga.c @@ -81,7 +81,7 @@ vmw_svga_winsys_buffer_map(struct svga_winsys_screen *sws, unsigned flags) { (void)sws; - return pb_map(vmw_pb_buffer(buf), flags); + return pb_map(vmw_pb_buffer(buf), flags, NULL); } -- cgit v1.2.3