summaryrefslogtreecommitdiff
path: root/pcr/reicast-git/wait_if_two_frames_already_in_flight.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/reicast-git/wait_if_two_frames_already_in_flight.patch')
-rw-r--r--pcr/reicast-git/wait_if_two_frames_already_in_flight.patch47
1 files changed, 14 insertions, 33 deletions
diff --git a/pcr/reicast-git/wait_if_two_frames_already_in_flight.patch b/pcr/reicast-git/wait_if_two_frames_already_in_flight.patch
index ff297365c..56e774138 100644
--- a/pcr/reicast-git/wait_if_two_frames_already_in_flight.patch
+++ b/pcr/reicast-git/wait_if_two_frames_already_in_flight.patch
@@ -1,15 +1,15 @@
-diff -Nur reicast-emulator.orig/core/hw/pvr/Renderer_if.cpp reicast-emulator/core/hw/pvr/Renderer_if.cpp
---- reicast-emulator.orig/core/hw/pvr/Renderer_if.cpp 2015-06-20 02:04:02.180069939 -0300
-+++ reicast-emulator/core/hw/pvr/Renderer_if.cpp 2015-06-20 02:10:17.831402600 -0300
-@@ -184,6 +184,7 @@
+diff -Nur a/core/hw/pvr/Renderer_if.cpp b/core/hw/pvr/Renderer_if.cpp
+--- a/core/hw/pvr/Renderer_if.cpp 2015-08-23 00:16:33.916598479 -0300
++++ b/core/hw/pvr/Renderer_if.cpp 2015-08-23 02:25:28.932602664 -0300
+@@ -187,6 +187,7 @@
bool rend_frame(TA_context* ctx, bool draw_osd) {
bool proc = renderer->Process(ctx);
+ FinishRender(_pvrrc);
+ #if !defined(TARGET_NO_THREADS)
re.Set();
-
- bool do_swp = proc && renderer->Render();
-@@ -207,7 +208,7 @@
+ #endif
+@@ -213,7 +214,7 @@
bool do_swp = rend_frame(_pvrrc, true);
//clear up & free data ..
@@ -18,15 +18,15 @@ diff -Nur reicast-emulator.orig/core/hw/pvr/Renderer_if.cpp reicast-emulator/cor
_pvrrc=0;
return do_swp;
-@@ -260,6 +261,7 @@
-
+@@ -267,6 +268,7 @@
+ #endif
bool pend_rend = false;
+extern TA_context* rqueue;
void rend_resize(int width, int height) {
renderer->Resize(width, height);
-@@ -268,6 +270,10 @@
+@@ -275,6 +277,10 @@
void rend_start_render()
{
@@ -37,29 +37,10 @@ diff -Nur reicast-emulator.orig/core/hw/pvr/Renderer_if.cpp reicast-emulator/cor
pend_rend = false;
bool is_rtt=(FB_W_SOF1& 0x1000000)!=0;
TA_context* ctx = tactx_Pop(CORE_CURRENT_CTX);
-@@ -314,7 +320,6 @@
- }
- }
-
--
- void rend_end_render()
- {
- #if 1 //also disabled the printf, it takes quite some time ...
-@@ -325,8 +330,9 @@
- #endif
- #endif
-
-- if (pend_rend)
-+ if (pend_rend) {
- re.Wait();
-+ }
- }
-
- /*
-diff -Nur reicast-emulator.orig/core/hw/pvr/ta_ctx.cpp reicast-emulator/core/hw/pvr/ta_ctx.cpp
---- reicast-emulator.orig/core/hw/pvr/ta_ctx.cpp 2015-06-20 02:04:02.186736275 -0300
-+++ reicast-emulator/core/hw/pvr/ta_ctx.cpp 2015-06-20 02:07:44.202370584 -0300
-@@ -119,8 +119,6 @@
+diff -Nur a/core/hw/pvr/ta_ctx.cpp b/core/hw/pvr/ta_ctx.cpp
+--- a/core/hw/pvr/ta_ctx.cpp 2015-08-23 00:16:33.917598487 -0300
++++ b/core/hw/pvr/ta_ctx.cpp 2015-08-23 02:26:47.189293717 -0300
+@@ -127,8 +127,6 @@
mtx_rqueue.Lock();
rqueue = 0;
mtx_rqueue.Unlock();