mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
anv/formats: Add surface_format initializer
v2: Rename __brw_fmt to __hw_fmt (Chad) Suggested-by: Jason Ekstrand <jason.ekstrand@intel.com> Reviewed-by: Chad Versace chad.versace@intel.com
This commit is contained in:
parent
3ee923f1c2
commit
a6c7d1e016
1 changed files with 2 additions and 2 deletions
|
|
@ -26,8 +26,8 @@
|
|||
|
||||
#define UNSUPPORTED 0xffff
|
||||
|
||||
#define fmt(__vk_fmt, ...) \
|
||||
[__vk_fmt] = { .vk_format = __vk_fmt, .name = #__vk_fmt, __VA_ARGS__ }
|
||||
#define fmt(__vk_fmt, __hw_fmt, ...) \
|
||||
[__vk_fmt] = { .vk_format = __vk_fmt, .name = #__vk_fmt, .surface_format = __hw_fmt, __VA_ARGS__ }
|
||||
|
||||
static const struct anv_format anv_formats[] = {
|
||||
fmt(VK_FORMAT_UNDEFINED, RAW, .bs = 1, .num_channels = 1),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue