r300/compiler: Fix error in OMOD optimization
[mesa.git] / src / gallium / drivers / r300 / r300_transfer.h
index 60d1d3dc85c3d71f123a07b09272afbeb0561814..7977ef516f2181b380ca9d938428ad0d787e340c 100644 (file)
 #ifndef R300_TRANSFER
 #define R300_TRANSFER
 
-#include "pipe/p_screen.h"
+#include "pipe/p_context.h"
+
+struct r300_context;
+
+struct pipe_transfer*
+r300_texture_get_transfer(struct pipe_context *ctx,
+                          struct pipe_resource *texture,
+                          unsigned level,
+                          unsigned usage,
+                          const struct pipe_box *box);
+
+void
+r300_texture_transfer_destroy(struct pipe_context *ctx,
+                              struct pipe_transfer *trans);
+
+void*
+r300_texture_transfer_map(struct pipe_context *ctx,
+                          struct pipe_transfer *transfer);
+
+void
+r300_texture_transfer_unmap(struct pipe_context *ctx,
+                            struct pipe_transfer *transfer);
 
-void r300_init_screen_transfer_functions(struct pipe_screen *screen);
 
 #endif