diff options
author | George Sapountzis <gsap7@yahoo.gr> | 2006-08-12 22:12:07 +0300 |
---|---|---|
committer | George Sapountzis <gsap7@yahoo.gr> | 2006-08-12 22:12:07 +0300 |
commit | 43aaed99950640c3695b3c2b91faabf00c6338a7 (patch) | |
tree | 0735716525b04472bf96c9cd9ffcca09c4e97c70 /src/atistruct.h | |
parent | d113f40fd97408661193895ff3aa82262f100143 (diff) |
[mach64] RENDER support (bug #6877).
RENDER accleration is disabled by default. It is strongly recommended that the
patch from bug #6772 and the 'exa-damagetrack branch' are merged in the xserver
before enabling RENDER acceleration. To enable RENDER acceleration, add the
following in xorg.conf:
Section "Device"
[...]
Option "AccelMethod" "exa"
Option "RenderAccel" "true"
EndSection
Diffstat (limited to 'src/atistruct.h')
-rw-r--r-- | src/atistruct.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/atistruct.h b/src/atistruct.h index 2cb66251..12cf61e9 100644 --- a/src/atistruct.h +++ b/src/atistruct.h @@ -176,6 +176,38 @@ typedef struct _ATIHWRec } ATIHWRec; +#ifdef USE_EXA +/* + * Card engine state for communication across RENDER acceleration hooks. + */ +typedef struct _Mach64ContextRegs3D +{ + CARD32 dp_mix; + CARD32 dp_src; + CARD32 dp_write_mask; + CARD32 dp_pix_width; + CARD32 dst_pitch_offset; + + CARD32 scale_3d_cntl; + + CARD32 tex_cntl; + CARD32 tex_size_pitch; + CARD32 tex_offset; + + int tex_width; /* src/mask texture width (pixels) */ + int tex_height; /* src/mask texture height (pixels) */ + + Bool frag_src; /* solid src uses fragment color */ + Bool frag_mask; /* solid mask uses fragment color */ + CARD32 frag_color; /* solid src/mask color */ + + Bool color_alpha; /* the alpha value is contained in the color + channels instead of the alpha channel */ + + PictTransform *transform; +} Mach64ContextRegs3D; +#endif /* USE_EXA */ + /* * This structure defines the driver's private area. */ @@ -318,6 +350,10 @@ typedef struct _ATIRec CARD32 *ExpansionBitmapScanlinePtr[2]; int ExpansionBitmapWidth; #endif +#ifdef USE_EXA + Bool RenderAccelEnabled; + Mach64ContextRegs3D m3d; +#endif /* * Cursor-related definitions. |