VirtualBox

Changeset 48793 in vbox for trunk


Ignore:
Timestamp:
Oct 1, 2013 12:20:04 PM (11 years ago)
Author:
vboxsync
Message:

crOpenGL: adjust & log config bits

Location:
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_config.c

    r47577 r48793  
    243243    cr_server.fVramPresentModeDefault = CR_SERVER_REDIR_F_FBO_RAM/* | CR_SERVER_REDIR_F_FBO_RPW*/;
    244244
     245    env = crGetenv("CR_SERVER_CAPS");
     246    if (env && env[0] != '\0')
     247    {
     248        cr_server.u32Caps = crServerVBoxParseNumerics(env, 0);
     249        cr_server.u32Caps &= ~(CR_VBOX_CAP_TEX_PRESENT/* | CR_VBOX_CAP_NO_DWM_SUPPORT*/);
     250    }
     251    else
     252    {
     253        cr_server.u32Caps = CR_VBOX_CAP_TEX_PRESENT/* | CR_VBOX_CAP_NO_DWM_SUPPORT*/;
     254    }
     255
     256    if (!(cr_server.fPresentModeDefault & CR_SERVER_REDIR_F_FBO))
     257    {
     258        /* can not do tex present in case CR_SERVER_REDIR_F_FBO is disabled */
     259        cr_server.u32Caps &= ~CR_VBOX_CAP_TEX_PRESENT;
     260    }
     261
     262    crInfo("Cfg: fPresentModeDefault(%#x), fVramPresentModeDefault(%#x), u32Caps(%#x)",
     263            cr_server.fPresentModeDefault, cr_server.fVramPresentModeDefault, cr_server.u32Caps);
     264
    245265    /* Need to do this as early as possible */
    246266
     
    387407    cr_server.fVramPresentModeDefault = CR_SERVER_REDIR_F_FBO_RAM/* | CR_SERVER_REDIR_F_FBO_RPW*/;
    388408
     409    env = crGetenv("CR_SERVER_CAPS");
     410    if (env && env[0] != '\0')
     411    {
     412        cr_server.u32Caps = crServerVBoxParseNumerics(env, 0);
     413        cr_server.u32Caps &= ~(CR_VBOX_CAP_TEX_PRESENT/* | CR_VBOX_CAP_NO_DWM_SUPPORT*/);
     414    }
     415    else
     416    {
     417        cr_server.u32Caps = CR_VBOX_CAP_TEX_PRESENT/* | CR_VBOX_CAP_NO_DWM_SUPPORT*/;
     418    }
     419
     420    if (!(cr_server.fPresentModeDefault & CR_SERVER_REDIR_F_FBO))
     421    {
     422        /* can not do tex present in case CR_SERVER_REDIR_F_FBO is disabled */
     423        cr_server.u32Caps &= ~CR_VBOX_CAP_TEX_PRESENT;
     424    }
     425
     426    crInfo("Cfg: fPresentModeDefault(%#x), fVramPresentModeDefault(%#x), u32Caps(%#x)",
     427            cr_server.fPresentModeDefault, cr_server.fVramPresentModeDefault, cr_server.u32Caps);
     428
    389429    cr_server.head_spu->dispatch_table.GetChromiumParametervCR(GL_WINDOW_POSITION_CR, 0, GL_INT, 2, &dims[0]);
    390430    cr_server.head_spu->dispatch_table.GetChromiumParametervCR(GL_WINDOW_SIZE_CR, 0, GL_INT, 2, &dims[2]);
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c

    r48726 r48793  
    340340    }
    341341
    342     env = crGetenv("CR_SERVER_CAPS");
    343     if (env && env[0] != '\0')
    344     {
    345         cr_server.u32Caps = crServerVBoxParseNumerics(env, 0);
    346         cr_server.u32Caps &= ~(CR_VBOX_CAP_TEX_PRESENT | CR_VBOX_CAP_NO_DWM_SUPPORT);
    347     }
    348     else
    349     {
    350         cr_server.u32Caps = CR_VBOX_CAP_TEX_PRESENT;
    351     }
    352 
    353342    cr_server.firstCallCreateContext = GL_TRUE;
    354343    cr_server.firstCallMakeCurrent = GL_TRUE;
     
    449438        crInfo("Info: using multiple contexts!");
    450439        crDebug("Debug: using multiple contexts!");
    451     }
    452 
    453     env = crGetenv("CR_SERVER_CAPS");
    454     if (env && env[0] != '\0')
    455     {
    456         cr_server.u32Caps = crServerVBoxParseNumerics(env, 0);
    457         cr_server.u32Caps &= ~(CR_VBOX_CAP_TEX_PRESENT | CR_VBOX_CAP_NO_DWM_SUPPORT);
    458     }
    459     else
    460     {
    461         cr_server.u32Caps = CR_VBOX_CAP_TEX_PRESENT;
    462440    }
    463441
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette