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

Vulkan #1608

Merged
merged 3 commits into from
Mar 21, 2016
Merged

Vulkan #1608

merged 3 commits into from
Mar 21, 2016

Conversation

vlj
Copy link
Contributor

@vlj vlj commented Mar 21, 2016

This PR moves program state creation into program_state_cache which should avoid a lot of creation/destruction. It also factorises sampler out of texture and use a more explicit ctor for framebuffer.

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @kd-11 to be a potential reviewer

@@ -14,4 +14,5 @@ namespace vk
VkSamplerAddressMode vk_wrap_mode(u32 gcm_wrap);
float max_aniso(u32 gcm_aniso);
VkComponentMapping get_component_mapping(u32 format, u8 swizzle_mask);
VkPrimitiveTopology get_appropriate_topology(rsx::primitive_type& mode, bool &requires_modification);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing newline.

@kd-11
Copy link
Contributor

kd-11 commented Mar 21, 2016

I like the program state optimization. The sampler changes should be fine as long as sampler creation cost is negligible. Its a little odd that we go to all the trouble to avoid recreating psos but then make it so that we recreate samplers. If sampler creation cost is close to nil this isn't an issue though.

@vlj
Copy link
Contributor Author

vlj commented Mar 21, 2016

Fixed newline

@kd-11 I didn't notice performance drop with this PR. I'm thinking to put every sampler in an unordered_map anyway and store image with their image_view in texture cache.

vlj added a commit that referenced this pull request Mar 21, 2016
@vlj vlj merged commit efd52a0 into RPCS3:master Mar 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants