aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/include/state_tracker
diff options
context:
space:
mode:
authorVarad Gautam <[email protected]>2017-05-30 17:23:41 +0530
committerEmil Velikov <[email protected]>2017-06-09 14:12:37 +0100
commit3f8513172ff65ce93a0f8a04c59afbe6b02d60d8 (patch)
treed1891f98d3a88420d88a58c6796acadd73fd2f4d /src/gallium/include/state_tracker
parentcde963ec359c07182f8633863ec0ecc1ea9fe451 (diff)
gallium/winsys/drm: introduce modifier field to winsys_handle
we use this to import resources with format modifiers, and to support per-resource modifier queries. Signed-off-by: Varad Gautam <[email protected]> Cc: Lucas Stach <[email protected]> Reviewed-by: Lucas Stach <[email protected]>
Diffstat (limited to 'src/gallium/include/state_tracker')
-rw-r--r--src/gallium/include/state_tracker/drm_driver.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/include/state_tracker/drm_driver.h b/src/gallium/include/state_tracker/drm_driver.h
index c80fb09dbc4..88dda0a9977 100644
--- a/src/gallium/include/state_tracker/drm_driver.h
+++ b/src/gallium/include/state_tracker/drm_driver.h
@@ -45,6 +45,12 @@ struct winsys_handle
* Output for texture_get_handle.
*/
unsigned offset;
+
+ /**
+ * Input to resource_from_handle.
+ * Output from resource_get_handle.
+ */
+ uint64_t modifier;
};