projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
259e1bd
)
anv/format: Add a helpful comment about format names
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Sat, 23 Jan 2016 03:14:41 +0000
(19:14 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Sat, 23 Jan 2016 03:14:41 +0000
(19:14 -0800)
src/vulkan/anv_formats.c
patch
|
blob
|
history
diff --git
a/src/vulkan/anv_formats.c
b/src/vulkan/anv_formats.c
index 3f3eace3c2f7842d10ee9465947bd0269247373e..642bc7d3cb1ce30e376477d28dc1c0fb0e1d4571 100644
(file)
--- a/
src/vulkan/anv_formats.c
+++ b/
src/vulkan/anv_formats.c
@@
-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),