diff options
author | Gurchetan Singh <[email protected]> | 2019-01-11 17:38:55 -0800 |
---|---|---|
committer | Gert Wollny <[email protected]> | 2019-02-15 11:19:04 +0100 |
commit | 7626e6e18956cac0de9077694c97a388c739bdd0 (patch) | |
tree | 455944983dbb9f90e0b2917eed2193887ef36dbe /src/gallium/drivers/virgl/virgl_resource.h | |
parent | c19aedcf1a83c70a999b963dfbc0bce47a189600 (diff) |
virgl: track level cleanliness rather than resource cleanliness
This allows a minor optimization for texture upload.
Reviewed-by: Gert Wollny <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_resource.h')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_resource.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/virgl/virgl_resource.h b/src/gallium/drivers/virgl/virgl_resource.h index 33411959678..4aa2e71ecee 100644 --- a/src/gallium/drivers/virgl/virgl_resource.h +++ b/src/gallium/drivers/virgl/virgl_resource.h @@ -116,7 +116,7 @@ bool virgl_res_needs_flush_wait(struct virgl_context *vctx, unsigned usage); bool virgl_res_needs_readback(struct virgl_context *vctx, struct virgl_resource *res, - unsigned usage); + unsigned usage, unsigned level); void virgl_resource_layout(struct pipe_resource *pt, struct virgl_resource_metadata *metadata); |