From 1f6e10f67b0fce811eb91abfbdb3e9c6ed0035a3 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 12 Jul 2012 13:52:06 -0700 Subject: dri: Convert driCreateConfigs to use a gl_format enum This is instead of the pair of GLenums for format and type that were previously used. This is necessary for the Intel drivers to expose sRGB framebuffer formats. Signed-off-by: Ian Romanick Reviewed-by: Eric Anholt Reviewed-by: Kenneth Graunke Reviewed-by: Chad Versace --- src/gallium/state_trackers/dri/common/dri_screen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gallium/state_trackers') diff --git a/src/gallium/state_trackers/dri/common/dri_screen.c b/src/gallium/state_trackers/dri/common/dri_screen.c index b76cb9a9ee1..70059b96ee8 100644 --- a/src/gallium/state_trackers/dri/common/dri_screen.c +++ b/src/gallium/state_trackers/dri/common/dri_screen.c @@ -174,7 +174,7 @@ dri_fill_in_modes(struct dri_screen *screen, } } - configs_r5g6b5 = driCreateConfigs(GL_RGB, GL_UNSIGNED_SHORT_5_6_5, + configs_r5g6b5 = driCreateConfigs(MESA_FORMAT_RGB565, depth_bits_array, stencil_bits_array, depth_buffer_factor, back_buffer_modes, back_buffer_factor, @@ -193,7 +193,7 @@ dri_fill_in_modes(struct dri_screen *screen, } } - configs_a8r8g8b8 = driCreateConfigs(GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV, + configs_a8r8g8b8 = driCreateConfigs(MESA_FORMAT_ARGB8888, depth_bits_array, stencil_bits_array, depth_buffer_factor, @@ -215,7 +215,7 @@ dri_fill_in_modes(struct dri_screen *screen, } } - configs_x8r8g8b8 = driCreateConfigs(GL_BGR, GL_UNSIGNED_INT_8_8_8_8_REV, + configs_x8r8g8b8 = driCreateConfigs(MESA_FORMAT_XRGB8888, depth_bits_array, stencil_bits_array, depth_buffer_factor, -- cgit v1.2.3