diff options
author | Brian Paul <[email protected]> | 2008-12-12 10:11:41 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-12-12 10:11:41 -0700 |
commit | aeeb9bca2712dbf8540486fc584e214a8af4c7c4 (patch) | |
tree | b9f5e2144b7e5d3531dd9ebe9b0d3de25689595f /src/mesa/shader/slang/slang_codegen.c | |
parent | ea9dc3879f4cbbaa8ce9e305884a4afdc1fdd28a (diff) |
mesa: move some glsl compiler functions to different files to be more consistant
Diffstat (limited to 'src/mesa/shader/slang/slang_codegen.c')
-rw-r--r-- | src/mesa/shader/slang/slang_codegen.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c index d50319432e7..02de8e7ce54 100644 --- a/src/mesa/shader/slang/slang_codegen.c +++ b/src/mesa/shader/slang/slang_codegen.c @@ -61,6 +61,20 @@ static slang_ir_node * _slang_gen_operation(slang_assemble_ctx * A, slang_operation *oper); +/** + * Retrieves type information about an operation. + * Returns GL_TRUE on success. + * Returns GL_FALSE otherwise. + */ +static GLboolean +_slang_typeof_operation(const struct slang_assemble_ctx_ * A, + slang_operation * op, + slang_typeinfo * ti) +{ + return _slang_typeof_operation_(op, &A->space, ti, A->atoms, A->log); +} + + static GLboolean is_sampler_type(const slang_fully_specified_type *t) { |