diff options
author | Michal Krol <[email protected]> | 2006-08-02 14:51:24 +0000 |
---|---|---|
committer | Michal Krol <[email protected]> | 2006-08-02 14:51:24 +0000 |
commit | b60a3da43f9a5fecf05058aa04bff12f710851f1 (patch) | |
tree | 738aca6042270f07b6e2d52a305cd8e2dce9158e /src/mesa/shader/slang/slang_compile.h | |
parent | 1616f5b621d5f3c24dc5a21673cccb0b4143df2a (diff) |
Enable vec4 extension for x86 back-end.
Diffstat (limited to 'src/mesa/shader/slang/slang_compile.h')
-rw-r--r-- | src/mesa/shader/slang/slang_compile.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_compile.h b/src/mesa/shader/slang/slang_compile.h index 89c3dcfdba2..02987f4e1bc 100644 --- a/src/mesa/shader/slang/slang_compile.h +++ b/src/mesa/shader/slang/slang_compile.h @@ -64,9 +64,20 @@ _slang_code_unit_ctr (slang_code_unit *, struct slang_code_object_ *); extern GLvoid _slang_code_unit_dtr (slang_code_unit *); +#define SLANG_BUILTIN_CORE 0 +#define SLANG_BUILTIN_COMMON 1 +#define SLANG_BUILTIN_TARGET 2 + +#if defined(USE_X86_ASM) || defined(SLANG_X86) +#define SLANG_BUILTIN_VEC4 3 +#define SLANG_BUILTIN_TOTAL 4 +#else +#define SLANG_BUILTIN_TOTAL 3 +#endif + typedef struct slang_code_object_ { - slang_code_unit builtin[3]; + slang_code_unit builtin[SLANG_BUILTIN_TOTAL]; slang_code_unit unit; slang_assembly_file assembly; slang_machine machine; |