<div dir="ltr">On 20 August 2013 11:30, Paul Berry <span dir="ltr"><<a href="mailto:stereotype441@gmail.com" target="_blank">stereotype441@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">---<br>
src/mesa/drivers/dri/i965/brw_program.c | 11 +++++++++++<br>
1 file changed, 11 insertions(+)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c<br>
index fdb2848..c40d506 100644<br>
--- a/src/mesa/drivers/dri/i965/brw_program.c<br>
+++ b/src/mesa/drivers/dri/i965/brw_program.c<br>
@@ -102,6 +102,17 @@ static struct gl_program *brwNewProgram( struct gl_context *ctx,<br>
return NULL;<br>
}<br>
<br>
+ case MESA_GEOMETRY_PROGRAM: {<br>
+ struct brw_geometry_program *prog = CALLOC_STRUCT(brw_geometry_program);<br>
+ if (prog) {<br>
+ prog->id = get_new_program_id(brw->intelScreen);<br>
+<br>
+ return _mesa_init_geometry_program(ctx, &prog->program, target, id);<br>
+ } else {<br>
+ return NULL;<br>
+ }<br>
+ }<br>
+<br>
default:<br>
return _mesa_new_program(ctx, target, id);<br>
}<br></blockquote><div><br>From our in-person code review yesterday:<br><br>As a follow up patch, make the default case assert.<br></div></div></div></div>