summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/dri/common/dri_screen.h
diff options
context:
space:
mode:
authorGeorge Sapountzis <gsapountzis@gmail.com>2010-03-26 18:44:39 +0200
committerGeorge Sapountzis <gsapountzis@gmail.com>2010-03-26 18:44:39 +0200
commit5b07257fdbb5a93f432b8eaf3a41f39b26bdb1f3 (patch)
tree83a9e7a596607f8600017bc88e05028df3c56700 /src/gallium/state_trackers/dri/common/dri_screen.h
parent1fbfc22d8560c9d900832147f504ff64c64358de (diff)
st/dri: factor out common init_screen code
Diffstat (limited to 'src/gallium/state_trackers/dri/common/dri_screen.h')
-rw-r--r--src/gallium/state_trackers/dri/common/dri_screen.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gallium/state_trackers/dri/common/dri_screen.h b/src/gallium/state_trackers/dri/common/dri_screen.h
index 4f59db37cf..e77bce17ae 100644
--- a/src/gallium/state_trackers/dri/common/dri_screen.h
+++ b/src/gallium/state_trackers/dri/common/dri_screen.h
@@ -39,6 +39,7 @@
#include "pipe/p_context.h"
#include "pipe/p_state.h"
#include "state_tracker/st_api.h"
+#include "state_tracker/drm_api.h"
struct dri_screen
{
@@ -97,17 +98,17 @@ dri_with_format(__DRIscreen * sPriv)
#endif
-extern const uint __driNConfigOptions;
-
-const __DRIconfig **
-dri_fill_in_modes(struct dri_screen *screen, unsigned pixel_bits);
-
void
dri_fill_st_visual(struct st_visual *stvis, struct dri_screen *screen,
const __GLcontextModes *mode);
+const __DRIconfig **
+dri_init_screen_helper(struct dri_screen *screen,
+ struct drm_create_screen_arg *arg,
+ unsigned pixel_bits);
+
void
-dri_destroy_screen(__DRIscreen * sPriv);
+dri_destroy_screen_helper(struct dri_screen * screen);
#endif