Commit Graph
5652 Commits
Author SHA1 Message Date
Unknown W. Brackets 1199008641 TexCache: Align bufw properly even for VRAM.
Fixes minimap arrows in Manhunt 2 (see #9615.)
2019-03-24 19:21:08 -07:00
Henrik RydgårdandGitHub b0048525a1 Merge pull request #11884 from hrydgard/vulkan-buffer-usage
Vulkan: Tighten up push buffer usage flags a little bit.
2019-03-18 11:17:49 +01:00
Henrik RydgårdandGitHub 1ab9f6cc95 Merge pull request #11883 from hrydgard/windows-fp-precise
Windows: Change FP model to Precise. See #11382
2019-03-18 11:16:19 +01:00
Unknown W. Brackets c5b844cc98 GPU: Respect stencil write mask on clear.
Actually identified this for the softgpu in #11319, but applying it for
RGBA is a problem in most renderers.  Forgot to at least apply it to
stencil.

Fixes #11901.
2019-03-16 19:42:18 -07:00
Unknown W. Brackets 0b48c6d066 SoftGPU: Apply color doubling only to RGB.
Broken in #11379 - accidentally applied to the alpha value.  See #11901
for an example where this caused issues with blending.
2019-03-16 19:40:33 -07:00
Henrik Rydgård 06b04f65a0 Vulkan: Narrow down buffer usage flags a little bit. 2019-03-14 12:41:39 +01:00
Henrik Rydgård 4d5af330a7 Windows: Change FP model to Precise. See #11384 2019-03-14 10:59:35 +01:00
Henrik Rydgård f316a65905 Revert "Temporary commit to get CalcCullRange logging into a buildbot build"
This reverts commit 786914690d.
2019-03-13 11:39:08 +01:00
Henrik Rydgård 786914690d Temporary commit to get CalcCullRange logging into a buildbot build 2019-03-13 11:37:52 +01:00
Henrik Rydgård 3445f39f3f Survive pipeline creation failure on Vulkan. Makes Burnout playable on Pocophone... Sigh.
Minor cleanups.
2019-03-11 16:40:10 +01:00
Unknown W. Brackets 271389b8e5 GLES: Fix stencil buffer upload at > 1x PSP.
Also fixes crashes on ATI.  See #6627.
2019-03-10 08:36:12 -07:00
Unknown W. Brackets d7f2167898 GLES: Correct cull range offset in unbuffered. 2019-03-02 10:58:28 -08:00
Unknown W. Brackets 357e0316a0 GPU: Handle cull range properly drawing at offset.
Did the transformation backwards.
2019-03-02 10:48:01 -08:00
Henrik Rydgård 8e7da3fef4 Disable vertex range culling when the depthrange hack is enabled. Temporary workaround for #11576. 2019-02-26 16:07:11 +01:00
Henrik Rydgård 593c3139bd Ignore DisableAccurateDepth on Adreno as well. Fixes #11557 2019-02-26 15:21:21 +01:00
Henrik Rydgård 1f4c1cee2d Disable more texcoord math on terrible-precision PowerVR (it's really awful). Fixes #9189. 2019-02-26 10:39:17 +01:00
Henrik Rydgård bf2bbd891c Back out wrong change. Leaving better error handling for later. 2019-02-25 15:15:04 +01:00
Henrik Rydgård c1427f5981 VulkanImage: Fix issue where we'd try to free dedicated allocations from the allocator_ instead of Vulkan directly.
Snuck in some minor cleanups.
2019-02-24 22:23:26 +01:00
vit9696 27d216ea25 Fix postprocessing shader support on macOS
Check GL_ARB_shading_language_420pack availability, which SPIRV-Cross assumes
present by default, causing explicit binding location generation during shader
translation.
2019-02-22 06:34:37 +03:00
Unknown W. Brackets af58577aff GPU: Better typesafety for shader bits.
See 128c0ad.
2019-02-16 06:54:56 -08:00
Unknown W. Brackets b955ec70c9 GPU: Correct depth clamp range in range cull.
It was just wrong before, causing wrong culling when using a non-standard
viewport scale/center for depth.

Fixes #11701, fixes #11781.
2019-02-10 09:58:01 -08:00
Unknown W. BracketsandGitHub 0f74a19979 Merge pull request #11777 from hrydgard/redefine-slow-framebuffer-effects-setting
Gate fewer effects behind "Disable slow framebuffer effects".
2019-02-09 05:14:11 +00:00
Henrik Rydgard 5aed2a2cee Gate fewer effects behind "Disable slow framebuffer effects". 2019-02-08 15:02:31 +01:00
Henrik Rydgard 11c8450f19 Only gate really expensive block transfers behind the setting. 2019-02-08 14:50:47 +01:00
Henrik Rydgard 9736bc431a The block transfer setting should not affect clearing memory behind a render target, especially since that's already gated behind a compat flag. 2019-02-08 14:46:16 +01:00
Henrik Rydgård 8af523596f Disable vertex range culling on old NVIDIA. Should help #11638 2019-02-06 22:44:02 +01:00
Henrik Rydgard e30daa8027 Remove unused API, assorted cleanup.
No longer enable the geometry shader feature, no plans to use it.
2019-02-05 21:31:43 +01:00
Henrik Rydgard 8e1a5ef3d6 Minor refactor of physical device property/feature detection, to allow for more extension use. 2019-02-05 18:07:17 +01:00
Henrik Rydgard fdd0d7acb4 More Vulkan validation fixes
NVIDIA no longer uses nVidia capitalization.
2019-02-05 18:07:11 +01:00
Henrik Rydgard 128c0adc39 Vulkan: Fix typo, bump shader cache version. 2019-02-04 14:22:19 +01:00
Henrik Rydgard 992cea1082 Load a function from VK_EXT_external_memory_host 2019-01-31 13:53:27 +01:00
Henrik Rydgard c38c5469c4 Fixes for issues found by Vulkan validation layers, including a common non-harmful perf warning (doesn't fix all cases, but does fix the most common one). 2019-01-25 20:18:56 +01:00
Henrik Rydgård 79d4b0f5a2 Check that allocations in SplineCommon succeed. Attempt at #11660 but not optimistic. 2019-01-06 13:51:17 +01:00
Henrik Rydgård 12f295c4a5 GLES: Detect Vivante GPU, disable vertex range culling
Should work-around #11703
2019-01-03 12:43:32 +01:00
Henrik RydgårdandGitHub 8e17caf351 Merge pull request #11694 from unknownbrackets/draw-bugs
Vulkan: Limit stencil workaround to Adreno 5xx
2018-12-26 20:46:09 +01:00
Unknown W. Brackets adeca2c3ba GLES: Move some vendor bug checks to Draw. 2018-12-23 20:27:22 -08:00
Unknown W. Brackets 7ad6270623 GLES: Remove spurious semicolons in shaders.
Were causing compile errors on some devices.
2018-12-23 20:21:17 -08:00
Unknown W. Brackets 01809f809f GLES: Correct fragment precision check.
Was breaking on Mali-4xx for example, because not defined.
2018-12-23 20:16:59 -08:00
Unknown W. Brackets e46701dee6 GLES: Specify glsl version precisely in depal.
Should prevent more of #11588 on vertex shaders, and may help Apple
devices some too.
2018-12-23 20:08:08 -08:00
Unknown W. Brackets 9a3de5cb1c GPU: Move dual source blending bug check to Draw.
This also allows the ini setting to avoid it on Intel.
2018-12-23 14:11:57 -08:00
Unknown W. Brackets f8ce9b08ba Vulkan: Limit stencil workaround to Adreno 5xx. 2018-12-23 14:11:57 -08:00
Unknown W. Brackets 1f594f3fb5 GPU: Track draw in shader manager.
With device restore etc. everywhere.
2018-12-23 12:55:37 -08:00
Unknown W. BracketsandGitHub 2dbdd73e5f Merge pull request #11691 from hrydgard/workaround-harvest-moon-adreno-bug
WIP: Vulkan/adreno: Apply workaround for Harvest Moon issue #10421
2018-12-23 12:04:00 -08:00
xebra df4179fdb5 [spline/bezier]Remove unused stuff. 2018-12-24 04:06:12 +09:00
Henrik Rydgård 0037da55a1 Avoid breaking any alpha-stencil emulation in Adreno bug workaround 2018-12-23 11:57:06 +01:00
Henrik Rydgård 79ef185d6e Vulkan/adreno: Apply workaround for Harvest Moon issue #10421 2018-12-22 18:29:56 +01:00
Henrik RydgårdandGitHub 683a4e0fb2 Merge pull request #11676 from unknownbrackets/gles-depth
WIP - GLES: Download depth values via shader
2018-12-19 09:58:38 +01:00
Unknown W. Brackets 08d71cef50 GLES: Simplify depth download shader.
Fixes it on Adreno, no need to do the constant math in the shader.
2018-12-18 21:47:21 -08:00
Henrik Rydgård 9fd8d3b911 Fix bug in #11681 2018-12-18 17:01:16 +01:00
Henrik Rydgård a73c569bf6 Add check for GL_FRAGMENT_PRECISION_HIGH for GLES in stencil code. 2018-12-18 14:30:05 +01:00