On Sat, Sep 19, 2015 at 3:50 PM, Jordan Justen <[email protected]> wrote: > Signed-off-by: Jordan Justen <[email protected]> > --- > src/mesa/drivers/dri/i965/brw_compute.c | 57 > ++++++++++++++++++++++++++++++--- > src/mesa/drivers/dri/i965/brw_defines.h | 2 ++ > src/mesa/drivers/dri/i965/intel_reg.h | 5 +++ > 3 files changed, 60 insertions(+), 4 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_compute.c > b/src/mesa/drivers/dri/i965/brw_compute.c > index 5693ab5..5641823 100644 > --- a/src/mesa/drivers/dri/i965/brw_compute.c > +++ b/src/mesa/drivers/dri/i965/brw_compute.c > @@ -31,14 +31,46 @@ > #include "brw_draw.h" > #include "brw_state.h" > #include "intel_batchbuffer.h" > +#include "intel_buffer_objects.h" > #include "brw_defines.h" > > > static void > -brw_emit_gpgpu_walker(struct brw_context *brw, const GLuint *num_groups) > +brw_emit_gpgpu_walker(struct brw_context *brw, > + const void *compute_param, > + bool indirect) > { > const struct brw_cs_prog_data *prog_data = brw->cs.prog_data; > > + const GLuint *num_groups; > + uint32_t indirect_flag; > + > + if (!indirect) { > + num_groups = (const GLuint *)compute_param; > + indirect_flag = 0; > + } else { > + GLintptr indirect_offset = *(GLintptr*)compute_param;
"GLintptr *" (space between type and *) _______________________________________________ mesa-dev mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-dev
