summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris/iris_resource.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-12-09 12:11:17 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:12 -0800
commitbfc76d35250c37f41003f618893eb2fd35097b13 (patch)
tree9164c4a871676027a040ab82cf3b1e05bd7325ff /src/gallium/drivers/iris/iris_resource.h
parent56f1fe3eacc95e6ff66fad323448a1189962b97d (diff)
iris: store modifier info in res
Diffstat (limited to 'src/gallium/drivers/iris/iris_resource.h')
-rw-r--r--src/gallium/drivers/iris/iris_resource.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_resource.h b/src/gallium/drivers/iris/iris_resource.h
index 8e57b861437..382f1159c5a 100644
--- a/src/gallium/drivers/iris/iris_resource.h
+++ b/src/gallium/drivers/iris/iris_resource.h
@@ -112,6 +112,13 @@ struct iris_resource {
*/
enum isl_aux_state **state;
} aux;
+
+ /**
+ * For external surfaces, this is DRM format modifier that was used to
+ * create or import the surface. For internal surfaces, this will always
+ * be DRM_FORMAT_MOD_INVALID.
+ */
+ const struct isl_drm_modifier_info *mod_info;
};
/**