Make src/compiler independent of src/mesa
The GLSL and NIR compilers and compiler tests no longer use src/mesa
.
Reason: It's cleaner. Second reason: Forking src/mesa
for classic drivers within the tree will be possible.
Major changes:
-
compiler/shader_enums.h
- a lot of enums frommtypes.h
andprog_parameter.h
and definitions fromconfig.h
are moved here -
compiler/symbol_table.c/h
- moved fromsrc/mesa/program
-
compiler/extensions_table.h
- moved frommesa/main
-
compiler/gl_shader_includes.c/h
- functions moved frommesa/main/shaderobj.c
for #include support in GLSL -
compiler/gl_driver.h
- a lot of types frommtypes.h
,prog_parameter.h
and other files are moved here, includinggl_constants
andgl_extensions
.- There is a new structure
gl_driver
, which replacesgl_context
for the compiler. It contains pointers togl_constants
andgl_extensions
and some callbacks likenew_program
,delete_program
, andset_error
for calling into the GL driver.
- There is a new structure
-
compiler/gl_utils.c/h
- a lot of functions frommesa/main
andmesa/program
are moved here, including_mesa_extension_table
.
This won't be easy to review. It's huge.