mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 07:40:38 +02:00
anv/format: Add a helpful comment about format names
This commit is contained in:
parent
259e1bdf79
commit
2bfb9f29b8
1 changed files with 5 additions and 0 deletions
|
|
@ -35,6 +35,11 @@
|
|||
__VA_ARGS__ \
|
||||
}
|
||||
|
||||
/* HINT: For array formats, the ISL name should match the VK name. For
|
||||
* packed formats, they should have the channels in reverse order from each
|
||||
* other. The reason for this is that, for packed formats, the ISL (and
|
||||
* bspec) names are in LSB -> MSB order while VK formats are MSB -> LSB.
|
||||
*/
|
||||
static const struct anv_format anv_formats[] = {
|
||||
fmt(VK_FORMAT_UNDEFINED, ISL_FORMAT_RAW),
|
||||
fmt(VK_FORMAT_R4G4_UNORM_PACK8, ISL_FORMAT_UNSUPPORTED),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue