Announcement

Collapse
No announcement yet.

DRI2 vs. DRI3 Radeon Linux OpenGL Performance

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Adriannho
    replied
    Originally posted by Espionage724 View Post

    Weird; my man entry says it's a boolean for radeon (Fedora 23):

    Option "DRI3" "boolean"
    Enable the DRI3 extension. The default is off.
    For me on arch man radeon | grep DRI gives:
    Code:
    Enable DRI2 page flipping.  The default is on.  Pageflipping is supported on all radeon hardware.
    very strange indeed.

    Leave a comment:


  • oibaf
    replied
    Originally posted by arabek View Post


    Wrong:

    Option "DRI3" "1"
    http://cgit.freedesktop.org/xorg/dri...5441f2b5790c29

    Leave a comment:


  • PuckPoltergeist
    replied
    Originally posted by Pontostroy View Post
    tell me more
    Code:
    man radeon|grep DRI
    Option "DRI" "integer"
    Define the maximum level of DRI to enable. Valid values are 2 for DRI2 or 3 for DRI3. The default is 2 for DRI2.
    Enable DRI2 page flipping. The default is on. Pageflipping is supported on all radeon hardware.
    Code:
    src/radeon.h
    
    [FONT=monospace][COLOR=#54ff54][B]typedef[/B][/COLOR][COLOR=#000000] [/COLOR][COLOR=#54ff54][B]enum[/B][/COLOR][COLOR=#000000] { [/COLOR]
       OPTION_ACCEL,
       OPTION_SW_CURSOR,
       OPTION_PAGE_FLIP,
       OPTION_EXA_PIXMAPS,
       OPTION_COLOR_TILING,
       OPTION_COLOR_TILING_2D,
    [COLOR=#5454ff][B]#ifdef RENDER[/B][/COLOR][COLOR=#000000] [/COLOR]
       OPTION_RENDER_ACCEL,
       OPTION_SUBPIXEL_ORDER,
    [COLOR=#5454ff][B]#endif[/B][/COLOR][COLOR=#000000] [/COLOR]
       OPTION_ACCELMETHOD,
       OPTION_EXA_VSYNC,
       OPTION_ZAPHOD_HEADS,
       OPTION_SWAPBUFFERS_WAIT,
       OPTION_DELETE_DP12,
       [COLOR=#000000]OPTION_DRI[/COLOR][COLOR=#000000]3, [/COLOR]
       [COLOR=#000000]OPTION_DRI[/COLOR][COLOR=#000000], [/COLOR]
       OPTION_SHADOW_PRIMARY,
       OPTION_TEAR_FREE,
    } RADEONOpts;[/FONT]
    and
    Code:
    src/radeon_kms.c
    
    [FONT=monospace][COLOR=#54ff54][B]const[/B][/COLOR][COLOR=#000000] OptionInfoRec RADEONOptions_KMS[] = { [/COLOR]
       { OPTION_ACCEL,          [COLOR=#ff54ff][B]"Accel"[/B][/COLOR][COLOR=#000000],            OPTV_BOOLEAN, {[/COLOR][COLOR=#ff54ff][B]0[/B][/COLOR][COLOR=#000000]}, FALSE }, [/COLOR]
       { OPTION_SW_CURSOR,      [COLOR=#ff54ff][B]"SWcursor"[/B][/COLOR][COLOR=#000000],         OPTV_BOOLEAN, {[/COLOR][COLOR=#ff54ff][B]0[/B][/COLOR][COLOR=#000000]}, FALSE }, [/COLOR]
       { OPTION_PAGE_FLIP,      [COLOR=#ff54ff][B]"EnablePageFlip"[/B][/COLOR][COLOR=#000000],   OPTV_BOOLEAN, {[/COLOR][COLOR=#ff54ff][B]0[/B][/COLOR][COLOR=#000000]}, FALSE }, [/COLOR]
       { OPTION_COLOR_TILING,   [COLOR=#ff54ff][B]"ColorTiling"[/B][/COLOR][COLOR=#000000],      OPTV_BOOLEAN, {[/COLOR][COLOR=#ff54ff][B]0[/B][/COLOR][COLOR=#000000]}, FALSE }, [/COLOR]
       { OPTION_COLOR_TILING_2D,[COLOR=#ff54ff][B]"ColorTiling2D"[/B][/COLOR][COLOR=#000000],    OPTV_BOOLEAN, {[/COLOR][COLOR=#ff54ff][B]0[/B][/COLOR][COLOR=#000000]}, FALSE }, [/COLOR]
       { OPTION_RENDER_ACCEL,   [COLOR=#ff54ff][B]"RenderAccel"[/B][/COLOR][COLOR=#000000],      OPTV_BOOLEAN, {[/COLOR][COLOR=#ff54ff][B]0[/B][/COLOR][COLOR=#000000]}, FALSE }, [/COLOR]
       { OPTION_SUBPIXEL_ORDER, [COLOR=#ff54ff][B]"SubPixelOrder"[/B][/COLOR][COLOR=#000000],    OPTV_ANYSTR,  {[/COLOR][COLOR=#ff54ff][B]0[/B][/COLOR][COLOR=#000000]}, FALSE }, [/COLOR]
    [COLOR=#5454ff][B]#ifdef USE_GLAMOR[/B][/COLOR][COLOR=#000000] [/COLOR]
       { OPTION_ACCELMETHOD,    [COLOR=#ff54ff][B]"AccelMethod"[/B][/COLOR][COLOR=#000000],      OPTV_STRING,  {[/COLOR][COLOR=#ff54ff][B]0[/B][/COLOR][COLOR=#000000]}, FALSE }, [/COLOR]
       { OPTION_SHADOW_PRIMARY, [COLOR=#ff54ff][B]"ShadowPrimary"[/B][/COLOR][COLOR=#000000],    OPTV_BOOLEAN, {[/COLOR][COLOR=#ff54ff][B]0[/B][/COLOR][COLOR=#000000]}, FALSE }, [/COLOR]
    [COLOR=#5454ff][B]#endif[/B][/COLOR][COLOR=#000000] [/COLOR]
       { OPTION_EXA_VSYNC,      [COLOR=#ff54ff][B]"EXAVSync"[/B][/COLOR][COLOR=#000000],         OPTV_BOOLEAN, {[/COLOR][COLOR=#ff54ff][B]0[/B][/COLOR][COLOR=#000000]}, FALSE }, [/COLOR]
       { OPTION_EXA_PIXMAPS,    [COLOR=#ff54ff][B]"EXAPixmaps"[/B][/COLOR][COLOR=#000000],       OPTV_BOOLEAN,   {[/COLOR][COLOR=#ff54ff][B]0[/B][/COLOR][COLOR=#000000]}, FALSE }, [/COLOR]
       { OPTION_ZAPHOD_HEADS,   [COLOR=#ff54ff][B]"ZaphodHeads"[/B][/COLOR][COLOR=#000000],      OPTV_STRING,  {[/COLOR][COLOR=#ff54ff][B]0[/B][/COLOR][COLOR=#000000]}, FALSE }, [/COLOR]
       { OPTION_SWAPBUFFERS_WAIT,[COLOR=#ff54ff][B]"SwapbuffersWait"[/B][/COLOR][COLOR=#000000], OPTV_BOOLEAN, {[/COLOR][COLOR=#ff54ff][B]0[/B][/COLOR][COLOR=#000000]}, FALSE }, [/COLOR]
       { OPTION_DELETE_DP12,    [COLOR=#ff54ff][B]"DeleteUnusedDP12Displays"[/B][/COLOR][COLOR=#000000], OPTV_BOOLEAN, {[/COLOR][COLOR=#ff54ff][B]0[/B][/COLOR][COLOR=#000000]}, FALSE}, [/COLOR]
       { [COLOR=#000000]OPTION_DRI[/COLOR][COLOR=#000000]3,           [/COLOR][COLOR=#ff54ff][B]"DRI3"[/B][/COLOR][COLOR=#000000],             OPTV_BOOLEAN, {[/COLOR][COLOR=#ff54ff][B]0[/B][/COLOR][COLOR=#000000]}, FALSE }, [/COLOR]
       { [COLOR=#000000]OPTION_DRI[/COLOR][COLOR=#000000],            [/COLOR][COLOR=#ff54ff][B]"DRI"[/B][/COLOR][COLOR=#000000],              OPTV_INTEGER, {[/COLOR][COLOR=#ff54ff][B]0[/B][/COLOR][COLOR=#000000]}, FALSE }, [/COLOR]
       { OPTION_TEAR_FREE,      [COLOR=#ff54ff][B]"TearFree"[/B][/COLOR][COLOR=#000000],         OPTV_BOOLEAN, {[/COLOR][COLOR=#ff54ff][B]0[/B][/COLOR][COLOR=#000000]}, FALSE }, [/COLOR]
       { -[COLOR=#ff54ff][B]1[/B][/COLOR][COLOR=#000000],                    [/COLOR][COLOR=#ff54ff][B]NULL[/B][/COLOR][COLOR=#000000],               OPTV_NONE,    {[/COLOR][COLOR=#ff54ff][B]0[/B][/COLOR][COLOR=#000000]}, FALSE } [/COLOR]
    };[/FONT]
    You will find the usage of OPTION_DRI3 and OPTION_DRI down in radeon_kms.c

    Leave a comment:


  • Guest
    Guest replied
    Originally posted by Pontostroy View Post
    tell me more
    Code:
    man radeon|grep DRI
    Option "DRI" "integer"
    Define the maximum level of DRI to enable. Valid values are 2 for DRI2 or 3 for DRI3. The default is 2 for DRI2.
    Enable DRI2 page flipping. The default is on. Pageflipping is supported on all radeon hardware.
    Weird; my man entry says it's a boolean for radeon (Fedora 23):

    Option "DRI3" "boolean"
    Enable the DRI3 extension. The default is off.

    Leave a comment:


  • kuco
    replied
    For me

    Option "DRI3"

    is working.
    (Manjaro)

    Leave a comment:


  • Pontostroy
    replied
    Originally posted by arabek View Post


    Wrong:

    Option "DRI3" "1"
    tell me more
    Code:
     man radeon|grep DRI
           Option "DRI" "integer"
                  Define the maximum level of DRI to enable. Valid values are 2 for DRI2 or 3 for DRI3.  The default is 2 for DRI2.
                  Enable DRI2 page flipping.  The default is on.  Pageflipping is supported on all radeon hardware.

    Leave a comment:


  • boffo
    replied
    I tried this DRI 3 option. With team fortress 2 the system is stable, but firefox freezes with videos. On AMD trinity

    Leave a comment:


  • arabek
    replied
    Originally posted by Pontostroy View Post

    Option "DRI" "3"

    like on intel

    Wrong:

    Option "DRI3" "1"

    Leave a comment:


  • Guest
    Guest replied
    Originally posted by higuita View Post
    Trying to enable DRI3 i get this:
    [ 25369.650] (WW) RADEON(0): Option "DRI3" is not used

    man radeon do not show any DRI3 option... i'm using xf86-video-ati-7.5.0, mesa-11.0.4 (with --enable-dri3), libdrm-2.4.65 and xorg-server-1.17.3

    also, kernel 4.2.5 on a slackware64

    Any tip why it is failing and how to fix this
    It's probably not a definitive way of checking, but if the version of the xf86-video-ati driver isn't 7.5.99 or higher; DRI3 isn't supported based on what I've seen (yours appears to be 7.5.0). I could attest to this on both Ubuntu and Fedora.

    Leave a comment:


  • Pontostroy
    replied
    Originally posted by higuita View Post
    Trying to enable DRI3 i get this:
    [ 25369.650] (WW) RADEON(0): Option "DRI3" is not used

    man radeon do not show any DRI3 option... i'm using xf86-video-ati-7.5.0, mesa-11.0.4 (with --enable-dri3), libdrm-2.4.65 and xorg-server-1.17.3

    also, kernel 4.2.5 on a slackware64

    Any tip why it is failing and how to fix this
    Option "DRI" "3"

    like on intel

    Leave a comment:

Working...
X