2 * Copyright 2003 VMware, Inc.
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the
7 * "Software"), to deal in the Software without restriction, including
8 * without limitation the rights to use, copy, modify, merge, publish,
9 * distribute, sublicense, and/or sell copies of the Software, and to
10 * permit persons to whom the Software is furnished to do so, subject to
11 * the following conditions:
13 * The above copyright notice and this permission notice (including the
14 * next paragraph) shall be included in all copies or substantial portions
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20 * IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR
21 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
23 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 #ifndef _INTEL_INIT_H_
27 #define _INTEL_INIT_H_
32 #include <GL/internal/dri_interface.h>
35 #include "intel_bufmgr.h"
36 #include "brw_device_info.h"
38 #include "xmlconfig.h"
43 const struct brw_device_info
*devinfo
;
45 __DRIscreen
*driScrnPriv
;
49 bool hw_has_swizzling
;
54 * Does the kernel support resource streamer?
56 bool has_resource_streamer
;
59 * Does the kernel support context reset notifications?
61 bool has_context_reset_notification
;
66 * A unique ID for shader programs.
70 int winsys_msaa_samples_override
;
72 struct brw_compiler
*compiler
;
75 * Configuration cache with default values for all contexts
77 driOptionCache optionCache
;
80 * Version of the command parser reported by the
81 * I915_PARAM_CMD_PARSER_VERSION parameter
83 int cmd_parser_version
;
86 extern void intelDestroyContext(__DRIcontext
* driContextPriv
);
88 extern GLboolean
intelUnbindContext(__DRIcontext
* driContextPriv
);
90 PUBLIC
const __DRIextension
**__driDriverGetExtensions_i965(void);
91 extern const __DRI2fenceExtension intelFenceExtension
;
94 intelMakeCurrent(__DRIcontext
* driContextPriv
,
95 __DRIdrawable
* driDrawPriv
,
96 __DRIdrawable
* driReadPriv
);
98 double get_time(void);
99 void aub_dump_bmp(struct gl_context
*ctx
);
102 intel_supported_msaa_modes(const struct intel_screen
*screen
);