From 59b9cb549af71f26e2c7b3b7d8a3ba42b1e3a3d6 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 20 Mar 2015 14:20:48 +1000 Subject: [PATCH] renderer: fix some minor sparse warnings --- src/virglrenderer.c | 2 +- src/vrend_blitter.c | 2 +- src/vrend_renderer.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/virglrenderer.c b/src/virglrenderer.c index c20633e..95cda9f 100644 --- a/src/virglrenderer.c +++ b/src/virglrenderer.c @@ -43,7 +43,7 @@ #include "virglrenderer.h" #include "virgl_egl.h" -struct virgl_egl *egl_info; +static struct virgl_egl *egl_info; /* new API - just wrap internal API for now */ int virgl_renderer_resource_create(struct virgl_renderer_resource_create_args *args, struct iovec *iov, uint32_t num_iovs) diff --git a/src/vrend_blitter.c b/src/vrend_blitter.c index 030bd32..c6a6f17 100644 --- a/src/vrend_blitter.c +++ b/src/vrend_blitter.c @@ -540,7 +540,7 @@ void vrend_renderer_blit_gl(struct vrend_context *ctx, glUniform1i(samp_loc, 0); - glVertexAttribPointer(pos_loc, 4, GL_FLOAT, GL_FALSE, 8 * sizeof(float), 0); + glVertexAttribPointer(pos_loc, 4, GL_FLOAT, GL_FALSE, 8 * sizeof(float), (void *)0); glVertexAttribPointer(tc_loc, 4, GL_FLOAT, GL_FALSE, 8 * sizeof(float), (void *)(4 * sizeof(float))); glEnableVertexAttribArray(pos_loc); diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 1ba7f74..bd2f693 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -976,7 +976,7 @@ static struct vrend_linked_shader_program *lookup_shader_program(struct vrend_co return ent; } } - return 0; + return NULL; } static void vrend_destroy_program(struct vrend_linked_shader_program *ent)