mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
mesa: added MESA_FORMAT_NONE
This commit is contained in:
parent
cccdc43fa9
commit
e8eed5003b
2 changed files with 12 additions and 0 deletions
|
|
@ -36,6 +36,14 @@
|
|||
*/
|
||||
static struct gl_format_info format_info[MESA_FORMAT_COUNT] =
|
||||
{
|
||||
{
|
||||
MESA_FORMAT_NONE, /* Name */
|
||||
GL_NONE, /* BaseFormat */
|
||||
GL_NONE, /* DataType */
|
||||
0, 0, 0, 0, /* Red/Green/Blue/AlphaBits */
|
||||
0, 0, 0, 0, 0, /* Lum/Int/Index/Depth/StencilBits */
|
||||
0, 0, 0 /* BlockWidth/Height,Bytes */
|
||||
},
|
||||
{
|
||||
MESA_FORMAT_RGBA8888, /* Name */
|
||||
GL_RGBA, /* BaseFormat */
|
||||
|
|
@ -617,6 +625,9 @@ _mesa_test_formats(void)
|
|||
|
||||
assert(info->Name == i);
|
||||
|
||||
if (info->Name == MESA_FORMAT_NONE)
|
||||
continue;
|
||||
|
||||
if (info->BlockWidth == 1 && info->BlockHeight == 1) {
|
||||
if (info->RedBits > 0) {
|
||||
GLuint t = info->RedBits + info->GreenBits
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@
|
|||
*/
|
||||
typedef enum
|
||||
{
|
||||
MESA_FORMAT_NONE = 0,
|
||||
/**
|
||||
* \name Basic hardware formats
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue