mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 02:08:49 +12:00
gl: Fix async shader compiler
- Removes glFinish hack. - Adds proper server-side synchronization. - Adds primary context detection to allow worker threads to be identified.
This commit is contained in:
parent
dc5cdb3bb4
commit
b301fecfd8
8 changed files with 52 additions and 19 deletions
|
@ -11,6 +11,18 @@ namespace gl
|
|||
capabilities g_driver_caps;
|
||||
const fbo screen{};
|
||||
|
||||
thread_local bool tls_primary_context_thread = false;
|
||||
|
||||
void set_primary_context_thread()
|
||||
{
|
||||
tls_primary_context_thread = true;
|
||||
}
|
||||
|
||||
bool is_primary_context_thread()
|
||||
{
|
||||
return tls_primary_context_thread;
|
||||
}
|
||||
|
||||
GLenum draw_mode(rsx::primitive_type in)
|
||||
{
|
||||
switch (in)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue