Fix performance bug in IRJit when using rewind states

This commit is contained in:
Henrik Rydgård committed 2026-08-18 14:31:13 +02:00
1 parent 82dd963df6
commit cd5cf87120
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -51,7 +51,9 @@ void IRFrontend::DoState(PointerWrap &p) {
Do(p, js.startDefaultPrefix);
if (s >= 2) {
Do(p, js.hasSetRounding);
js.lastSetRounding = 0;
if (p.mode == p.MODE_READ) {
js.lastSetRounding = 0;
}
} else {
js.hasSetRounding = 1;
}
+1 -1
View File
@@ -336,7 +336,7 @@ enum GEVertexType : uint32_t {
};
#define GE_CLEARMODE_COLOR (1<<8)
#define GE_CLEARMODE_ALPHA (1<<9) //or stencil?
#define GE_CLEARMODE_ALPHA (1<<9) // and stencil
#define GE_CLEARMODE_Z (1<<10)
#define GE_CLEARMODE_ALL (GE_CLEARMODE_COLOR|GE_CLEARMODE_ALPHA|GE_CLEARMODE_Z)