vrend: remove unused ctx from shader state call

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
macos/master
Gert Wollny 4 years ago
parent 12e5c80b8a
commit d9b4e34933
  1. 8
      src/vrend_renderer.c

@ -3434,8 +3434,7 @@ static int vrend_shader_select(struct vrend_context *ctx,
return 0; return 0;
} }
static void *vrend_create_shader_state(UNUSED struct vrend_context *ctx, static void *vrend_create_shader_state(const struct pipe_stream_output_info *so_info,
const struct pipe_stream_output_info *so_info,
uint32_t req_local_mem, uint32_t req_local_mem,
unsigned pipe_shader_type) unsigned pipe_shader_type)
{ {
@ -3511,7 +3510,7 @@ int vrend_create_shader(struct vrend_context *ctx,
} }
if (new_shader) { if (new_shader) {
sel = vrend_create_shader_state(ctx, so_info, req_local_mem, type); sel = vrend_create_shader_state(so_info, req_local_mem, type);
if (sel == NULL) if (sel == NULL)
return ENOMEM; return ENOMEM;
@ -4362,8 +4361,7 @@ void vrend_inject_tcs(struct vrend_context *ctx, int vertices_per_patch)
struct pipe_stream_output_info so_info; struct pipe_stream_output_info so_info;
memset(&so_info, 0, sizeof(so_info)); memset(&so_info, 0, sizeof(so_info));
struct vrend_shader_selector *sel = vrend_create_shader_state(ctx, struct vrend_shader_selector *sel = vrend_create_shader_state(&so_info,
&so_info,
false, PIPE_SHADER_TESS_CTRL); false, PIPE_SHADER_TESS_CTRL);
struct vrend_shader *shader; struct vrend_shader *shader;
shader = CALLOC_STRUCT(vrend_shader); shader = CALLOC_STRUCT(vrend_shader);

Loading…
Cancel
Save