Commit Graph
47140 Commits
Author SHA1 Message Date
Henrik Rydgård 71ae6e3ad2 Address feedback 2022-07-31 10:44:06 +02:00
Henrik Rydgård 7f0f119cfe Check for color/Z clashes 2022-07-31 10:44:06 +02:00
Henrik Rydgård b5f5aa1653 Track depth buffers separately from framebuffers to track previous use for copies
Fixes the depth testing problem reported in #11013

(WIP: Does not yet include the extra checking unknown suggested for
depth/color address clashes)
2022-07-31 10:44:06 +02:00
Henrik Rydgård c158414858 Give the mip bias its own uniform flag. 2022-07-31 10:43:48 +02:00
Henrik Rydgård 0caaa74be9 Possible flicker fix for Macross 2022-07-31 10:43:48 +02:00
Henrik Rydgård cc857e8217 Revert mistaken change in D3D9 fragment shader gen 2022-07-31 10:43:48 +02:00
Henrik Rydgård 46d6b43618 Support 3D textures in OpenGL ES, add feature check 2022-07-31 10:43:48 +02:00
Henrik Rydgård 129f3fe997 Testfix, cleanup 2022-07-31 10:43:48 +02:00
Henrik Rydgård fecf9127a0 Implement 3D texturing in the OpenGL backend too. Assorted fixes. 2022-07-31 10:43:48 +02:00
Henrik Rydgård 566385f762 Remove some dead code 2022-07-31 10:43:48 +02:00
Henrik Rydgård f87b4cf232 Implement 3D textures for D3D9 as well 2022-07-31 10:43:48 +02:00
Henrik Rydgård 0262fbc70a Implement 3D textures for D3D11 2022-07-31 10:43:48 +02:00
Henrik Rydgård e455d6bcfe Some safety checks to avoid bad combinations, probably not really needed in practice. 2022-07-31 10:43:48 +02:00
Henrik Rydgård 176b460d76 Quick attempt at fixing the Macross glitch 2022-07-31 10:43:48 +02:00
Henrik Rydgård d7aa3ee486 Fix the mip bias to take the texture depth and sampling offset into account. 2022-07-31 10:43:48 +02:00
Henrik Rydgård 2cb9e09ad3 Implement new discovery of a larger CLUT than we thought, plus non-shared CLUTs for 8-bit indices.
Not sure yet what limitations apply, regarding using it for even more
16-bit colors, etc...
2022-07-31 10:43:48 +02:00
Henrik Rydgård f061eadc04 Initial implementation of 3D texturing through equal-size mips (see #6357)
Vulkan-only currently, though all the other backends except ES 2.0
without GL_OES_texture_3d can support it with some work.
2022-07-31 10:43:47 +02:00
Unknown W. Brackets 94c98ccc10 Merge pull request #15762 from rofl0r/ci_release_fix
CI: also upload release source tarball on tag push
2022-07-30 22:44:07 -07:00
rofl0r 7d6a806d85 CI: make indentation in tarball.yml consistent 2022-07-31 04:41:19 +00:00
Henrik Rydgård 29befd3b27 Merge pull request #15764 from unknownbrackets/gpu-minor
GPU: Small scaling variable cleanup
2022-07-31 06:31:16 +02:00
Henrik Rydgård 0f39dfad09 Merge pull request #15765 from unknownbrackets/reporting-debug
Reporting: Disable when debugger methods used
2022-07-31 06:30:10 +02:00
Unknown W. Brackets 1233d1d376 Reporting: Disable when debugger methods used.
This won't catch all means of hacking memory, but will catch some.
Trying to reduce noise in reporting from debugging.
2022-07-30 18:21:32 -07:00
Unknown W. Brackets 795b1c04a9 GPU: Small scaling variable cleanup. 2022-07-30 18:18:51 -07:00
rofl0r 8626780943 CI: also upload release source tarball on tag push
the mac os build action uses an action that automatically creates
a release from a tag push, which circumvents triggering the regular
release actions.

also switch from the unmaintained actions/upload-release-asset@v1
to the active softprops/action-gh-release@v1 action.

closes #15761
2022-07-30 21:50:42 +00:00
Henrik Rydgård fc2e3f3db5 Merge pull request #15760 from hrydgard/unify-load-texture-level
Unify the LoadTextureLevel function between three of the backends
2022-07-30 19:45:03 +02:00
Henrik Rydgård c65b8ae539 Revert debug change 2022-07-30 19:10:19 +02:00
Henrik Rydgård 6a5a232777 Unify the GLES LoadTextureLevel with the D3D ones. 2022-07-30 19:07:21 +02:00
Henrik Rydgård c6d7423368 Prepare to convert the GLES functions too 2022-07-30 18:37:48 +02:00
Henrik Rydgård dea979433c Share LoadTextureLevel between the two D3D backends. 2022-07-30 17:00:34 +02:00
Henrik Rydgård 9ed96921e1 Cleanup 2022-07-30 16:51:29 +02:00
Henrik Rydgård b7940f9402 Part 2 of the above 2022-07-30 16:43:31 +02:00
Henrik Rydgård 61cf3e8ba0 D3D: Part 1 of breaking out the API stuff 2022-07-30 16:38:40 +02:00
Henrik Rydgård de3a6e7381 Merge pull request #15758 from hrydgard/scaler-expand-32
Simplify CPU upscaling code
2022-07-30 16:16:02 +02:00
Henrik Rydgård 69c4b59edd libretro buildfix 2022-07-30 15:20:36 +02:00
Henrik Rydgård 3496bd52f0 UWP buildfix 2022-07-30 15:18:56 +02:00
Henrik Rydgård 063cd18254 Simplify CPU upscaling code
Use the existing expandTo32bit mode in the texture decoder instead of
the backend-specific switches and stuff.

Just gets rid of a bunch of redundant code and makes further changes
easier.
2022-07-30 15:06:25 +02:00
Henrik Rydgård 3e39f62c3d Merge pull request #15743 from hrydgard/build-texture-refactor
TextureCache "BuildTexture" refactor and cleanup
2022-07-30 11:21:57 +02:00
Henrik Rydgård d6e699aa56 Merge pull request #15753 from hrydgard/thin3d-simplify-stencil
Improve and simplify stencil buffer support in thin3d
2022-07-30 11:13:48 +02:00
Henrik Rydgård 3fc7023d82 Vulkan stencil fixes 2022-07-30 10:47:18 +02:00
Henrik Rydgård a0febce3a9 Make the D3D9 backend handle stencil state in more similar ways to the others. 2022-07-30 10:47:18 +02:00
Henrik Rydgård 08c33f8e54 More thin3d d3d11 fixes 2022-07-30 10:47:18 +02:00
Henrik Rydgård e43b5e2081 thin3d: Make writeMask and compareMask dynamic in all backends. D3D11 needs emulation. 2022-07-30 10:47:18 +02:00
Henrik Rydgård 4a18629e63 thin3d: Remove dual sided stencil, not supported by all backends anyway 2022-07-30 10:47:18 +02:00
Henrik Rydgård b9b3310c21 Remove some indentation 2022-07-30 10:45:03 +02:00
Henrik Rydgård 9f1fdc6c02 Use PrepareBuildTexture from the Vulkan backend too 2022-07-30 10:45:03 +02:00
Henrik Rydgård d0d53091a8 Change from maxLevel to levelsToLoad, for better readability. Cleanup. 2022-07-30 10:45:02 +02:00
Henrik Rydgård 1e9d85cda1 Define texture loading plan semantics better, pre-port some from Vulkan 2022-07-30 10:44:28 +02:00
Henrik Rydgård eb6d364a2d Vulkan: One step closer to using PrepareBuildTexture 2022-07-30 10:44:28 +02:00
Henrik Rydgård 6220068fb1 Update PrepareBuildTexture 2022-07-30 10:44:28 +02:00
Henrik Rydgård 1513978019 Use PrepareBuildTexture from DX9 backend 2022-07-30 10:44:28 +02:00