<div dir="ltr">On 1 February 2014 22:37, Jordan Justen <span dir="ltr"><<a href="mailto:jljusten@gmail.com" target="_blank">jljusten@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu, Jan 9, 2014 at 6:19 PM, Paul Berry <<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>> wrote:<br>
> ---<br>
> src/mesa/drivers/dri/i965/brw_context.h | 8 ++++++++<br>
> src/mesa/drivers/dri/i965/brw_program.c | 11 +++++++++++<br>
> 2 files changed, 19 insertions(+)<br>
><br>
> diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h<br>
> index df32ccb..abc1783 100644<br>
> --- a/src/mesa/drivers/dri/i965/brw_context.h<br>
> +++ b/src/mesa/drivers/dri/i965/brw_context.h<br>
> @@ -316,6 +316,14 @@ struct brw_fragment_program {<br>
> GLuint id; /**< serial no. to identify frag progs, never re-used */<br>
> };<br>
><br>
> +<br>
> +/** Subclass of Mesa compute program */<br>
> +struct brw_compute_program {<br>
> + struct gl_compute_program program;<br>
> + unsigned id; /**< serial no. to identify frag progs, never re-used */<br>
<br>
</div>"frag" in comment<br></blockquote><div><br></div><div>Whoops, thanks. I've changed it to "serial no. to identify compute progs...".<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Reviewed-by: Jordan Justen <<a href="mailto:jordan.l.justen@intel.com">jordan.l.justen@intel.com</a>><br>
<div><div class="h5"><br>
> +};<br>
> +<br>
> +<br>
> struct brw_shader {<br>
> struct gl_shader base;<br>
><br>
> diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c<br>
> index 90844e5..2d92acb 100644<br>
> --- a/src/mesa/drivers/dri/i965/brw_program.c<br>
> +++ b/src/mesa/drivers/dri/i965/brw_program.c<br>
> @@ -113,6 +113,17 @@ static struct gl_program *brwNewProgram( struct gl_context *ctx,<br>
> }<br>
> }<br>
><br>
> + case GL_COMPUTE_PROGRAM_NV: {<br>
> + struct brw_compute_program *prog = CALLOC_STRUCT(brw_compute_program);<br>
> + if (prog) {<br>
> + prog->id = get_new_program_id(brw->intelScreen);<br>
> +<br>
> + return _mesa_init_compute_program(ctx, &prog->program, target, id);<br>
> + } else {<br>
> + return NULL;<br>
> + }<br>
> + }<br>
> +<br>
> default:<br>
> assert(!"Unsupported target in brwNewProgram()");<br>
> return NULL;<br>
> --<br>
> 1.8.5.2<br>
><br>
</div></div>> _______________________________________________<br>
> mesa-dev mailing list<br>
> <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div><br></div></div>