diff options
author | Paul Berry <[email protected]> | 2013-07-02 08:02:47 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-08-23 11:03:05 -0700 |
commit | 591fc0861cef499a355c1816641c8c963846b001 (patch) | |
tree | de7e83b15168f5ddeef6e791cec3abc55ee40107 /src | |
parent | ebbb8c0c76dd5d0ce072676efb1ca60eb15e16ab (diff) |
i965/gs: Add a case to brwNewProgram() for geometry shaders.
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_program.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c index fdb2848261c..c40d506750e 100644 --- a/src/mesa/drivers/dri/i965/brw_program.c +++ b/src/mesa/drivers/dri/i965/brw_program.c @@ -102,6 +102,17 @@ static struct gl_program *brwNewProgram( struct gl_context *ctx, return NULL; } + case MESA_GEOMETRY_PROGRAM: { + struct brw_geometry_program *prog = CALLOC_STRUCT(brw_geometry_program); + if (prog) { + prog->id = get_new_program_id(brw->intelScreen); + + return _mesa_init_geometry_program(ctx, &prog->program, target, id); + } else { + return NULL; + } + } + default: return _mesa_new_program(ctx, target, id); } |