glsl2: Start integrating ir_to_mesa.cpp into shader_api.h

The compiler is now called by the driver, and generates program
instructions.  Parameter lists are still not set up, so the driver
chokes on it shortly thereafter.
This commit is contained in:
Eric Anholt
2010-06-25 12:37:21 -07:00
parent 7f2bf62d25
commit 364fcd8ee1
4 changed files with 206 additions and 20 deletions

View File

@@ -23,8 +23,11 @@
#include <GL/gl.h>
#include "main/mtypes.h"
extern "C" {
#include "shader/prog_parameter.h"
#include "shader/prog_uniform.h"
}
/**
* Based on gl_shader in Mesa's mtypes.h.
@@ -41,6 +44,7 @@ struct glsl_shader {
struct exec_list ir;
struct glsl_symbol_table *symbols;
struct gl_shader *mesa_shader;
};
/**