From: Samuel Pitoiset Date: Thu, 27 Jul 2017 14:06:00 +0000 (+0200) Subject: st/mesa: remove useless st_bufferobj_validate_usage() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3f38e64270c03c9a9eb5368c06dcfd1896fbf6d0;p=mesa.git st/mesa: remove useless st_bufferobj_validate_usage() Signed-off-by: Samuel Pitoiset Reviewed-by: Emil Velikov --- diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.c b/src/mesa/state_tracker/st_cb_bufferobjects.c index 68ec2501015..c19830d9c91 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 54e6a21ce57..b9f91b07481 100644 --- a/src/mesa/state_tracker/st_cb_bufferobjects.h +++ b/src/mesa/state_tracker/st_cb_bufferobjects.h @@ -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);