From 7421e34dd69dfb8911e99b6004f8806707c323d1 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 16 Jan 2018 21:53:29 -0700 Subject: mesa: move gl_external_samplers() to program.[ch] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The function is only called from a couple places. It doesn't make sense to have it in mtypes.h Reviewed-by: Nicolai Hähnle --- src/mesa/main/mtypes.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/mesa/main') diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 226eb94da91..1f1792e4263 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -46,7 +46,6 @@ #include "compiler/shader_info.h" #include "main/formats.h" /* MESA_FORMAT_COUNT */ #include "compiler/glsl/list.h" -#include "util/bitscan.h" #include "util/simple_mtx.h" #include "util/u_dynarray.h" @@ -2548,22 +2547,6 @@ struct gl_linked_shader }; -static inline GLbitfield -gl_external_samplers(const struct gl_program *prog) -{ - GLbitfield external_samplers = 0; - GLbitfield mask = prog->SamplersUsed; - - while (mask) { - int idx = u_bit_scan(&mask); - if (prog->sh.SamplerTargets[idx] == TEXTURE_EXTERNAL_INDEX) - external_samplers |= (1 << idx); - } - - 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 -- cgit v1.2.3