diff options
author | Roland Scheidegger <rscheidegger@gmx.ch> | 2005-09-12 21:20:10 +0000 |
---|---|---|
committer | Roland Scheidegger <rscheidegger@gmx.ch> | 2005-09-12 21:20:10 +0000 |
commit | f20917de5bd2b1fc152e74304d3649a1f6042422 (patch) | |
tree | 9a5390f0f8cda2d046edd0387ab1c502981f159c /src/mesa/drivers/dri/r200/r200_screen.c | |
parent | 11543624edbee91f1257a614f0778999bc170345 (diff) |
add complete support for ATI_fragment_shader for the r200. Most of the new code is in the new file r200_fragshader.c. Reverse engeneered by Dave Airlie and me
Diffstat (limited to 'src/mesa/drivers/dri/r200/r200_screen.c')
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_screen.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_screen.c b/src/mesa/drivers/dri/r200/r200_screen.c index 592d46c1e4..ff4b85915f 100644 --- a/src/mesa/drivers/dri/r200/r200_screen.c +++ b/src/mesa/drivers/dri/r200/r200_screen.c @@ -94,6 +94,7 @@ extern const struct dri_extension card_extensions[]; extern const struct dri_extension blend_extensions[]; extern const struct dri_extension ARB_vp_extension[]; extern const struct dri_extension NV_vp_extension[]; +extern const struct dri_extension ATI_fs_extension[]; #if 1 /* Including xf86PciInfo.h introduces a bunch of errors... @@ -357,8 +358,9 @@ r200CreateScreen( __DRIscreenPrivate *sPriv ) /* Check if kernel module is new enough to support blend color and separate blend functions/equations */ screen->drmSupportsBlendColor = (sPriv->drmMinor >= 11); - screen->drmSupportsTriPerf = (sPriv->drmMinor >= 16); + screen->drmSupportsFragShader = (sPriv->drmMinor >= 18); + } /* Check if ddx has set up a surface reg to cover depth buffer */ screen->depthHasSurface = (sPriv->ddxMajor > 4); @@ -711,6 +713,7 @@ void * __driCreateNewScreen_20050727( __DRInativeDisplay *dpy, int scrn, __DRIsc driInitExtensions( NULL, blend_extensions, GL_FALSE ); driInitSingleExtension( NULL, ARB_vp_extension ); driInitSingleExtension( NULL, NV_vp_extension ); + driInitSingleExtension( NULL, ATI_fs_extension ); } return (void *) psp; |