intel: Add support for MAX_SAMPLES=1 EXT_framebuffer_multisample.
authorEric Anholt <eric@anholt.net>
Mon, 23 Aug 2010 22:53:16 +0000 (15:53 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 24 Aug 2010 00:25:38 +0000 (17:25 -0700)
The spec specifically sets the minimum MAX_SAMPLES at 1 to allow exposing
the extension on all implementations, so do so.

docs/relnotes-7.9.html
src/mesa/drivers/dri/intel/intel_context.c
src/mesa/drivers/dri/intel/intel_extensions.c

index 457dd8fd05d9ef864945ff2438984ee3782225a3..c3ca9c9c422927c6f047874d2ac70219fe22f654 100644 (file)
@@ -35,6 +35,7 @@ tbd
 <h2>New features</h2>
 <ul>
 <li>GL_EXT_timer_query extension (i965 driver only)
+<li>GL_EXT_framebuffer_multisample extension (intel drivers, MAX_SAMPLES = 1)
 <li>GL_ARB_texture_swizzle extension (alias of GL_EXT_texture_swizzle)
 <li>GL_ARB_draw_elements_base_vertex, GL_ARB_fragment_program_shadow
     and GL_EXT_draw_buffers2 in Gallium drivers
index e19f44035fdd5f21b465eefa955554d38a5e6e69..4e63b4512739241be70aa5547c32bde2ef06924a 100644 (file)
@@ -720,6 +720,8 @@ intelInitContext(struct intel_context *intel,
    ctx->Const.MaxPointSizeAA = 3.0;
    ctx->Const.PointSizeGranularity = 1.0;
 
+   ctx->Const.MaxSamples = 1.0;
+
    /* reinitialize the context point state.
     * It depend on constants in __GLcontextRec::Const
     */
index edba1fc2f2b53304a1a1ce2bf3140b18fee26afb..bf22a423fcb98166286bcbb6fde4f6d6ffb6f939 100644 (file)
@@ -50,8 +50,9 @@
 #define need_GL_EXT_cull_vertex
 #define need_GL_EXT_draw_buffers2
 #define need_GL_EXT_fog_coord
-#define need_GL_EXT_framebuffer_object
 #define need_GL_EXT_framebuffer_blit
+#define need_GL_EXT_framebuffer_multisample
+#define need_GL_EXT_framebuffer_object
 #define need_GL_EXT_gpu_program_parameters
 #define need_GL_EXT_point_parameters
 #define need_GL_EXT_provoking_vertex
@@ -111,6 +112,7 @@ static const struct dri_extension card_extensions[] = {
    { "GL_EXT_cull_vertex",                GL_EXT_cull_vertex_functions },
    { "GL_EXT_framebuffer_blit",         GL_EXT_framebuffer_blit_functions },
    { "GL_EXT_framebuffer_object",       GL_EXT_framebuffer_object_functions },
+   { "GL_EXT_framebuffer_multisample",    GL_EXT_framebuffer_multisample_functions },
    { "GL_EXT_fog_coord",                  GL_EXT_fog_coord_functions },
    { "GL_EXT_gpu_program_parameters",     GL_EXT_gpu_program_parameters_functions },
    { "GL_EXT_packed_depth_stencil",       NULL },