Accelerating TFP for R200 - texture format Voodoo?
Michel Dänzer
michel at tungstengraphics.com
Tue Jun 19 01:39:25 PDT 2007
On Mon, 2007-06-18 at 20:57 +0100, Chris Rankin wrote:
>
> Could someone help me translate these texture format constants into something R200-compatible,
> please?
>
> R300_EASY_TX_FORMAT(X, Y, Z, W, W8Z8Y8X8)
> R300_EASY_TX_FORMAT(X, Y, Z, ONE, W8Z8Y8X8)
> R300_EASY_TX_FORMAT(X, Y, Z, ONE, Z5Y6X5)
I'd pick appropriate entries from tx_table_le in r200_texstate.c.
> I am also wondering how best to port the following reference to the "image_override" field, from
> the r300SetTexImages() function:
[...]
> I can see the "heritage" from the R200SetTexImages() function:
>
> if (baseImage->IsCompressed)
> t->pp_txpitch = (tObj->Image[0][t->base.firstLevel]->Width + 63) & ~(63);
> else
> t->pp_txpitch = ((tObj->Image[0][t->base.firstLevel]->Width * texelBytes) + 63) & ~(63);
> t->pp_txpitch -= 32;
>
> except that it's too different for me to just take an educated guess.
t->pp_txpitch corresponds to t->pitch_reg, so you should probably just
skip this block if (t->image_override) to leave the value set in
r200SetTexOffset.
P.S. This is no longer about xf86-video-ati, so please consider moving
to the dri-devel or mesa3d-dev list.
--
Earthling Michel Dänzer | http://tungstengraphics.com
Libre software enthusiast | Debian, X and DRI developer
More information about the xorg-driver-ati
mailing list