summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_program.c
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-10-18 15:26:57 +1100
committerTimothy Arceri <[email protected]>2016-10-26 14:29:36 +1100
commitcb2d18194450fe5bb2274617b704eca80a1ca9f9 (patch)
tree0ae969daa02f3f2b3cdef412702d4e5dc25e31fc /src/mesa/drivers/dri/i965/brw_program.c
parent3423488d55b9c483fcdb3996eb89b424c1031d24 (diff)
i965: replace brw_vertex_program with new generic brw_program
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_program.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_program.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c
index 08520a394a0..69c467d9a3d 100644
--- a/src/mesa/drivers/dri/i965/brw_program.c
+++ b/src/mesa/drivers/dri/i965/brw_program.c
@@ -131,7 +131,7 @@ static struct gl_program *brwNewProgram( struct gl_context *ctx,
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);
@@ -244,9 +244,9 @@ brwProgramStringNotify(struct gl_context *ctx,
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;