[Mesa-dev] [PATCH 18/18] i965/gen8: Expose state base address setup

Pohjolainen, Topi topi.pohjolainen at intel.com
Thu Apr 23 12:01:52 PDT 2015


On Thu, Apr 23, 2015 at 11:53:57AM -0700, Matt Turner wrote:
> On Wed, Apr 22, 2015 at 1:47 PM, Topi Pohjolainen
> <topi.pohjolainen at intel.com> wrote:
> > Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
> > ---
> >  src/mesa/drivers/dri/i965/brw_state.h       | 3 +++
> >  src/mesa/drivers/dri/i965/gen8_misc_state.c | 4 ++--
> >  2 files changed, 5 insertions(+), 2 deletions(-)
> >
> > diff --git a/src/mesa/drivers/dri/i965/brw_state.h b/src/mesa/drivers/dri/i965/brw_state.h
> > index 0c4f65e..73dcca1 100644
> > --- a/src/mesa/drivers/dri/i965/brw_state.h
> > +++ b/src/mesa/drivers/dri/i965/brw_state.h
> > @@ -171,6 +171,9 @@ void brw_upload_invariant_state(struct brw_context *brw);
> >  uint32_t
> >  brw_depthbuffer_format(struct brw_context *brw);
> >
> > +/* gen8_misc_state.c */
> > +void gen8_upload_state_base_address(struct brw_context *brw);
> > +
> >
> >  /***********************************************************************
> >   * brw_state.c
> > diff --git a/src/mesa/drivers/dri/i965/gen8_misc_state.c b/src/mesa/drivers/dri/i965/gen8_misc_state.c
> > index 88e425f..b20038e 100644
> > --- a/src/mesa/drivers/dri/i965/gen8_misc_state.c
> > +++ b/src/mesa/drivers/dri/i965/gen8_misc_state.c
> > @@ -29,7 +29,7 @@
> >  /**
> >   * Define the base addresses which some state is referenced from.
> >   */
> > -static void upload_state_base_address(struct brw_context *brw)
> > +void gen8_upload_state_base_address(struct brw_context *brw)
> 
> Presumably this patch is needed for something else?
> gen8_upload_state_base_address is still only used in this file.

Yes, this is just preparing things for my "launch glsl-based programs
using blorp-logic"-series.


More information about the mesa-dev mailing list