mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 04:40:09 +01:00
st/xorg: Only reference new picture formats when they're defined.
Fixes http://bugs.freedesktop.org/show_bug.cgi/?id=25094 .
This commit is contained in:
parent
afae49cc15
commit
d3a37d93ab
1 changed files with 6 additions and 4 deletions
|
|
@ -57,16 +57,18 @@ struct render_format_str {
|
|||
};
|
||||
static const struct render_format_str formats_info[] =
|
||||
{
|
||||
{PICT_a2r10g10b10, "PICT_a2r10g10b10"},
|
||||
{PICT_x2r10g10b10, "PICT_x2r10g10b10"},
|
||||
{PICT_a2b10g10r10, "PICT_a2b10g10r10"},
|
||||
{PICT_x2b10g10r10, "PICT_x2b10g10r10"},
|
||||
{PICT_a8r8g8b8, "PICT_a8r8g8b8"},
|
||||
{PICT_x8r8g8b8, "PICT_x8r8g8b8"},
|
||||
{PICT_a8b8g8r8, "PICT_a8b8g8r8"},
|
||||
{PICT_x8b8g8r8, "PICT_x8b8g8r8"},
|
||||
#ifdef PICT_TYPE_BGRA
|
||||
{PICT_b8g8r8a8, "PICT_b8g8r8a8"},
|
||||
{PICT_b8g8r8x8, "PICT_b8g8r8x8"},
|
||||
{PICT_a2r10g10b10, "PICT_a2r10g10b10"},
|
||||
{PICT_x2r10g10b10, "PICT_x2r10g10b10"},
|
||||
{PICT_a2b10g10r10, "PICT_a2b10g10r10"},
|
||||
{PICT_x2b10g10r10, "PICT_x2b10g10r10"},
|
||||
#endif
|
||||
{PICT_r8g8b8, "PICT_r8g8b8"},
|
||||
{PICT_b8g8r8, "PICT_b8g8r8"},
|
||||
{PICT_r5g6b5, "PICT_r5g6b5"},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue