Make selection between DRI2 and DRI3 consistent with other drivers. (v2)

Add Option "DRI" to allow selection of maximum DRI level.

This allows the user to select the maximum level of DRI
implementation to use, DRI2 or DRI3. It replaces the old
option "DRI3" which had exactly the same purpose, but
differs from the method used in both intel ddx and nouveau ddx.
Make this consistent before a new stable driver is released.

v2: Retain handling of old Option "DRI3" for backwards
    compatibility, but Option "DRI" will take precedence
    over "DRI3" if both are provided.

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
Mario Kleiner
2015-08-10 23:34:39 +02:00
committed by Michel Dänzer
parent 3791fceabf
commit f123096877
3 changed files with 15 additions and 5 deletions

View File

@@ -267,9 +267,10 @@ The default value is
for R/RV6XX, R/RV7XX, RS780, RS880, EVERGREEN, CAYMAN, ARUBA, Southern Islands, and
Sea Islands.
.TP
.BI "Option \*qDRI3\*q \*q" boolean \*q
Enable the DRI3 extension. The default is
.B off.
.BI "Option \*qDRI\*q \*q" integer \*q
Define the maximum level of DRI to enable. Valid values are 2 for DRI2 or 3 for DRI3.
The default is
.B 2 for DRI2.
.TP
.BI "Option \*qEnablePageFlip\*q \*q" boolean \*q
Enable DRI2 page flipping. The default is