Merge branch 'softwarecrap' into Saturn-Testing

This commit is contained in:
Alug committed 2025-06-19 17:41:33 +02:00
commit 11c6c69a00
3 files changed
+11 -2

No files matched your search

+2 -2
View File
@@ -139,7 +139,7 @@ static void R_DrawSpanTemplate(drawspandata_t* ds)
for (i = 0; i < 8; i++)
{
bit = (((UINT32)yposition >> ds->nflatyshift) & ds->nflatmask) | ((UINT32)xposition >> ds->nflatxshift);
bit = ((yposition >> ds->nflatyshift) & ds->nflatmask) | (xposition >> ds->nflatxshift);
dest[i] = R_DrawSpanPixel<Type>(ds, &dsrc[i], colormap, bit, source);
@@ -155,7 +155,7 @@ static void R_DrawSpanTemplate(drawspandata_t* ds)
while (count-- && dest <= deststop)
{
bit = (((UINT32)yposition >> ds->nflatyshift) & ds->nflatmask) | ((UINT32)xposition >> ds->nflatxshift);
bit = ((yposition >> ds->nflatyshift) & ds->nflatmask) | (xposition >> ds->nflatxshift);
*dest = R_DrawSpanPixel<Type>(ds, dsrc, colormap, bit, source);
+6
View File
@@ -737,9 +737,12 @@ void R_DrawPlanes(void)
}
}
#ifdef HAVE_THREADS
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Waggregate-return"
tp_sema = srb2::g_main_threadpool->end_sema();
srb2::g_main_threadpool->notify_sema(tp_sema);
srb2::g_main_threadpool->wait_sema(tp_sema);
#pragma GCC diagnostic pop
#endif
}
@@ -765,9 +768,12 @@ void R_DrawSkyPlanes(void)
}
}
#ifdef HAVE_THREADS
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Waggregate-return"
tp_sema = srb2::g_main_threadpool->end_sema();
srb2::g_main_threadpool->notify_sema(tp_sema);
srb2::g_main_threadpool->wait_sema(tp_sema);
#pragma GCC diagnostic pop
#endif
}
+3
View File
@@ -2978,9 +2978,12 @@ static void R_DrawMaskedList(drawnode_t* head)
#endif
R_DrawSinglePlane(&ds, r2->plane, cv_parallelsoftware.value);
#ifdef HAVE_THREADS
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Waggregate-return"
tp_sema = srb2::g_main_threadpool->end_sema();
srb2::g_main_threadpool->notify_sema(tp_sema);
srb2::g_main_threadpool->wait_sema(tp_sema);
#pragma GCC diagnostic pop
#endif
R_DoneWithNode(r2);
r2 = next;