summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/virgl/virgl_resource.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_resource.h')
-rw-r--r--src/gallium/drivers/virgl/virgl_resource.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_resource.h b/src/gallium/drivers/virgl/virgl_resource.h
index df534652518..1a43e5ddc5d 100644
--- a/src/gallium/drivers/virgl/virgl_resource.h
+++ b/src/gallium/drivers/virgl/virgl_resource.h
@@ -154,4 +154,7 @@ bool virgl_res_needs_readback(struct virgl_context *vctx,
void virgl_resource_layout(struct pipe_resource *pt,
struct virgl_resource_metadata *metadata);
+unsigned virgl_resource_offset(struct pipe_resource *pres,
+ struct virgl_resource_metadata *metadata,
+ unsigned level, unsigned layer);
#endif