projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ee923f
)
anv/formats: Add surface_format initializer
author
Nanley Chery
<nanley.g.chery@intel.com>
Tue, 29 Sep 2015 21:53:28 +0000
(14:53 -0700)
committer
Nanley Chery
<nanley.g.chery@intel.com>
Mon, 9 Nov 2015 23:41:41 +0000
(15:41 -0800)
v2: Rename __brw_fmt to __hw_fmt (Chad)
Suggested-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Chad Versace chad.versace@intel.com
src/vulkan/anv_formats.c
patch
|
blob
|
history
diff --git
a/src/vulkan/anv_formats.c
b/src/vulkan/anv_formats.c
index 28212341448abaa70900e9e9736efa5535e2f196..5631bea10e3560b17774f150e339566ce17b9c1d 100644
(file)
--- a/
src/vulkan/anv_formats.c
+++ b/
src/vulkan/anv_formats.c
@@
-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),