mesa: minor reformatting, add const to gl_external_samplers()
authorBrian Paul <brianp@vmware.com>
Thu, 9 Nov 2017 05:07:08 +0000 (22:07 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 9 Nov 2017 21:13:59 +0000 (14:13 -0700)
This function should probably be moved elsewhere, too.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/mesa/main/mtypes.h

index d0926308d0ab2674b445425b12da06fe0c10f186..af9115e847759bc7341413f176e3456a9d0578b9 100644 (file)
@@ -2532,7 +2532,9 @@ struct gl_linked_shader
    struct glsl_symbol_table *symbols;
 };
 
-static inline GLbitfield gl_external_samplers(struct gl_program *prog)
+
+static inline GLbitfield
+gl_external_samplers(const struct gl_program *prog)
 {
    GLbitfield external_samplers = 0;
    GLbitfield mask = prog->SamplersUsed;
@@ -2546,6 +2548,7 @@ static inline GLbitfield gl_external_samplers(struct gl_program *prog)
    return external_samplers;
 }
 
+
 /**
  * Compile status enum. compile_skipped is used to indicate the compile
  * was skipped due to the shader matching one that's been seen before by