#include "vblank.h"
#include "utils.h"
-#include "xmlpool.h" /* for symbolic values of enum-type options */\r
-\r
+#include "xmlpool.h" /* for symbolic values of enum-type options */
+
//#define R600_ENABLE_GLSL_TEST 1
#define need_GL_VERSION_2_0
* The GL 2.0 functions are needed to make display lists work with
* functions added by GL_ATI_separate_stencil.
*/
-static const struct dri_extension gl_20_extension[] = {\r
-#ifdef R600_ENABLE_GLSL_TEST\r
- {"GL_ARB_shading_language_100", GL_VERSION_2_0_functions },\r
+static const struct dri_extension gl_20_extension[] = {
+#ifdef R600_ENABLE_GLSL_TEST
+ {"GL_ARB_shading_language_100", GL_VERSION_2_0_functions },
#else
- {"GL_VERSION_2_0", GL_VERSION_2_0_functions },\r
+ {"GL_VERSION_2_0", GL_VERSION_2_0_functions },
#endif /* R600_ENABLE_GLSL_TEST */
};
driInitExtensions(ctx, card_extensions, GL_TRUE);
if (r600->radeon.radeonScreen->kernel_mm)
- driInitExtensions(ctx, mm_extensions, GL_FALSE);\r
-\r
-#ifdef R600_ENABLE_GLSL_TEST\r
- driInitExtensions(ctx, gl_20_extension, GL_TRUE);\r
- //_mesa_enable_2_0_extensions(ctx);\r
- //1.5\r
- ctx->Extensions.ARB_occlusion_query = GL_TRUE;\r
- ctx->Extensions.ARB_vertex_buffer_object = GL_TRUE;\r
- ctx->Extensions.EXT_shadow_funcs = GL_TRUE;\r
- //2.0\r
- ctx->Extensions.ARB_draw_buffers = GL_TRUE;\r
- ctx->Extensions.ARB_point_sprite = GL_TRUE;\r
- ctx->Extensions.ARB_shader_objects = GL_TRUE;\r
- ctx->Extensions.ARB_vertex_shader = GL_TRUE;\r
- ctx->Extensions.ARB_fragment_shader = GL_TRUE;\r
- ctx->Extensions.ARB_texture_non_power_of_two = GL_TRUE;\r
- ctx->Extensions.EXT_blend_equation_separate = GL_TRUE;\r
- ctx->Extensions.ATI_separate_stencil = GL_TRUE;\r
-\r
- /* glsl compiler has problem if this is not GL_TRUE */\r
- ctx->Shader.EmitCondCodes = GL_TRUE;\r
+ driInitExtensions(ctx, mm_extensions, GL_FALSE);
+
+#ifdef R600_ENABLE_GLSL_TEST
+ driInitExtensions(ctx, gl_20_extension, GL_TRUE);
+ //_mesa_enable_2_0_extensions(ctx);
+ //1.5
+ ctx->Extensions.ARB_occlusion_query = GL_TRUE;
+ ctx->Extensions.ARB_vertex_buffer_object = GL_TRUE;
+ ctx->Extensions.EXT_shadow_funcs = GL_TRUE;
+ //2.0
+ ctx->Extensions.ARB_draw_buffers = GL_TRUE;
+ ctx->Extensions.ARB_point_sprite = GL_TRUE;
+ ctx->Extensions.ARB_shader_objects = GL_TRUE;
+ ctx->Extensions.ARB_vertex_shader = GL_TRUE;
+ ctx->Extensions.ARB_fragment_shader = GL_TRUE;
+ ctx->Extensions.ARB_texture_non_power_of_two = GL_TRUE;
+ ctx->Extensions.EXT_blend_equation_separate = GL_TRUE;
+ ctx->Extensions.ATI_separate_stencil = GL_TRUE;
+
+ /* glsl compiler has problem if this is not GL_TRUE */
+ ctx->Shader.EmitCondCodes = GL_TRUE;
#endif /* R600_ENABLE_GLSL_TEST */
if (driQueryOptionb
assert(glVisual);
assert(driContextPriv);
- assert(screen);\r
+ assert(screen);
/* Allocate the R600 context */
r600 = (context_t*) CALLOC(sizeof(*r600));