r600g: move user fence into base radeon structure
This avoid any issue when context is free and we still try to
access fence through radeon structure.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
diff --git a/src/gallium/winsys/r600/drm/r600_priv.h b/src/gallium/winsys/r600/drm/r600_priv.h
index 056d025..a38a648 100644
--- a/src/gallium/winsys/r600/drm/r600_priv.h
+++ b/src/gallium/winsys/r600/drm/r600_priv.h
@@ -36,6 +36,7 @@
#include "r600.h"
struct r600_bomgr;
+struct r600_bo;
struct radeon {
int fd;
@@ -45,7 +46,9 @@
enum chip_class chip_class;
struct r600_tiling_info tiling_info;
struct r600_bomgr *bomgr;
+ unsigned fence;
unsigned *cfence;
+ struct r600_bo *fence_bo;
};
struct r600_reg {