mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
i965/gs: Add a case to brwNewProgram() for geometry shaders.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
ebbb8c0c76
commit
591fc0861c
1 changed files with 11 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue