[Mesa-dev] [PATCH 2/2] st/mesa: remove useless st_bufferobj_validate_usage()

Samuel Pitoiset samuel.pitoiset at gmail.com
Thu Jul 27 14:06:00 UTC 2017


Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/mesa/state_tracker/st_cb_bufferobjects.c | 13 -------------
 src/mesa/state_tracker/st_cb_bufferobjects.h |  6 ------
 2 files changed, 19 deletions(-)

diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.c b/src/mesa/state_tracker/st_cb_bufferobjects.c
index 68ec250101..c19830d9c9 100644
--- a/src/mesa/state_tracker/st_cb_bufferobjects.c
+++ b/src/mesa/state_tracker/st_cb_bufferobjects.c
@@ -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,
diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.h b/src/mesa/state_tracker/st_cb_bufferobjects.h
index 54e6a21ce5..b9f91b0748 100644
--- a/src/mesa/state_tracker/st_cb_bufferobjects.h
+++ b/src/mesa/state_tracker/st_cb_bufferobjects.h
@@ -57,12 +57,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);
 
-- 
2.13.3



More information about the mesa-dev mailing list