mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
swr: [rasterizer common] reorder SWR_FORMAT_INFO
Signed-off-by: Tim Rowley <timothy.o.rowley@intel.com>
This commit is contained in:
parent
2a25ce7472
commit
6209dbf5a4
2 changed files with 1433 additions and 825 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -48,6 +48,7 @@ enum SWR_TYPE
|
||||||
SWR_TYPE_SSCALED,
|
SWR_TYPE_SSCALED,
|
||||||
SWR_TYPE_USCALED,
|
SWR_TYPE_USCALED,
|
||||||
};
|
};
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
/// SWR_FORMAT
|
/// SWR_FORMAT
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|
@ -102,6 +103,7 @@ enum SWR_FORMAT
|
||||||
B10G10R10A2_UNORM = 0xD1,
|
B10G10R10A2_UNORM = 0xD1,
|
||||||
B10G10R10A2_UNORM_SRGB = 0xD2,
|
B10G10R10A2_UNORM_SRGB = 0xD2,
|
||||||
R11G11B10_FLOAT = 0xD3,
|
R11G11B10_FLOAT = 0xD3,
|
||||||
|
R10G10B10_FLOAT_A2_UNORM = 0xD5,
|
||||||
R32_SINT = 0xD6,
|
R32_SINT = 0xD6,
|
||||||
R32_UINT = 0xD7,
|
R32_UINT = 0xD7,
|
||||||
R32_FLOAT = 0xD8,
|
R32_FLOAT = 0xD8,
|
||||||
|
|
@ -215,6 +217,7 @@ enum SWR_FORMAT
|
||||||
R8G8B8_SINT = 0x1C9,
|
R8G8B8_SINT = 0x1C9,
|
||||||
NUM_SWR_FORMATS = 0x1CA,
|
NUM_SWR_FORMATS = 0x1CA,
|
||||||
};
|
};
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
/// SWR_FORMAT_INFO - Format information
|
/// SWR_FORMAT_INFO - Format information
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|
@ -231,11 +234,11 @@ struct SWR_FORMAT_INFO
|
||||||
bool isSRGB;
|
bool isSRGB;
|
||||||
bool isBC;
|
bool isBC;
|
||||||
bool isSubsampled;
|
bool isSubsampled;
|
||||||
|
bool isLuminance;
|
||||||
bool isNormalized[4];
|
bool isNormalized[4];
|
||||||
float toFloat[4];
|
float toFloat[4];
|
||||||
uint32_t bcWidth;
|
uint32_t bcWidth;
|
||||||
uint32_t bcHeight;
|
uint32_t bcHeight;
|
||||||
bool isLuminance;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
extern const SWR_FORMAT_INFO gFormatInfo[];
|
extern const SWR_FORMAT_INFO gFormatInfo[];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue