diff options
author | Ian Romanick <[email protected]> | 2012-07-12 13:52:06 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2012-10-29 09:55:42 -0700 |
commit | 1f6e10f67b0fce811eb91abfbdb3e9c6ed0035a3 (patch) | |
tree | 6a4aad0d93d6ee04a9d9c6fe6503ff25988990a3 /src/gallium/state_trackers | |
parent | 43d6fe156b2bf9754aaa65776e001c927275d765 (diff) |
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 <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/dri/common/dri_screen.c | 6 |
1 files changed, 3 insertions, 3 deletions
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, |