summaryrefslogtreecommitdiffstats
path: root/src/video_core/compatible_formats.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* gl_texture_cache: Avoid format views on Intel and AMDReinUsesLisp2021-01-041-4/+5
| | | | | | | Intel and AMD proprietary drivers are incapable of rendering to texture views of different formats than the original texture. Avoid creating these at a cache level. This will consume more memory, emulating them with copies.
* video_core: Rewrite the texture cacheReinUsesLisp2020-12-301-24/+118
| | | | | | | | | | | | | | 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.
* video_core: Rearrange pixel format namesReinUsesLisp2020-07-131-47/+40
| | | | | | Normalizes pixel format names to match Vulkan names. Previous to this commit pixel formats had no convention, leading to confusion and potential bugs.
* texture_cache: Test format compatibility before copyingReinUsesLisp2020-06-271-1/+1
| | | | | | | | Avoid illegal copies. This intercepts the last step of a copy to avoid generating validation errors or corrupting the driver on some instances. We can create views and emit copies accordingly in future commits and remove this last-step validation.
* video_core/compatible_formats: Table to test if two formats are legal to view or copyReinUsesLisp2020-06-271-0/+162
Add a flat table to test if it's legal to create a texture view between two formats or copy betweem them. This table is based on ARB_copy_image and ARB_texture_view. Copies are more permissive than views.