uint64_t brw;
};
-/** Subclass of Mesa vertex program */
-struct brw_vertex_program {
+
+/** Subclass of Mesa program */
+struct brw_program {
struct gl_program program;
GLuint id;
};
return (struct brw_context *)ctx;
}
-static inline struct brw_vertex_program *
-brw_vertex_program(struct gl_program *p)
+static inline struct brw_program *
+brw_program(struct gl_program *p)
{
- return (struct brw_vertex_program *) p;
+ return (struct brw_program *) p;
}
-static inline const struct brw_vertex_program *
-brw_vertex_program_const(const struct gl_program *p)
+static inline const struct brw_program *
+brw_program_const(const struct gl_program *p)
{
- return (const struct brw_vertex_program *) p;
+ return (const struct brw_program *) p;
}
static inline struct brw_tess_ctrl_program *
switch (target) {
case GL_VERTEX_PROGRAM_ARB: {
- struct brw_vertex_program *prog = CALLOC_STRUCT(brw_vertex_program);
+ struct brw_program *prog = CALLOC_STRUCT(brw_program);
if (prog) {
prog->id = get_new_program_id(brw->screen);
break;
}
case GL_VERTEX_PROGRAM_ARB: {
- struct brw_vertex_program *newVP = brw_vertex_program(prog);
- const struct brw_vertex_program *curVP =
- brw_vertex_program_const(brw->vertex_program);
+ struct brw_program *newVP = brw_program(prog);
+ const struct brw_program *curVP =
+ brw_program_const(brw->vertex_program);
if (newVP == curVP)
brw->ctx.NewDriverState |= BRW_NEW_VERTEX_PROGRAM;
bool
brw_codegen_vs_prog(struct brw_context *brw,
struct gl_shader_program *prog,
- struct brw_vertex_program *vp,
+ struct brw_program *vp,
struct brw_vs_prog_key *key)
{
const struct brw_compiler *compiler = brw->screen->compiler;
{
struct gl_context *ctx = &brw->ctx;
/* BRW_NEW_VERTEX_PROGRAM */
- struct brw_vertex_program *vp =
- (struct brw_vertex_program *)brw->vertex_program;
+ struct brw_program *vp = (struct brw_program *)brw->vertex_program;
struct gl_program *prog = (struct gl_program *) brw->vertex_program;
memset(key, 0, sizeof(*key));
struct gl_shader_program **current = ctx->_Shader->CurrentProgram;
struct brw_vs_prog_key key;
/* BRW_NEW_VERTEX_PROGRAM */
- struct brw_vertex_program *vp =
- (struct brw_vertex_program *)brw->vertex_program;
+ struct brw_program *vp = (struct brw_program *)brw->vertex_program;
if (!brw_vs_state_dirty(brw))
return;
struct brw_stage_prog_data *old_prog_data = brw->vs.base.prog_data;
bool success;
- struct brw_vertex_program *bvp = brw_vertex_program(prog);
+ struct brw_program *bvp = brw_program(prog);
memset(&key, 0, sizeof(key));
bool
brw_codegen_vs_prog(struct brw_context *brw,
struct gl_shader_program *prog,
- struct brw_vertex_program *vp,
+ struct brw_program *vp,
struct brw_vs_prog_key *key);
void
struct brw_stage_state *stage_state = &brw->vs.base;
/* BRW_NEW_VERTEX_PROGRAM */
- struct brw_vertex_program *vp =
- (struct brw_vertex_program *) brw->vertex_program;
+ struct brw_program *vp = (struct brw_program *) brw->vertex_program;
/* BRW_NEW_VS_PROG_DATA */
const struct brw_stage_prog_data *prog_data = brw->vs.base.prog_data;
struct brw_stage_state *stage_state = &brw->vs.base;
/* _BRW_NEW_VERTEX_PROGRAM */
- const struct brw_vertex_program *vp =
- brw_vertex_program_const(brw->vertex_program);
+ const struct brw_program *vp = brw_program_const(brw->vertex_program);
/* BRW_NEW_VS_PROG_DATA */
const struct brw_stage_prog_data *prog_data = brw->vs.base.prog_data;