-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Vulkan #1608
Conversation
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); | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing newline.
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. |
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. |
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.