Refactor the routines for "calculating" the size of the WARP microcode. The
authorIan Romanick <idr@us.ibm.com>
Sun, 22 May 2005 04:36:33 +0000 (04:36 +0000)
committerIan Romanick <idr@us.ibm.com>
Sun, 22 May 2005 04:36:33 +0000 (04:36 +0000)
commit955791f0645d4b61bd20d817c532dda3a40aaddd
tree0bbe4af4013db83d8a952d05691c9b17bdb9c6c6
parent75cb43ccd73dd2c8c196d209862b8a3ea4e433cb
Refactor the routines for "calculating" the size of the WARP microcode. The
    two routines (one for G200 and one for G400) were replaced with static
    const variables and a single function that returns the correct size.
    The code to generate an error if the allocated WARP region is too small
    was refactored from mga_warp_install_{g200,g400}_microcode to
    mga_wrap_install_microcode.
mga_warp_microcode_size is global to the MGA DRM because it will soon be
    used by code in another file.
shared-core/mga_drv.h
shared-core/mga_warp.c