[Mesa-dev] [PATCH] st/dri: don't advertise multisample visuals
Christoph Bumiller
e0425955 at student.tuwien.ac.at
Sun Mar 4 12:15:48 PST 2012
Mesa doesn't actually support them, but some gallium drivers do.
Some applications react badly if we claim to support something and
then bail when it is requested.
---
src/gallium/state_trackers/dri/common/dri_screen.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/gallium/state_trackers/dri/common/dri_screen.c b/src/gallium/state_trackers/dri/common/dri_screen.c
index 24efbde..72cedfb 100644
--- a/src/gallium/state_trackers/dri/common/dri_screen.c
+++ b/src/gallium/state_trackers/dri/common/dri_screen.c
@@ -157,6 +157,7 @@ dri_fill_in_modes(struct dri_screen *screen,
msaa_samples_factor++;
}
}
+ msaa_samples_factor = 1; /* XXX: mesa doesn't support MS visuals yet */
configs_r5g6b5 = driCreateConfigs(GL_RGB, GL_UNSIGNED_SHORT_5_6_5,
depth_bits_array, stencil_bits_array,
@@ -176,6 +177,7 @@ dri_fill_in_modes(struct dri_screen *screen,
msaa_samples_factor++;
}
}
+ msaa_samples_factor = 1; /* XXX: mesa doesn't support MS visuals yet */
configs_a8r8g8b8 = driCreateConfigs(GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV,
depth_bits_array,
@@ -198,6 +200,7 @@ dri_fill_in_modes(struct dri_screen *screen,
msaa_samples_factor++;
}
}
+ msaa_samples_factor = 1; /* XXX: mesa doesn't support MS visuals yet */
configs_x8r8g8b8 = driCreateConfigs(GL_BGR, GL_UNSIGNED_INT_8_8_8_8_REV,
depth_bits_array,
--
1.7.3.4
More information about the mesa-dev
mailing list