OSDN Git Service

add check if drm is new enough for packet R200_EMIT_RB3D_BLENDCOLOR
authorRoland Scheidegger <rscheidegger@gmx.ch>
Thu, 20 May 2004 00:23:30 +0000 (00:23 +0000)
committerRoland Scheidegger <rscheidegger@gmx.ch>
Thu, 20 May 2004 00:23:30 +0000 (00:23 +0000)
src/mesa/drivers/dri/r200/r200_screen.c
src/mesa/drivers/dri/r200/r200_screen.h

index c5c29dd..129d70a 100644 (file)
@@ -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);
+
       }
    }
 
index b10d6c2..35b3cb1 100644 (file)
@@ -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;