nir: partially revert c2acf97fcc9b32e
[mesa.git] / src / gallium / drivers / r300 / r300_screen_buffer.h
index 3276f843b0cad81240f597e1abc6439fa5aa5602..14b849c8c9338f654e3f49ed0faaf9667d409461 100644 (file)
@@ -32,7 +32,6 @@
 #include "util/u_transfer.h"
 
 #include "r300_screen.h"
-#include "r300_winsys.h"
 #include "r300_context.h"
 
 /* Functions. */
 void r300_upload_index_buffer(struct r300_context *r300,
                              struct pipe_resource **index_buffer,
                              unsigned index_size, unsigned *start,
-                             unsigned count);
+                             unsigned count, const uint8_t *ptr);
 
 struct pipe_resource *r300_buffer_create(struct pipe_screen *screen,
                                         const struct pipe_resource *templ);
 
-struct pipe_resource *r300_user_buffer_create(struct pipe_screen *screen,
-                                             void *ptr, unsigned size,
-                                             unsigned bind);
-
-unsigned r300_buffer_is_referenced(struct pipe_context *context,
-                                  struct pipe_resource *buf,
-                                   enum r300_reference_domain domain);
-
 /* Inline functions. */
 
-static INLINE struct r300_buffer *r300_buffer(struct pipe_resource *buffer)
+static inline struct r300_buffer *r300_buffer(struct pipe_resource *buffer)
 {
     return (struct r300_buffer *)buffer;
 }