summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_screen.h
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2010-07-13 19:58:58 +0200
committerRoland Scheidegger <sroland@vmware.com>2010-07-13 19:58:58 +0200
commitedac740095fb2514b512034b334947f72648cd51 (patch)
tree48dc86b5bfd49bfdcc5343755c3f970eb5f6a847 /src/gallium/drivers/llvmpipe/lp_screen.h
parent962da13ba30d66bd8b9a28ba5f06c66ceec1ce92 (diff)
llvmpipe: move rasterizer to screen instead of setup context
there's no point of having this per context, so move to screen (and protect with a mutex).
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_screen.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_screen.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.h b/src/gallium/drivers/llvmpipe/lp_screen.h
index eb40f6823f..731526dfab 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.h
+++ b/src/gallium/drivers/llvmpipe/lp_screen.h
@@ -37,6 +37,7 @@
#include "gallivm/lp_bld.h"
#include <llvm-c/ExecutionEngine.h>
+#include "os/os_thread.h"
#include "pipe/p_screen.h"
#include "pipe/p_defines.h"
@@ -63,6 +64,9 @@ struct llvmpipe_screen
/* Increments whenever textures are modified. Contexts can track this.
*/
unsigned timestamp;
+
+ struct lp_rasterizer *rast;
+ pipe_mutex rast_mutex;
};