isl: Document some isl_surf::phys_level0_sa invariants
authorChad Versace <chad.versace@intel.com>
Thu, 31 Dec 2015 20:02:04 +0000 (12:02 -0800)
committerChad 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

index 22435e923b90b701a77527c81ffedb50a0641390..68d05e3718612b2e0d72817d67b49ed14392113d 100644 (file)
@@ -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,