Some OpenGL driver/benchmark questions
#41
Linux context option
Code:
    // Create a context
    int context_attribs[] =
    {
        GLX_CONTEXT_MAJOR_VERSION_ARB, major,
        GLX_CONTEXT_MINOR_VERSION_ARB, minor,
#ifdef ENABLE_OGL_DEBUG
        GLX_CONTEXT_FLAGS_ARB, GLX_CONTEXT_DEBUG_BIT_ARB,
#else
        // Open Source isn't happy with an unsupported flags...
        //GLX_CONTEXT_FLAGS_ARB, GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR,
#endif
        GLX_CONTEXT_PROFILE_MASK_ARB, GLX_CONTEXT_CORE_PROFILE_BIT_ARB,
        None
};

Windows context option
Code:
        // Create a context
        int context_attribs[] =
        {
            WGL_CONTEXT_MAJOR_VERSION_ARB, major,
            WGL_CONTEXT_MINOR_VERSION_ARB, minor,
            // FIXME : Request a debug context to ease opengl development
            // Note: don't support deprecated feature (pre openg 3.1)
            //GLX_CONTEXT_FLAGS_ARB, GLX_CONTEXT_DEBUG_BIT_ARB | GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB,
            WGL_CONTEXT_FLAGS_ARB, WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB
#ifdef ENABLE_OGL_DEBUG
            | WGL_CONTEXT_DEBUG_BIT_ARB
#else
            | GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR
#endif
            ,
            WGL_CONTEXT_PROFILE_MASK_ARB, WGL_CONTEXT_CORE_PROFILE_BIT_ARB,
            0
};

As you can there is a couple of differences. I will see on IRC tonight if we can progress on the multi-thread topic. Hopefully the nice guy found back all the code (it could be quick) (otherwise we need to redo it).
Reply

Sponsored links

#42
How would I cross-compile for Windows? I want to try to see if I can get the dev versions working through WINE.
Reply
#43
I don't touch anything windows related. You can try to modify the code and do a PR. The buildbot will compile it for you.
Reply
#44
https://lists.freedesktop.org/archives/m...43161.html

Hah, it seems I should also thank you for this.
Please, keep bothering Marek for new features. Tongue

Exciting times, glthread and shader cache are landing soon ™.
[Image: newreal.png]
Reply
#45
Yes I asked him. I'm also waiting another contributor that is working to improve it (code ongoing, I'm not sure what he will do). Worst case, I will code my self a fix to multithread properly texture upload (at least on the PCSX2 case). Hopefully everything will be ready for next Mesa release. I hope it will increase the performance (and that Intel code will merged too).
Reply
#46
I did some fixes. GSdx GL might work now.

On glthread topic, I'm working on Mesa to fix the bugs so it can be integrated. Not a success so far.
Reply
#47
Alright, trying it out now.
Reply
#48
Success!

I'm going to compare the speeds later.

I don't touch anything Windows usually either. This is an exception because I read that WINE had threading optimizations already and could potentially provide a speed boost.

It's quite sad that the biggest risk of getting a virus on my Linux computer is through Windows applications. I'm not saying it's impossible for my computer to get attacked through other methods, but unless I'm stupid enough to run an unknown executable off the Internet (I'm not), it's not as big of a concern.
Reply
#49
Cool. I'm really interested by your perf feedback.

Hopefully future Mesa will support gl threading Smile I have some patches to fix various crashes. And devs are reviewing current patches.
Reply




Users browsing this thread: 1 Guest(s)