diff options
author | Julien Isorce <[email protected]> | 2019-04-23 14:26:33 -0700 |
---|---|---|
committer | Julien Isorce <[email protected]> | 2019-04-30 17:53:12 +0000 |
commit | a3c202de0a963c0562796cf75e3a9b3eedf1afad (patch) | |
tree | d5944a294314d5a154833fd2b6b4b5667e1f8166 /src/gallium/include/pipe | |
parent | ec6c2297634eba77248a929048cf4201887a5f0a (diff) |
gallium: add resource_get_info to pipe_screen
Generic plumbing.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110443
Signed-off-by: Julien Isorce <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/include/pipe')
-rw-r--r-- | src/gallium/include/pipe/p_screen.h | 9 |
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. * |