vc4: Add support for the FACE semantic.
[mesa.git] / src / gallium / drivers / vc4 / vc4_cl.c
index 5c660d8d7a81fcf1f06fb6bff3f7bfabeb3803e9..29b956e6e9a8bd0af294e1a4fd5673f59d3c1e8d 100644 (file)
@@ -61,10 +61,7 @@ vc4_gem_hindex(struct vc4_context *vc4, struct vc4_bo *bo)
         }
 
         cl_u32(&vc4->bo_handles, bo->handle);
-
-#ifdef USE_VC4_SIMULATOR
-        cl_ptr(&vc4->bo_pointers, bo);
-#endif
+        cl_ptr(&vc4->bo_pointers, vc4_bo_reference(bo));
 
         return hindex;
 }