gallium/u_blitter: add gallium blit implementation
[mesa.git] / src / gallium / drivers / nouveau / nouveau_buffer.h
index 3d97ac33b7d133ff55e303799f284de7030ccebe..3b8ee72e72a3737deaa03fce804943549a0edf17 100644 (file)
@@ -89,4 +89,12 @@ boolean
 nouveau_user_buffer_upload(struct nouveau_context *, struct nv04_resource *,
                            unsigned base, unsigned size);
 
+/* Copy data to a scratch buffer and return address & bo the data resides in.
+ * Returns 0 on failure.
+ */
+uint64_t
+nouveau_scratch_data(struct nouveau_context *,
+                     const void *data, unsigned base, unsigned size,
+                     struct nouveau_bo **);
+
 #endif