diff options
author | Chia-I Wu <[email protected]> | 2019-05-16 15:42:01 -0700 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2019-06-17 09:36:31 -0700 |
commit | 9975a0a84ca2ee18a0f051df44932bd7b2284a02 (patch) | |
tree | dd70f57ec75fc1763d6ed223c5520586bf61fdb1 /src/gallium/drivers/virgl/virgl_context.h | |
parent | 7e0508d9aa9575db7f608eae0c5337e2a0634197 (diff) |
virgl: add virgl_rebind_resource
We are going support reallocating the HW resource for a
virgl_resource. When that happens, the virgl_resource needs to be
rebound to the context.
Signed-off-by: Chia-I Wu <[email protected]>
Reviewed-by: Alexandros Frantzis <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_context.h')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_context.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_context.h b/src/gallium/drivers/virgl/virgl_context.h index b0fa03ca499..70807c5256c 100644 --- a/src/gallium/drivers/virgl/virgl_context.h +++ b/src/gallium/drivers/virgl/virgl_context.h @@ -128,4 +128,12 @@ void virgl_init_so_functions(struct virgl_context *vctx); struct tgsi_token *virgl_tgsi_transform(struct virgl_context *vctx, const struct tgsi_token *tokens_in); +bool +virgl_can_rebind_resource(struct virgl_context *vctx, + struct pipe_resource *res); + +void +virgl_rebind_resource(struct virgl_context *vctx, + struct pipe_resource *res); + #endif |