diff options
author | Alexandros Frantzis <[email protected]> | 2019-06-05 10:32:01 +0300 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2019-06-07 21:45:16 -0700 |
commit | e0ffcdf16a61a41f2a2e4e2c0dca94cf506ba17e (patch) | |
tree | 838b1be7a63c26e028c98dcbcd6464263f09903f /src/gallium/winsys/virgl/vtest | |
parent | 8089d3658ad3a2d62fb815d545b727bb72ed63c9 (diff) |
virgl: Don't try to use cached resources for legacy fences
Resources for fences should not be from the cache, since we are basing
the fence status on the resource creation busy status.
Signed-off-by: Alexandros Frantzis <[email protected]>
Reviewed-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/gallium/winsys/virgl/vtest')
-rw-r--r-- | src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c b/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c index 24b57447467..0273d96f0dc 100644 --- a/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c +++ b/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c @@ -589,11 +589,14 @@ virgl_vtest_fence_create(struct virgl_winsys *vws) { struct virgl_hw_res *res; - res = virgl_vtest_winsys_resource_cache_create(vws, - PIPE_BUFFER, - PIPE_FORMAT_R8_UNORM, - VIRGL_BIND_CUSTOM, - 8, 1, 1, 0, 0, 0, 8); + /* Resources for fences should not be from the cache, since we are basing + * the fence status on the resource creation busy status. + */ + res = virgl_vtest_winsys_resource_create(vws, + PIPE_BUFFER, + PIPE_FORMAT_R8_UNORM, + VIRGL_BIND_CUSTOM, + 8, 1, 1, 0, 0, 0, 8); return (struct pipe_fence_handle *)res; } |