From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kristian =?iso-8859-1?Q?H=F8gsberg?= Subject: Re: [PATCH 1/6] drivers/dri/common: A few dri2 functions are not actually DRI2 specific Date: Fri, 1 Nov 2013 10:48:14 -0700 Message-ID: <20131101174814.GA2445@tokamak.local> References: <1383261196-25093-1-git-send-email-keithp@keithp.com> <1383261196-25093-2-git-send-email-keithp@keithp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <1383261196-25093-2-git-send-email-keithp@keithp.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org To: Keith Packard Cc: dri-devel@lists.sourceforge.net, mesa3d-dev@lists.sourceforge.net List-Id: dri-devel@lists.freedesktop.org On Thu, Oct 31, 2013 at 04:13:11PM -0700, Keith Packard wrote: > This just renames them so that they can be used with the DRI3 extension > without causing too much confusion. > = > Signed-off-by: Keith Packard > --- > src/mesa/drivers/dri/common/dri_util.c | 50 +++++++++++++++++-----------= ------ > 1 file changed, 25 insertions(+), 25 deletions(-) Reviewed-by: Kristian H=F8gsberg > diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dr= i/common/dri_util.c > index c28b0fc..539fb4b 100644 > --- a/src/mesa/drivers/dri/common/dri_util.c > +++ b/src/mesa/drivers/dri/common/dri_util.c > @@ -291,13 +291,13 @@ validate_context_version(__DRIscreen *screen, > /*@{*/ > = > static __DRIcontext * > -dri2CreateContextAttribs(__DRIscreen *screen, int api, > - const __DRIconfig *config, > - __DRIcontext *shared, > - unsigned num_attribs, > - const uint32_t *attribs, > - unsigned *error, > - void *data) > +driCreateContextAttribs(__DRIscreen *screen, int api, > + const __DRIconfig *config, > + __DRIcontext *shared, > + unsigned num_attribs, > + const uint32_t *attribs, > + unsigned *error, > + void *data) > { > __DRIcontext *context; > const struct gl_config *modes =3D (config !=3D NULL) ? &config->mode= s : NULL; > @@ -442,22 +442,22 @@ dri2CreateContextAttribs(__DRIscreen *screen, int a= pi, > } > = > static __DRIcontext * > -dri2CreateNewContextForAPI(__DRIscreen *screen, int api, > - const __DRIconfig *config, > - __DRIcontext *shared, void *data) > +driCreateNewContextForAPI(__DRIscreen *screen, int api, > + const __DRIconfig *config, > + __DRIcontext *shared, void *data) > { > unsigned error; > = > - return dri2CreateContextAttribs(screen, api, config, shared, 0, NULL, > - &error, data); > + return driCreateContextAttribs(screen, api, config, shared, 0, NULL, > + &error, data); > } > = > static __DRIcontext * > -dri2CreateNewContext(__DRIscreen *screen, const __DRIconfig *config, > - __DRIcontext *shared, void *data) > +driCreateNewContext(__DRIscreen *screen, const __DRIconfig *config, > + __DRIcontext *shared, void *data) > { > - return dri2CreateNewContextForAPI(screen, __DRI_API_OPENGL, > - config, shared, data); > + return driCreateNewContextForAPI(screen, __DRI_API_OPENGL, > + config, shared, data); > } > = > /** > @@ -609,9 +609,9 @@ static void dri_put_drawable(__DRIdrawable *pdp) > } > = > static __DRIdrawable * > -dri2CreateNewDrawable(__DRIscreen *screen, > - const __DRIconfig *config, > - void *data) > +driCreateNewDrawable(__DRIscreen *screen, > + const __DRIconfig *config, > + void *data) > { > __DRIdrawable *pdraw; > = > @@ -698,7 +698,7 @@ dri2ConfigQueryf(__DRIscreen *screen, const char *var= , GLfloat *val) > } > = > static unsigned int > -dri2GetAPIMask(__DRIscreen *screen) > +driGetAPIMask(__DRIscreen *screen) > { > return screen->api_mask; > } > @@ -741,13 +741,13 @@ const __DRIdri2Extension driDRI2Extension =3D { > .base =3D { __DRI_DRI2, 4 }, > = > .createNewScreen =3D dri2CreateNewScreen, > - .createNewDrawable =3D dri2CreateNewDrawable, > - .createNewContext =3D dri2CreateNewContext, > - .getAPIMask =3D dri2GetAPIMask, > - .createNewContextForAPI =3D dri2CreateNewContextForAPI, > + .createNewDrawable =3D driCreateNewDrawable, > + .createNewContext =3D driCreateNewContext, > + .getAPIMask =3D driGetAPIMask, > + .createNewContextForAPI =3D driCreateNewContextForAPI, > .allocateBuffer =3D dri2AllocateBuffer, > .releaseBuffer =3D dri2ReleaseBuffer, > - .createContextAttribs =3D dri2CreateContextAttribs, > + .createContextAttribs =3D driCreateContextAttribs > .createNewScreen2 =3D dri2CreateNewScreen2, > }; > = > -- = > 1.8.4.2 > = > = > -------------------------------------------------------------------------= ----- > Android is increasing in popularity, but the open development platform th= at > developers love is also attractive to malware creators. Download this whi= te > paper to learn more about secure code signing practices that can help keep > Android apps secure. > http://pubads.g.doubleclick.net/gampad/clk?id=3D65839951&iu=3D/4140/ostg.= clktrk > -- > _______________________________________________ > Dri-devel mailing list > Dri-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dri-devel > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/dri-devel ---------------------------------------------------------------------------= --- November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most = from the latest Intel processors and coprocessors. See abstracts and regist= er http://pubads.g.doubleclick.net/gampad/clk?id=3D60136231&iu=3D/4140/ostg.cl= ktrk -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel