Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ShaderGen: Output uint when logic op is enabled for D3D ubershaders #6026

Merged
merged 2 commits into from Sep 6, 2017
Merged

ShaderGen: Output uint when logic op is enabled for D3D ubershaders #6026

merged 2 commits into from Sep 6, 2017

Conversation

stenzek
Copy link
Contributor

@stenzek stenzek commented Sep 5, 2017

Fixes broken logic op in D3D with ubershaders enabled, as this wasn't tested before #6013 was merged.

Also partially resolves my issue with host uid bits in the shader creating duplicate shaders, by clearing the uint_output bit if the backend isn't D3D.

This will likely be extended to the framebuffer fetch/blend modes in #5802. 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, sharing the shaders/programs.

@@ -162,5 +162,5 @@ ShaderCode GeneratePixelShaderCode(APIType ApiType, const ShaderHostConfig& host
const pixel_shader_uid_data* uid_data);
void WritePixelShaderCommonHeader(ShaderCode& out, APIType ApiType, u32 num_texgens,
bool per_pixel_lighting, bool bounding_box);
ShaderCode GeneratePixelShaderCode(APIType ApiType, const pixel_shader_uid_data* uid_data);

This comment was marked as off-topic.

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.
@stenzek stenzek merged commit 1073053 into dolphin-emu:master Sep 6, 2017
@stenzek stenzek deleted the d3d-ubershader-logicop branch September 6, 2017 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants