summaryrefslogtreecommitdiffstats
path: root/src/video_core/dirty_flags.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-12-30video_core: Rewrite the texture cacheReinUsesLisp1-0/+7
The current texture cache has several points that hurt maintainability and performance. It's easy to break unrelated parts of the cache when doing minor changes. The cache can easily forget valuable information about the cached textures by CPU writes or simply by its normal usage.The current texture cache has several points that hurt maintainability and performance. It's easy to break unrelated parts of the cache when doing minor changes. The cache can easily forget valuable information about the cached textures by CPU writes or simply by its normal usage. This commit aims to address those issues.
2020-12-07video_core: Adjust `NUM` macro to avoid Clang warningcomex1-1/+1
The previous definition was: #define NUM(field_name) (sizeof(Maxwell3D::Regs::field_name) / sizeof(u32)) In cases where `field_name` happens to refer to an array, Clang thinks `sizeof(an array value) / sizeof(a type)` is an instance of the idiom where `sizeof` is used to compute an array length. So it thinks the type in the denominator ought to be the array element type, and warns if it isn't, assuming this is a mistake. In reality, `NUM` is not used to get array lengths at all, so there is no mistake. Silence the warning by applying Clang's suggested workaround of parenthesizing the denominator.
2020-03-14DirtyFlags: relax need to set render_targets as dirty Fernando Sahmkow1-8/+0
The texture cache already takes care of setting a render target to dirty when invalidated.
2020-02-28dirty_flags: Deduplicate code between OpenGL and VulkanReinUsesLisp1-0/+46