mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-19 10:38:30 +02:00
add check if drm is new enough for packet R200_EMIT_RB3D_BLENDCOLOR
This commit is contained in:
parent
b6933b6811
commit
a671fea404
2 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue