mesa: move assertions in test_attachment_completeness()
[mesa.git] / src / mesa / main / mfeatures.h
1 /*
2 * Mesa 3-D graphics library
3 * Version: 7.1
4 *
5 * Copyright (C) 1999-2008 Brian Paul All Rights Reserved.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a
8 * copy of this software and associated documentation files (the "Software"),
9 * to deal in the Software without restriction, including without limitation
10 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
11 * and/or sell copies of the Software, and to permit persons to whom the
12 * Software is furnished to do so, subject to the following conditions:
13 *
14 * The above copyright notice and this permission notice shall be included
15 * in all copies or substantial portions of the Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 */
24
25
26 /**
27 * \file mfeatures.h
28 * Flags to enable/disable specific parts of the API.
29 */
30
31 #ifndef FEATURES_H
32 #define FEATURES_H
33
34
35 #ifndef _HAVE_FULL_GL
36 #define _HAVE_FULL_GL 1
37 #endif
38
39 #define FEATURE_accum _HAVE_FULL_GL
40 #define FEATURE_attrib_stack _HAVE_FULL_GL
41 #define FEATURE_colortable _HAVE_FULL_GL
42 #define FEATURE_convolve _HAVE_FULL_GL
43 #define FEATURE_dispatch _HAVE_FULL_GL
44 #define FEATURE_dlist _HAVE_FULL_GL
45 #define FEATURE_draw_read_buffer _HAVE_FULL_GL
46 #define FEATURE_drawpix _HAVE_FULL_GL
47 #define FEATURE_evaluators _HAVE_FULL_GL
48 #define FEATURE_feedback _HAVE_FULL_GL
49 #define FEATURE_fixedpt 0
50 #define FEATURE_histogram _HAVE_FULL_GL
51 #define FEATURE_pixel_transfer _HAVE_FULL_GL
52 #define FEATURE_point_size_array 0
53 #define FEATURE_texgen _HAVE_FULL_GL
54 #define FEATURE_texture_fxt1 _HAVE_FULL_GL
55 #define FEATURE_texture_s3tc _HAVE_FULL_GL
56 #define FEATURE_userclip _HAVE_FULL_GL
57 #define FEATURE_vertex_array_byte 0
58 #define FEATURE_windowpos _HAVE_FULL_GL
59 #define FEATURE_es2_glsl 0
60
61 #define FEATURE_ARB_occlusion_query _HAVE_FULL_GL
62 #define FEATURE_ARB_fragment_program _HAVE_FULL_GL
63 #define FEATURE_ARB_framebuffer_object _HAVE_FULL_GL
64 #define FEATURE_ARB_pixel_buffer_object _HAVE_FULL_GL
65 #define FEATURE_ARB_vertex_buffer_object _HAVE_FULL_GL
66 #define FEATURE_ARB_vertex_program _HAVE_FULL_GL
67 #define FEATURE_ARB_vertex_shader _HAVE_FULL_GL
68 #define FEATURE_ARB_fragment_shader _HAVE_FULL_GL
69 #define FEATURE_ARB_shader_objects (FEATURE_ARB_vertex_shader || FEATURE_ARB_fragment_shader)
70 #define FEATURE_ARB_shading_language_100 FEATURE_ARB_shader_objects
71 #define FEATURE_ARB_shading_language_120 FEATURE_ARB_shader_objects
72
73 #define FEATURE_EXT_framebuffer_blit _HAVE_FULL_GL
74 #define FEATURE_EXT_framebuffer_object _HAVE_FULL_GL
75 #define FEATURE_EXT_pixel_buffer_object _HAVE_FULL_GL
76 #define FEATURE_EXT_texture_sRGB _HAVE_FULL_GL
77 #define FEATURE_EXT_timer_query _HAVE_FULL_GL
78 #define FEATURE_ATI_fragment_shader _HAVE_FULL_GL
79 #define FEATURE_NV_fence _HAVE_FULL_GL
80 #define FEATURE_NV_fragment_program _HAVE_FULL_GL
81 #define FEATURE_NV_vertex_program _HAVE_FULL_GL
82
83
84 #endif /* FEATURES_H */