iris: Implement ALT mode for ARB_{vertex,fragment}_shader
[mesa.git] / src / gallium / drivers / iris / iris_resource.h
index 5be5d9987506f6a27224e62d12beef45373c8bf7..0edc1b6f3a9a1a5e6b2d0ba56bb666a552137022 100644 (file)
@@ -45,9 +45,19 @@ struct iris_format_info {
  * They contain the storage (BO) and layout information (ISL surface).
  */
 struct iris_resource {
-   struct pipe_resource        base;
+   struct pipe_resource base;
    enum pipe_format internal_format;
+
+   /**
+    * The ISL surface layout information for this resource.
+    *
+    * This is not filled out for PIPE_BUFFER resources, but is guaranteed
+    * to be zeroed.  Note that this also guarantees that res->surf.tiling
+    * will be ISL_TILING_LINEAR, so it's safe to check that.
+    */
    struct isl_surf surf;
+
+   /** Backing storage for the resource */
    struct iris_bo *bo;
 
    /**