static __DRIconfig**
intel_screen_make_configs(__DRIscreen *dri_screen)
{
+ /* GLX_SWAP_COPY_OML is not supported due to page flipping. */
static const GLenum back_buffer_modes[] = {
- GLX_NONE, GLX_SWAP_UNDEFINED_OML, GLX_SWAP_COPY_OML
+ GLX_SWAP_UNDEFINED_OML, GLX_NONE,
};
static const uint8_t singlesample_samples[1] = {0};
depth_bits,
stencil_bits,
num_depth_stencil_bits,
- back_buffer_modes,
- ARRAY_SIZE(back_buffer_modes),
+ back_buffer_modes, 2,
singlesample_samples, 1,
false);
configs = driConcatConfigs(configs, new_configs);
new_configs = driCreateConfigs(fb_format[i], fb_type[i],
depth_bits, stencil_bits, 1,
- back_buffer_modes + 1, 1,
+ back_buffer_modes, 1,
singlesample_samples, 1,
true);
configs = driConcatConfigs(configs, new_configs);
*
* Only doublebuffer configs with GLX_SWAP_UNDEFINED_OML behavior are
* supported. Singlebuffer configs are not supported because no one wants
- * them. GLX_SWAP_COPY_OML is not supported due to page flipping.
+ * them.
*/
for (int i = 0; i < ARRAY_SIZE(fb_format); i++) {
if (screen->gen < 6)
depth_bits,
stencil_bits,
num_depth_stencil_bits,
- back_buffer_modes + 1, 1,
+ back_buffer_modes, 1,
multisample_samples,
num_msaa_modes,
false);