projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5318424
)
isl: Document some isl_surf::phys_level0_sa invariants
author
Chad Versace
<chad.versace@intel.com>
Thu, 31 Dec 2015 20:02:04 +0000
(12:02 -0800)
committer
Chad Versace
<chad.versace@intel.com>
Thu, 31 Dec 2015 20:06:02 +0000
(12:06 -0800)
isl_dim_layout restricts the range of isl_surf::phys_level0_sa.
src/isl/isl.h
patch
|
blob
|
history
diff --git
a/src/isl/isl.h
b/src/isl/isl.h
index 22435e923b90b701a77527c81ffedb50a0641390..68d05e3718612b2e0d72817d67b49ed14392113d 100644
(file)
--- a/
src/isl/isl.h
+++ b/
src/isl/isl.h
@@
-492,12
+492,16
@@
enum isl_dim_layout {
*
* One-dimensional surfaces are identical to 2D surfaces with height of
* one.
+ *
+ * @invariant isl_surf::phys_level0_sa::depth == 1
*/
ISL_DIM_LAYOUT_GEN4_2D,
/**
* For details, see the G35 PRM >> Volume 1: Graphics Core >> Section
* 6.17.5: 3D Surfaces.
+ *
+ * @invariant isl_surf::phys_level0_sa::array_len == 1
*/
ISL_DIM_LAYOUT_GEN4_3D,