mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 12:18:09 +02:00
wgl: Flip the pixel format order.
List 32bit pixel formats first, as nobody is interested in 16bit pixel formats nowadays.
This commit is contained in:
parent
e50dd26ca6
commit
5458f8eff6
1 changed files with 6 additions and 6 deletions
|
|
@ -65,33 +65,33 @@ struct stw_pf_depth_info
|
|||
};
|
||||
|
||||
|
||||
/* NOTE: order matters, since in otherwise equal circunstances the first
|
||||
/* NOTE: order matters, since in otherwise equal circumstances the first
|
||||
* format listed will get chosen */
|
||||
|
||||
static const struct stw_pf_color_info
|
||||
stw_pf_color[] = {
|
||||
/* no-alpha */
|
||||
{ PIPE_FORMAT_R5G6B5_UNORM, { 5, 6, 5, 0}, {11, 5, 0, 0} },
|
||||
{ PIPE_FORMAT_X8R8G8B8_UNORM, { 8, 8, 8, 0}, {16, 8, 0, 0} },
|
||||
{ PIPE_FORMAT_B8G8R8X8_UNORM, { 8, 8, 8, 0}, { 8, 16, 24, 0} },
|
||||
{ PIPE_FORMAT_R5G6B5_UNORM, { 5, 6, 5, 0}, {11, 5, 0, 0} },
|
||||
/* alpha */
|
||||
{ PIPE_FORMAT_A1R5G5B5_UNORM, { 5, 5, 5, 1}, {10, 5, 0, 15} },
|
||||
{ PIPE_FORMAT_A4R4G4B4_UNORM, { 4, 4, 4, 4}, {16, 4, 0, 12} },
|
||||
{ PIPE_FORMAT_A8R8G8B8_UNORM, { 8, 8, 8, 8}, {16, 8, 0, 24} },
|
||||
{ PIPE_FORMAT_B8G8R8A8_UNORM, { 8, 8, 8, 8}, { 8, 16, 24, 0} }
|
||||
#if 0
|
||||
{ PIPE_FORMAT_A2B10G10R10_UNORM, {10, 10, 10, 2}, { 0, 10, 20, 30} }
|
||||
#endif
|
||||
{ PIPE_FORMAT_A1R5G5B5_UNORM, { 5, 5, 5, 1}, {10, 5, 0, 15} },
|
||||
{ PIPE_FORMAT_A4R4G4B4_UNORM, { 4, 4, 4, 4}, {16, 4, 0, 12} },
|
||||
};
|
||||
|
||||
|
||||
static const struct stw_pf_depth_info
|
||||
stw_pf_depth_stencil[] = {
|
||||
/* pure depth */
|
||||
{ PIPE_FORMAT_Z16_UNORM, {16, 0} },
|
||||
{ PIPE_FORMAT_Z32_UNORM, {32, 0} },
|
||||
{ PIPE_FORMAT_Z24X8_UNORM, {24, 0} },
|
||||
{ PIPE_FORMAT_X8Z24_UNORM, {24, 0} },
|
||||
{ PIPE_FORMAT_Z32_UNORM, {32, 0} },
|
||||
{ PIPE_FORMAT_Z16_UNORM, {16, 0} },
|
||||
/* pure stencil */
|
||||
{ PIPE_FORMAT_S8_UNORM, { 0, 8} },
|
||||
/* combined depth-stencil */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue