Commit graph

84 commits

Author SHA1 Message Date
Unknown W. Brackets
a6ff7c6711 Vulkan: Setup texture/sampler cache for restore. 2016-10-09 11:28:11 -07:00
Unknown W. Brackets
f0ed9a9915 Vulkan: Correct CheckAlpha on scaled textures. 2016-06-25 09:10:55 -07:00
Unknown W. Brackets
4c94cd764d Scale directly into the buffer if possible.
This will be possible in the majority of cases, and avoid an extra copy.
A small cost compared to scaling, but even so.
2016-06-25 08:40:45 -07:00
Unknown W. Brackets
5962093ef5 Centralize the majority of texture decode. 2016-06-19 08:05:54 -07:00
Unknown W. Brackets
339f065a5c Centralize texture deindexing more. 2016-06-19 07:14:31 -07:00
Unknown W. Brackets
fc77e2f8fc Flag replaced/scaled textures so we don't reuse.
Otherwise, we may try to use the replaceImages path, and end up with a
small updated texture in the top left of a large replaced texture.
2016-06-06 19:35:58 -07:00
Unknown W. Brackets
a1fbcc3d93 Avoid directly calling osm from Core/GPU code.
This allows UI to handle the message however it wants to, and reduces
cross linkage issues.
2016-05-27 22:05:30 -07:00
Unknown W. Brackets
f168978d3e Properly set w/h on first use of a render-to-tex.
We were getting the wrong w/h when it wasn't in the texture cache already.
2016-05-21 17:53:42 -07:00
Unknown W. Brackets
2d53eb5456 Ensure we don't try to hash framebuffers.
Let's keep when we do things consistent: measure alpha on apply always.
2016-05-21 15:40:58 -07:00
Henrik Rydgard
51bcb02921 Minor vulkan updates to match the latest SDK/validator 2016-05-14 16:29:40 +02:00
Henrik Rydgård
2c84411426 Merge pull request #8720 from unknownbrackets/tex-range
Move texture decode/hash to after vertex decode
2016-05-07 22:15:19 +02:00
Henrik Rydgård
98f2ceed59 Merge pull request #8723 from unknownbrackets/tex-replace
Avoid scheduling a rescale when scaling is off for the texture
2016-05-07 09:37:42 +02:00
Unknown W. Brackets
4b89f44d1c Avoid scheduling a rescale when scaling is off.
This happens for PPGe and kernel textures, and replacements.  Before, we
would continually reload, trying to scale, but each time decide not to
scale.
2016-05-06 19:58:01 -07:00
Unknown W. Brackets
4650a288cd Vulkan: Fix auto tex scaling reload. 2016-05-06 19:54:50 -07:00
Unknown W. Brackets
844d96f055 Vulkan: Free allocator safely on exit. 2016-05-06 19:52:46 -07:00
Unknown W. Brackets
53535558f8 Vulkan: Move texture hash/decode after vtx decode. 2016-05-01 17:42:08 -07:00
Unknown W. Brackets
c20075b0e0 Pass video info to texture replacements. 2016-05-01 08:54:43 -07:00
Unknown W. Brackets
f5b93bc6f0 Remove global num videos hack. 2016-05-01 08:53:48 -07:00
Unknown W. Brackets
99d29356d7 Track video addresses in texture cache. 2016-05-01 08:39:18 -07:00
Unknown W. Brackets
23ab2cd187 Vulkan: Correct check alpha. 2016-05-01 00:30:54 -07:00
Unknown W. Brackets
f26c0328da Check alpha when loading replaced textures. 2016-05-01 00:30:53 -07:00
Unknown W. Brackets
e1fd6b6f21 Account for scaleFactor when saving clipped PNG. 2016-05-01 00:30:50 -07:00
Unknown W. Brackets
0c357c0ea3 Pass w/h in for replacement lookup.
So we can scale the w/h properly.
2016-05-01 00:30:44 -07:00
Unknown W. Brackets
d6e5df6f21 Save individual mip levels. 2016-05-01 00:30:41 -07:00
Unknown W. Brackets
565653c77b Save and load textures using full key.
Of course, need this, not just the hash.
2016-05-01 00:30:40 -07:00
Unknown W. Brackets
5dbc2b9267 Initial support for saving textures to PNGs. 2016-04-30 15:03:39 -07:00
Unknown W. Brackets
bf39e61458 Setup initial structure for texture replacements. 2016-04-30 13:44:31 -07:00
Henrik Rydgard
62aaeb39b0 Vulkan texture cache: Remove the "replaceImages" path.
Images alloc is so fast, and we'd need to double buffer some images
anyway, better not to.
2016-04-09 10:30:23 +02:00
Henrik Rydgard
861a30a6cd Fix an assortment of minor resource leaks, make vulkan validator happier. 2016-04-02 11:06:39 +02:00
Henrik Rydgard
f52fd0c853 FramebufferVulkan: Fix DrawPixels 2016-03-31 00:49:10 +02:00
Henrik Rydgard
339daede56 Clean up, start building some scaffolding 2016-03-31 00:49:10 +02:00
Henrik Rydgard
40d05e292c Cleanup in FramebufferVulkan to reduce the size of future diffs 2016-03-28 20:23:29 +02:00
Henrik Rydgard
a8c386b94c Make VulkanImage a little more flexible (make it possible to create depth images)
Just preparation.
2016-03-28 18:25:05 +02:00
Unknown W. Brackets
ed41785692 Vulkan: Add EndFrame to texture cache. 2016-03-27 08:33:22 -07:00
Unknown W. Brackets
3352608027 Vulkan: Free texture slabs on exit. 2016-03-27 08:30:43 -07:00
Unknown W. Brackets
16570f10bd Vulkan: Handle texture allocation failure.
Users hit out of memory even using desktop GL devices, and it will
definitely be possible on mobile and desktop Vulkan.
2016-03-27 08:30:42 -07:00
Unknown W. Brackets
27a5697a96 Vulkan: Use the slab allocator for textures. 2016-03-27 08:30:42 -07:00
Unknown W. Brackets
d2f85792ab Vulkan: Unswizzle non-CLUT textures directly. 2016-03-26 23:38:51 -07:00
Unknown W. Brackets
1300631e9a Allow unswizzling with a dest pitch. 2016-03-26 23:38:50 -07:00
Unknown W. Brackets
b6778bf4ad Vulkan: Fix flat texture scaling. 2016-03-26 17:26:55 -07:00
Unknown W. Brackets
5e23d63538 Vulkan: Cleanup now that all formats decode direct. 2016-03-26 17:26:55 -07:00
Unknown W. Brackets
7931a01de7 Vulkan: Decode 4-bit clut directly. 2016-03-26 17:26:54 -07:00
Unknown W. Brackets
19f76aab30 Vulkan: Correct font texture optimization.
Oops, missed this when swapping color formats.
2016-03-26 17:26:49 -07:00
Unknown W. Brackets
9a4b74cd09 Vulkan: Directly decode simple palette textures. 2016-03-26 17:25:45 -07:00
Unknown W. Brackets
6c0a5ca503 Vulkan: Oops, correct DXT stride. 2016-03-26 15:02:12 -07:00
Unknown W. Brackets
a130e2695e Vulkan: Remove unused color conv func. 2016-03-26 15:02:11 -07:00
Unknown W. Brackets
fe4c0e9f5a Vulkan: Fix various problems with tex scaling. 2016-03-26 15:02:09 -07:00
Unknown W. Brackets
99bf2c5aeb Vulkan: Decode the simplest tex formats directly. 2016-03-26 15:02:08 -07:00
Unknown W. Brackets
29287ea0ee Vulkan: Reorganize a bit so we can decode directly. 2016-03-26 15:02:07 -07:00
Unknown W. Brackets
e7ea1da99f Vulkan: Swizzle instead of converting colors. 2016-03-26 15:02:06 -07:00