renderer: return an int in vrend_renderer_init

This is an internal API.
macos/master
Marc-André Lureau 9 years ago committed by Dave Airlie
parent ab0857c1b7
commit 0738199d41
  1. 3
      src/virglrenderer.c
  2. 4
      src/vrend_renderer.c
  3. 2
      src/vrend_renderer.h

@ -266,8 +266,7 @@ int virgl_renderer_init(void *cookie, int flags, struct virgl_renderer_callbacks
use_egl_context = 1; use_egl_context = 1;
} }
vrend_renderer_init(&virgl_cbs); return vrend_renderer_init(&virgl_cbs);
return 0;
} }
int virgl_renderer_get_fd_for_texture(uint32_t tex_id, int *fd) int virgl_renderer_get_fd_for_texture(uint32_t tex_id, int *fd)

@ -3483,7 +3483,7 @@ static GLenum tgsitargettogltarget(const enum pipe_texture_target target, int nr
return PIPE_BUFFER; return PIPE_BUFFER;
} }
void vrend_renderer_init(struct vrend_if_cbs *cbs) int vrend_renderer_init(struct vrend_if_cbs *cbs)
{ {
int gl_ver; int gl_ver;
virgl_gl_context gl_context; virgl_gl_context gl_context;
@ -3556,6 +3556,8 @@ void vrend_renderer_init(struct vrend_if_cbs *cbs)
list_inithead(&vrend_state.active_ctx_list); list_inithead(&vrend_state.active_ctx_list);
/* create 0 context */ /* create 0 context */
vrend_renderer_context_create_internal(0, 0, NULL); vrend_renderer_context_create_internal(0, 0, NULL);
return 0;
} }
void void

@ -98,7 +98,7 @@ struct vrend_if_cbs {
void (*destroy_gl_context)(virgl_gl_context ctx); void (*destroy_gl_context)(virgl_gl_context ctx);
int (*make_current)(int scanout, virgl_gl_context ctx); int (*make_current)(int scanout, virgl_gl_context ctx);
}; };
void vrend_renderer_init(struct vrend_if_cbs *cbs); int vrend_renderer_init(struct vrend_if_cbs *cbs);
void vrend_insert_format(struct vrend_format_table *entry, uint32_t bindings); void vrend_insert_format(struct vrend_format_table *entry, uint32_t bindings);
void vrend_insert_format_swizzle(int override_format, struct vrend_format_table *entry, uint32_t bindings, uint8_t swizzle[4]); void vrend_insert_format_swizzle(int override_format, struct vrend_format_table *entry, uint32_t bindings, uint8_t swizzle[4]);

Loading…
Cancel
Save