summaryrefslogtreecommitdiffstats
path: root/src/gallium/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/include')
-rw-r--r--src/gallium/include/pipe/p_screen.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_screen.h b/src/gallium/include/pipe/p_screen.h
index d4e2d9f63ac..3f9bad47095 100644
--- a/src/gallium/include/pipe/p_screen.h
+++ b/src/gallium/include/pipe/p_screen.h
@@ -263,6 +263,15 @@ struct pipe_screen {
unsigned usage);
/**
+ * Get stride and offset for the given pipe resource without the need to get
+ * a winsys_handle.
+ */
+ void (*resource_get_info)(struct pipe_screen *screen,
+ struct pipe_resource *resource,
+ unsigned *stride,
+ unsigned *offset);
+
+ /**
* Mark the resource as changed so derived internal resources will be
* recreated on next use.
*