[virglrenderer-devel] [PATCH 4/8] shader: make some functions static

Dave Airlie airlied at gmail.com
Mon May 21 03:07:25 UTC 2018


From: Dave Airlie <airlied at redhat.com>

---
 src/vrend_shader.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/vrend_shader.c b/src/vrend_shader.c
index 212f01e..83d45e3 100644
--- a/src/vrend_shader.c
+++ b/src/vrend_shader.c
@@ -270,7 +270,7 @@ static int add_sampler_array(struct dump_ctx *ctx, int first, int last, int svie
    return idx;
 }
 
-int lookup_sampler_array(struct dump_ctx *ctx, int index)
+static int lookup_sampler_array(struct dump_ctx *ctx, int index)
 {
    int i;
    for (i = 0; i < ctx->num_sampler_arrays; i++) {
@@ -2630,7 +2630,7 @@ static char *emit_header(struct dump_ctx *ctx, char *glsl_hdr)
    return glsl_hdr;
 }
 
-char vrend_shader_samplerreturnconv(enum tgsi_return_type type)
+static char vrend_shader_samplerreturnconv(enum tgsi_return_type type)
 {
    switch (type) {
    case TGSI_RETURN_TYPE_SINT:
-- 
2.14.3



More information about the virglrenderer-devel mailing list