st/mesa: remove useless st_bufferobj_validate_usage()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 27 Jul 2017 14:06:00 +0000 (16:06 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 28 Jul 2017 09:22:40 +0000 (11:22 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/mesa/state_tracker/st_cb_bufferobjects.c
src/mesa/state_tracker/st_cb_bufferobjects.h

index 68ec2501015f2841ffff8a390d3cc96c4fafe6af..c19830d9c91f7dcf3146902aab50ed43d1cb40e8 100644 (file)
@@ -548,19 +548,6 @@ st_clear_buffer_subdata(struct gl_context *ctx,
                       clearValue, clearValueSize);
 }
 
-
-/* TODO: if buffer wasn't created with appropriate usage flags, need
- * to recreate it now and copy contents -- or possibly create a
- * gallium entrypoint to extend the usage flags and let the driver
- * decide if a copy is necessary.
- */
-void
-st_bufferobj_validate_usage(struct st_context *st,
-                            struct st_buffer_object *obj,
-                            unsigned usage)
-{
-}
-
 static void
 st_bufferobj_page_commitment(struct gl_context *ctx,
                              struct gl_buffer_object *bufferObj,
index 54e6a21ce57acebdb0f65a2352f83668081935f6..b9f91b07481513d89af48561feeeb64e2d68a6da 100644 (file)
@@ -56,12 +56,6 @@ st_buffer_object(struct gl_buffer_object *obj)
 }
 
 
-extern void
-st_bufferobj_validate_usage(struct st_context *st,
-                           struct st_buffer_object *obj,
-                           unsigned usage);
-
-
 extern void
 st_init_bufferobject_functions(struct pipe_screen *screen,
                                struct dd_function_table *functions);