X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Fsvga%2Fsvga_pipe_constants.c;h=4ef8fb7379638c373442f343cf47ddf002392510;hb=bab4f6c724d384cfee7e7f98ff3b52648850641d;hp=b88cdb1e63232782187ec669164c0263af2f2c88;hpb=ef534b9389bc74b007d76d2a1776068d23e5b887;p=mesa.git diff --git a/src/gallium/drivers/svga/svga_pipe_constants.c b/src/gallium/drivers/svga/svga_pipe_constants.c index b88cdb1e632..4ef8fb73796 100644 --- a/src/gallium/drivers/svga/svga_pipe_constants.c +++ b/src/gallium/drivers/svga/svga_pipe_constants.c @@ -31,11 +31,8 @@ #include "svga_context.h" #include "svga_resource_buffer.h" -/*********************************************************************** - * Constant buffers - */ -struct svga_constbuf +struct svga_constbuf { unsigned type; float (*data)[4]; @@ -44,9 +41,10 @@ struct svga_constbuf -static void svga_set_constant_buffer(struct pipe_context *pipe, - uint shader, uint index, - const struct pipe_constant_buffer *cb) +static void +svga_set_constant_buffer(struct pipe_context *pipe, + enum pipe_shader_type shader, uint index, + const struct pipe_constant_buffer *cb) { struct svga_screen *svgascreen = svga_screen(pipe->screen); struct svga_context *svga = svga_context(pipe); @@ -95,8 +93,8 @@ static void svga_set_constant_buffer(struct pipe_context *pipe, } - -void svga_init_constbuffer_functions( struct svga_context *svga ) +void +svga_init_constbuffer_functions(struct svga_context *svga) { svga->pipe.set_constant_buffer = svga_set_constant_buffer; }