aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/intel/intel_screen.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2008-09-04 22:16:31 +0100
committerEric Anholt <[email protected]>2008-09-10 13:59:45 -0700
commit7e0bbdcf033981282978554c2e68ce48b55aa291 (patch)
treed604788e8770df7d2bc2853473e18045a9a74cdf /src/mesa/drivers/dri/intel/intel_screen.h
parent11d694b1bb0cb384d802d7e0e252cf5119febb98 (diff)
intel: Move the bufmgr back to the screen.
Mesa requires that we be able to share objects between contexts, which means that the objects need to be created by the same bufmgr, and the bufmgr internally requires pthread protection for thread safety. Rely on the bufmgr having appropriate locking.
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_screen.h')
-rw-r--r--src/mesa/drivers/dri/intel/intel_screen.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_screen.h b/src/mesa/drivers/dri/intel/intel_screen.h
index 9a73b139517..299da872100 100644
--- a/src/mesa/drivers/dri/intel/intel_screen.h
+++ b/src/mesa/drivers/dri/intel/intel_screen.h
@@ -30,6 +30,7 @@
#include <sys/time.h>
#include "dri_util.h"
+#include "dri_bufmgr.h"
#include "i915_drm.h"
#include "xmlconfig.h"
@@ -74,7 +75,10 @@ typedef struct
int irq_active;
int allow_batchbuffer;
+ GLboolean no_hw;
+
int ttm;
+ dri_bufmgr *bufmgr;
/**
* Configuration cache with default values for all contexts