[Mesa-users] Fwd: dri2_init_screen

Daniel Melo Jorge da Cunha dmjcunha at gmail.com
Mon Feb 24 11:31:00 PST 2014


---------- Forwarded message ----------
From: Daniel Melo Jorge da Cunha <dmjcunha at gmail.com>
Date: 2014-02-22 18:03 GMT-04:00
Subject: Fwd: dri2_init_screen
To: mesa-users at lists.freedesktop.org




---------- Forwarded message ----------
From: Daniel Melo Jorge da Cunha <dmjcunha at gmail.com>
Date: 2014-02-19 13:40 GMT-04:00
Subject: dri2_init_screen
To: mesa-users at lists.freedesktop.org


Hi, I'm studying this piece of code but I'm having some difficulties...

dri2_init_screen is assigned to InitScreen in the variable
const struct __DriverAPIRec driDriverAPI.

But I searched in the whole mesa directory and haven't found any call to
InitScreen. Except in src/mesa/drivers/dri... But isn't this directory only
used
for old obsolete dri implementation?

And so, who calls InitScreen?

Some help... and thanks in advance.


Hi again. This may sound like a crying, but indeed it is.

I am in love studying mesa3d, but I really got stuck with this InitScreen...
Who is calling it? It could not be in the files in src/mesa/drivers/dri...
because that is for old obsolete dri implementation as far as I could learn.

So, any help are welcomed... it could be just take a look at function x in
file y, or just search in file z... anything are welcomed.

I'm willingly for any help, thanks

If someone cares... or wants to correct me...

InitScreen is called by /src/mesa/drivers/dri/common/dri_util.c in
*driver_configs = psp->driver->InitScreen(psp); which is up to date,
the dri2_init_screen.

What is obsolete is (for nouveau, for example)
/src/mesa/drivers/dri/nouveau/nouveau_screen.c in
const struct __DriverAPIRec nouveau_driver_api = {
.InitScreen      = nouveau_init_screen2,
...
This is not called any more.

Hope I'm right...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-users/attachments/20140224/07fa7c41/attachment.html>


More information about the mesa-users mailing list