Re: [Dri-devel] Re: Porting guide

2002-04-11 Thread José Fonseca

On 2002.04.11 07:40 graeme fisher wrote:
 Hi,
 
 Does anyone know if there is a detailed porting guide for porting a
 graphics driver using Mesa 3.x to one using Mesa 4.x.
 

Is not really a porting guide but by comparing the following notes you get 
a good picture:

http://dri.sourceforge.net/doc/faq/architecture.html#MESA-INTERNALS
http://dri.sourceforge.net/doc/faq/architecture.html#MESA-4X-INTERNALS

 Also, roughly how much time would it take to do the port?

The mach64 branch was recently ported to Mesa 4.x. There were too people 
working on this. I would say the bulk of the work was roughly done in 7 
days/men.

The best thing to do is to use a driver that has been ported as a 
comparison term. In the mach64 was used the r128. For each file of the 
driver I was working on I always had two xxdiff windows open: one 
comparing r128 3.x driver to the r128 4.x open, and other comparing the 
r128 3.x driver to the mach64 3.x driver.

The steps were basically the following:
  1. merge the mesa 4.x code
  2. get everything to compile without missing headers problems
  3. update the context strucutures
  3. start by the easiest files, i.e., those that require less changes 
(this way you already accumulated know-how when you get to the hard ones).
  4. get everything to compile without errors
  5. get everything to link without missing simbols

Then the r128 4.x driver was compared to the mach64 4.x driver to search 
for unexplainable differences.

After this is a matter of debugging, which took much more time than this.

 
 Thanks
 Graeme
 

Regards,

José Fonseca

___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel



Re: [Dri-devel] Re: Porting guide

2002-04-11 Thread Brian Paul

José Fonseca wrote:
 
 On 2002.04.11 07:40 graeme fisher wrote:
  Hi,
 
  Does anyone know if there is a detailed porting guide for porting a
  graphics driver using Mesa 3.x to one using Mesa 4.x.
 
 
 Is not really a porting guide but by comparing the following notes you get
 a good picture:
 
 http://dri.sourceforge.net/doc/faq/architecture.html#MESA-INTERNALS
 http://dri.sourceforge.net/doc/faq/architecture.html#MESA-4X-INTERNALS


Just to clarify the issue- the big changes in Mesa were made between
Mesa 3.4.x and Mesa 3.5.  That's when Keith re-modularized the source
code into separate modules for TL, s/w rasterization, etc.

Keep in mind Mesa's version numbering scheme:  even-numbered minor
versions (like 3.4) are stable releases with only incremental changes
while odd-numbered minor versions (like 3.5) are development releases
(lots of changes).

The changes from Mesa 3.5 to 4.0.x were only incremental.

The major number is incremented to coincide with OpenGL releases:

OpenGL 1.0  -  Mesa 1.x
OpenGL 1.1  -  Mesa 2.x
OpenGL 1.2  -  Mesa 3.x
OpenGL 1.3  -  Mesa 4.x

-Brian

___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel