#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"
};
-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
#include "prog_cache.h"
#include "prog_parameter.h"
#include "prog_instruction.h"
+#include "util/bitscan.h"
#include "util/ralloc.h"
#include "util/u_atomic.h"
}
return 1;
}
+
+
+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;
+}