summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/virgl/virgl_encode.h
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2015-10-28 11:21:49 +0000
committerEmil Velikov <[email protected]>2015-10-30 17:37:09 +0000
commitdafcb21405622eae3f8aa49000142f870549cc9b (patch)
tree5353e54eca3d8b1e0478439de9c5922544c2f23a /src/gallium/drivers/virgl/virgl_encode.h
parent7af46b9c747cbd503a2b97f00f1c603f1b75aaff (diff)
virgl: use virgl_screen/surface upcast wrappers
Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_encode.h')
-rw-r--r--src/gallium/drivers/virgl/virgl_encode.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_encode.h b/src/gallium/drivers/virgl/virgl_encode.h
index eabc421f861..d7923692793 100644
--- a/src/gallium/drivers/virgl/virgl_encode.h
+++ b/src/gallium/drivers/virgl/virgl_encode.h
@@ -29,6 +29,11 @@ struct virgl_surface {
uint32_t handle;
};
+static inline struct virgl_surface *virgl_surface(struct pipe_surface *surf)
+{
+ return (struct virgl_surface *)surf;
+}
+
static inline void virgl_encoder_write_dword(struct virgl_cmd_buf *state,
uint32_t dword)
{