mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
VideoBackends: Clear uid bits that are unused for the current backend
Currently, this is only the logic op bit, but this will be extended to the framebuffer fetch/blend modes. In the future, when/if we move to VideoCommon pipelines, this state will be part of the pipeline UID anyway, and we can mask it out in the backend by using a two-level map, so the shaders/programs are shared.
This commit is contained in:
@ -593,6 +593,7 @@ bool PixelShaderCache::SetShader()
|
||||
return SetUberShader();
|
||||
|
||||
PixelShaderUid uid = GetPixelShaderUid();
|
||||
ClearUnusedPixelShaderUidBits(APIType::D3D, &uid);
|
||||
if (last_entry && uid == last_uid)
|
||||
{
|
||||
if (last_entry->pending)
|
||||
@ -656,6 +657,7 @@ bool PixelShaderCache::SetShader()
|
||||
bool PixelShaderCache::SetUberShader()
|
||||
{
|
||||
UberShader::PixelShaderUid uid = UberShader::GetPixelShaderUid();
|
||||
UberShader::ClearUnusedPixelShaderUidBits(APIType::D3D, &uid);
|
||||
|
||||
if (last_uber_entry && last_uber_uid == uid)
|
||||
{
|
||||
|
Reference in New Issue
Block a user