|
|
@ -31,6 +31,7 @@ Flags MakeInvalidationFlags() { |
|
|
flags[Viewports] = true; |
|
|
flags[Viewports] = true; |
|
|
flags[Scissors] = true; |
|
|
flags[Scissors] = true; |
|
|
flags[DepthBias] = true; |
|
|
flags[DepthBias] = true; |
|
|
|
|
|
flags[BlendConstants] = true; |
|
|
return flags; |
|
|
return flags; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -84,6 +85,10 @@ void SetupDirtyDepthBias(Tables& tables) { |
|
|
table[OFF(polygon_offset_factor)] = DepthBias; |
|
|
table[OFF(polygon_offset_factor)] = DepthBias; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void SetupDirtyBlendConstants(Tables& tables) { |
|
|
|
|
|
FillBlock(tables[0], OFF(blend_color), NUM(blend_color), BlendConstants); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} // Anonymous namespace
|
|
|
} // Anonymous namespace
|
|
|
|
|
|
|
|
|
StateTracker::StateTracker(Core::System& system) |
|
|
StateTracker::StateTracker(Core::System& system) |
|
|
@ -96,6 +101,7 @@ void StateTracker::Initialize() { |
|
|
SetupDirtyViewports(tables); |
|
|
SetupDirtyViewports(tables); |
|
|
SetupDirtyScissors(tables); |
|
|
SetupDirtyScissors(tables); |
|
|
SetupDirtyDepthBias(tables); |
|
|
SetupDirtyDepthBias(tables); |
|
|
|
|
|
SetupDirtyBlendConstants(tables); |
|
|
|
|
|
|
|
|
auto& store = dirty.on_write_stores; |
|
|
auto& store = dirty.on_write_stores; |
|
|
store[RenderTargets] = true; |
|
|
store[RenderTargets] = true; |
|
|
|