Re: [Mesa-dev] [PATCH v2 20/37] panfrost: Add FBO BOs to batch->bos earlier

2019-09-16 Thread Alyssa Rosenzweig
R-b On Mon, Sep 16, 2019 at 11:36:58AM +0200, Boris Brezillon wrote: > 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 >

[Mesa-dev] [PATCH v2 20/37] panfrost: Add FBO BOs to batch->bos earlier

2019-09-16 Thread Boris Brezillon
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