• Chia-I Wu's avatar
    virgl: remove an incorrect check in virgl_res_needs_flush · ea1e0acf
    Chia-I Wu authored
    Imagine this
    
      resource_copy_region(ctx, dst, ..., src, ...);
      transfer_map(ctx, src, 0, PIPE_TRANSFER_WRITE, ...);
    
    at the beginning of a cmdbuf.  We need to flush in transfer_map so
    that the transfer is not reordered before the resource copy.  The
    check for "vctx->num_draws == 0 && vctx->num_compute == 0" is not
    enough.  Removing the optimization entirely.
    
    Because of the more precise resource tracking in the previous
    commit, I hope the performance impact is minimized.  We will have to
    go with perfect resource tracking, or attempt a more limited
    optimization, if there are specific cases we really need to optimize
    for.
    Signed-off-by: Chia-I Wu's avatarChia-I Wu <olvaffe@gmail.com>
    Reviewed-by: Gurchetan Singh's avatarGurchetan Singh <gurchetansingh@chromium.org>
    ea1e0acf
Name
Last commit
Last update
..
amd Loading commit data...
broadcom Loading commit data...
compiler Loading commit data...
egl Loading commit data...
freedreno Loading commit data...
gallium Loading commit data...
gbm Loading commit data...
getopt Loading commit data...
glx Loading commit data...
gtest Loading commit data...
hgl Loading commit data...
imgui Loading commit data...
intel Loading commit data...
loader Loading commit data...
mapi Loading commit data...
mesa Loading commit data...
util Loading commit data...
vulkan Loading commit data...
SConscript Loading commit data...
meson.build Loading commit data...