Module: Mesa
Branch: master
Commit: ca475d5fba5f39d836b9f9994cb11caf559c10d9
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ca475d5fba5f39d836b9f9994cb11caf559c10d9

Author: Iago Toral Quiroga <[email protected]>
Date:   Thu Dec 12 11:19:23 2019 +0100

v3d: actually root the first BO in a command list in the job

We were passing cl->bo, which is NULL, so v3d_job_add_bo was a no-op.

Reviewed-by: Alejandro PiƱeiro <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>

---

 src/gallium/drivers/v3d/v3d_cl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/v3d/v3d_cl.c b/src/gallium/drivers/v3d/v3d_cl.c
index 94e83a894a4..575bf5c18e4 100644
--- a/src/gallium/drivers/v3d/v3d_cl.c
+++ b/src/gallium/drivers/v3d/v3d_cl.c
@@ -74,7 +74,7 @@ v3d_cl_ensure_space_with_branch(struct v3d_cl *cl, uint32_t 
space)
                 v3d_bo_unreference(&cl->bo);
         } else {
                 /* Root the first RCL/BCL BO in the job. */
-                v3d_job_add_bo(cl->job, cl->bo);
+                v3d_job_add_bo(cl->job, new_bo);
         }
 
         cl->bo = new_bo;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to