Some work on buffer handling, most likely not entirely correct and
[mesa.git] / src / mesa / drivers / dri / nouveau / nouveau_state.h
1 /**************************************************************************
2
3 Copyright 2006 Jeremy Kolb
4 All Rights Reserved.
5
6 Permission is hereby granted, free of charge, to any person obtaining a
7 copy of this software and associated documentation files (the "Software"),
8 to deal in the Software without restriction, including without limitation
9 on the rights to use, copy, modify, merge, publish, distribute, sub
10 license, and/or sell copies of the Software, and to permit persons to whom
11 the Software is furnished to do so, subject to the following conditions:
12
13 The above copyright notice and this permission notice (including the next
14 paragraph) shall be included in all copies or substantial portions of the
15 Software.
16
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
20 ERIC ANHOLT OR SILICON INTEGRATED SYSTEMS CORP BE LIABLE FOR ANY CLAIM,
21 DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
22 OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
23 USE OR OTHER DEALINGS IN THE SOFTWARE.
24
25 **************************************************************************/
26
27 #ifndef __NOUVEAU_STATE_H__
28 #define __NOUVEAU_STATE_H__
29
30 #include "nouveau_context.h"
31
32 extern void nouveauDDInitState(nouveauContextPtr nmesa);
33 extern void nouveauDDInitStateFuncs(GLcontext *ctx);
34
35 extern void nv10InitStateFuncs(GLcontext *ctx, struct dd_function_table *func);
36 extern void nv20InitStateFuncs(GLcontext *ctx, struct dd_function_table *func);
37 extern void nv30InitStateFuncs(GLcontext *ctx, struct dd_function_table *func);
38
39 extern void nouveauInitState(GLcontext *ctx);
40
41 /*
42 extern void nouveauDDUpdateState(GLcontext *ctx);
43 extern void nouveauDDUpdateHWState(GLcontext *ctx);
44
45 extern void nouveauEmitHwStateLocked(nouveauContextPtr nmesa);
46 */
47 #endif
48