Age | Commit message (Collapse) | Author |
|
Parse extension tokens to track current state of extension enables.
|
|
The #extension directive should not effect which extension preprocessor
symbols are defined/undefined; only whether/how the compiler accepts
language features defined by the extension.
|
|
|
|
Once if/elif evalutes to true, all subsequent conditions are always false.
|
|
|
|
|
|
Now the #extension name: disable/enable flags do the right thing.
Fixes glean/glsl1 "Preprocessor test (extension test 3)"
|
|
Since extension name and extension name string are the same, collapse
them into one name.
|
|
|
|
|
|
|
|
|
|
it would be nice if this stuff would be test built on mesa's primary
platform with mesa's primary build system.
Signed-off-by: Dave Airlie <airlied@redhat.com>
|
|
|
|
|
|
Already implemented in mesa compiler using predefined symbols.
|
|
|
|
This is quite messy. GLSL code has to be built twice: one for the
host OS, another for the target OS.
|
|
|
|
|
|
|
|
This way third parties are able to add supported extension strings.
|
|
Still don't know how to add glsl to mesa dependencies.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Make sl_pp_context struct opaque.
Move all public declarations to sl_pp_public.h.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|