diff options
author | Roland Scheidegger <[email protected]> | 2004-05-20 00:23:30 +0000 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2004-05-20 00:23:30 +0000 |
commit | a671fea40498153605a529e5fc93a7293cceb733 (patch) | |
tree | f28690ee90b58b46605c852df874f8a29bb208d9 /src | |
parent | b6933b68114a6eeeab7ad064a553e20b64e16e82 (diff) |
add check if drm is new enough for packet R200_EMIT_RB3D_BLENDCOLOR
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_screen.c | 4 | ||||
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_screen.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_screen.c b/src/mesa/drivers/dri/r200/r200_screen.c index c5c29dd587d..129d70a653e 100644 --- a/src/mesa/drivers/dri/r200/r200_screen.c +++ b/src/mesa/drivers/dri/r200/r200_screen.c @@ -351,6 +351,10 @@ r200CreateScreen( __DRIscreenPrivate *sPriv ) /* Check if kernel module is new enough to support cube maps */ screen->drmSupportsCubeMaps = (sPriv->drmMinor >= 7); + /* Check if kernel module is new enough to support blend color and + separate blend functions/equations */ + screen->drmSupportsBlendColor = (sPriv->drmMinor >= 11); + } } diff --git a/src/mesa/drivers/dri/r200/r200_screen.h b/src/mesa/drivers/dri/r200/r200_screen.h index b10d6c286ed..35b3cb18904 100644 --- a/src/mesa/drivers/dri/r200/r200_screen.h +++ b/src/mesa/drivers/dri/r200/r200_screen.h @@ -95,6 +95,7 @@ typedef struct { unsigned int gart_base; GLboolean drmSupportsCubeMaps; /* need radeon kernel module >=1.7 */ + GLboolean drmSupportsBlendColor; /* need radeon kernel module >= 1.11 */ /* Configuration cache with default values for all contexts */ driOptionCache optionCache; |