diff options
author | Boris Brezillon <[email protected]> | 2019-09-14 18:40:23 +0200 |
---|---|---|
committer | Boris Brezillon <[email protected]> | 2019-09-18 10:37:56 +0200 |
commit | 0eec73a800fb87b691df21ba9482db1317c744d3 (patch) | |
tree | cf80afef680e6a8c8a1084058f223e52ccf9a892 /src/gallium/drivers/panfrost/pan_fragment.c | |
parent | 5a4d095f9b58e127c2eae9aa64595afeb36b554d (diff) |
panfrost: Add FBO BOs to batch->bos earlier
If we want the batch dependency tracking to work correctly we must
make sure all BOs are added to the batch->bos set early enough. Adding
FBO BOs when generating the fragment job is clearly to late. Add a
panfrost_batch_add_fbo_bos helper and call it in the clear/draw path.
Signed-off-by: Boris Brezillon <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_fragment.c')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_fragment.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gallium/drivers/panfrost/pan_fragment.c b/src/gallium/drivers/panfrost/pan_fragment.c index 2b6ffd841fe..00ff363a1bb 100644 --- a/src/gallium/drivers/panfrost/pan_fragment.c +++ b/src/gallium/drivers/panfrost/pan_fragment.c @@ -42,9 +42,6 @@ panfrost_initialize_surface( struct panfrost_resource *rsrc = pan_resource(surf->texture); rsrc->slices[level].initialized = true; - - assert(rsrc->bo); - panfrost_batch_add_bo(batch, rsrc->bo); } /* Generate a fragment job. This should be called once per frame. (According to |