st/egl: Remove native_config::samples.
authorChia-I Wu <olv@lunarg.com>
Wed, 22 Dec 2010 04:27:35 +0000 (12:27 +0800)
committerChia-I Wu <olv@lunarg.com>
Wed, 22 Dec 2010 05:22:36 +0000 (13:22 +0800)
Multisample buffers are never requested.

src/gallium/state_trackers/egl/common/egl_g3d.c
src/gallium/state_trackers/egl/common/native.h
src/gallium/state_trackers/egl/x11/native_dri2.c

index 4641dd2761759ccdb0b65ef480411af86fa34578..d71ca866cb74fa242ab98f4702620a8f68b72cac 100644 (file)
@@ -226,8 +226,6 @@ init_config_attributes(_EGLConfig *conf, const struct native_config *nconf,
    }
 
    conf->Level = nconf->level;
-   conf->Samples = nconf->samples;
-   conf->SampleBuffers = 0;
 
    if (nconf->transparent_rgb) {
       conf->TransparentType = EGL_TRANSPARENT_RGB;
@@ -275,7 +273,7 @@ egl_g3d_init_config(_EGLDriver *drv, _EGLDisplay *dpy,
    gconf->stvis.color_format = nconf->color_format;
    gconf->stvis.depth_stencil_format = depth_stencil_format;
    gconf->stvis.accum_format = PIPE_FORMAT_NONE;
-   gconf->stvis.samples = nconf->samples;
+   gconf->stvis.samples = 0;
 
    gconf->stvis.render_buffer = (buffer_mask & ST_ATTACHMENT_BACK_LEFT_MASK) ?
       ST_ATTACHMENT_BACK_LEFT : ST_ATTACHMENT_FRONT_LEFT;
index 58d844e5cd469c172aef528667eef749c3283baa..654f445fca6446f140ff1c6112586200e1b8a659 100644 (file)
@@ -126,7 +126,6 @@ struct native_config {
    int native_visual_id;
    int native_visual_type;
    int level;
-   int samples;
    boolean transparent_rgb;
    int transparent_rgb_values[3];
 };
index 83892e3f5f5c684eff15eafbd7b502ed4a2d15c2..d60ef2aa396c8c8bca00195700b9a958b6ef9b3e 100644 (file)
@@ -588,7 +588,6 @@ dri2_display_convert_config(struct native_display *ndpy,
    nconf->native_visual_id = mode->visualID;
    nconf->native_visual_type = mode->visualType;
    nconf->level = mode->level;
-   nconf->samples = mode->samples;
 
    if (mode->transparentPixel == GLX_TRANSPARENT_RGB) {
       nconf->transparent_rgb = TRUE;