Commit Graph
48 Commits
Author SHA1 Message Date
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
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
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ård 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 58ef662a65 GLES: Remove FBO_UNUSABLE bug check.
Was no longer affecting behavior...
2018-12-23 20:27:22 -08:00
Unknown W. Brackets adeca2c3ba GLES: Move some vendor bug checks to Draw. 2018-12-23 20:27:22 -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 dc54ed6855 GLES: Add disabled code to run GLES on desktop.
Helps when testing certain extensions, etc.
2018-10-28 14:29:44 -07:00
Unknown W. Brackets e301d3bbd6 GLES: Detect ARB aniso and cull distance. 2018-10-28 13:27:44 -07:00
Henrik Rydgård 842290b6dd Workaround for bad int behaviour on Adreno / GLES. (no problems in
Vulkan).

See #11480, should help #11479.
2018-10-20 13:22:14 +02:00
Unknown W. Brackets d1929eaca2 GLES: Properly parse GL extension names.
We must split on spaces and not just lazily use strstr, see #11363.
2018-09-24 23:05:58 -07:00
Unknown W. Brackets f87dcefdd8 Android: Buildfix for CMake.
May affect other arm64 too.  Also, ifdef out a check in case of compiling
with GL 3 headers (to fix a Linux buildbot issue.)
2018-09-03 18:41:52 -07:00
AreaScout 45753d87de Add: EGL info for GLES on Linux 2018-08-30 16:28:34 +00:00
Unknown W. Brackets 4aa4db611e Android: Allow desktop GL if available.
For example, on the SHIELD.
2018-06-18 00:37:52 -07:00
Unknown W. Brackets 0d2de36258 GLES: Use accurate GLSL ver in postshader convert. 2018-06-14 20:31:58 -07:00
aliaspider 0af6d573bb remove all usage of __LIBRETRO__ 2018-03-24 12:45:20 +01:00
Henrik Rydgård 1b9c2f26f9 Whitelist mapbuffer usage to NVIDIA only (should maybe add Qualcomm too), it's murder on Mali 2018-02-12 11:46:19 +01:00
Unknown W. Brackets 20b532fc71 GLES: Use buffer storage and explicit flush.
This is just as fast as using glMapBufferRange on desktop.
2018-02-11 13:14:28 -08:00
Henrik Rydgård ccdb4d186d gl-render-manager: Fix HW tesselation. Remove 1D texture support, likely no benefit. 2018-01-27 15:10:17 +01:00
Henrik Rydgård 2c86217552 Cleanup GPU vendor detection a bit, use it to avoid the issue mentioned in #9545 2017-11-21 16:19:28 +01:00
Henrik Rydgård ed602a3319 UWP buildfix. See comments in #9575 2017-10-11 14:27:50 +02:00
Unknown W. Brackets 1802d7a45e GLSL: Set extension flags for elided core exts.
So that we know we have them, i.e. on Apple.
2017-09-20 12:23:11 -07:00
Unknown W. Brackets e754cca288 GLES: Add OpenGL 3.x core profile support.
Need to define #version everywhere and avoid varying/etc.
2017-09-20 12:22:01 -07:00
twinaphex 4855b2d6f1 mingw patches 2017-08-31 22:15:05 +02:00
Unknown W. Brackets c711b00d4c GPU: Clean up some GLES3 defaults.
It should default both of them the same way.  And we already set subimage
on desktop.
2017-07-01 16:16:59 -07:00
Henrik Rydgård 21fe73c8e7 Switch strncpy to truncate_cpy in a bunch of places. 2017-05-26 19:04:08 +02:00
Enyby f7deda22ae Update gpu_features.cpp
Add additional check for valid parsing GL ES version by driver for work on some bad drivers. See #9688
2017-05-19 00:02:10 +03:00
Enyby 66507e6607 Update gpu_features.cpp
Example of string 'OpenGL ES 2.0 (4.0.0 - Build 10.18.10.4226)'. Old code get 0.0 from it.
New code work right.
2017-05-16 13:26:49 +03:00
Henrik Rydgard 6b46f8ea52 Some paranoia in CheckGLExtensions, due to a reported crash in strlen() 2017-04-02 23:59:17 +02:00
xebra 04e1e1a460 GLES:Fix compatibility checks for instanced rendering. 2017-03-26 19:00:20 +09:00
xebra b9a9a509ae GLES:Remove texture_half_float extension. 2017-03-13 01:02:05 +09:00
Henrik Rydgard f95459ab0d Fix bug where we tried to set aniso even if unsupported. Fixes #9377 2017-03-03 14:16:15 +01:00
Henrik Rydgard 03dab0fdbd More UWP prep 2017-02-25 09:57:22 +01:00
Henrik Rydgard f5fa238e22 More minor changes to make GPU and native build on UWP later 2017-02-24 20:26:38 +01:00
xebra 7bdfbd81af Fix OES_texture_npot to GL_OES_texture_npot. 2017-02-01 21:38:06 +09:00
xebra 918bee8801 Add support OES_texture_half_float. 2017-02-01 14:37:03 +09:00
xebra 51c34e8157 Fix OES_texture_float to GL_OES_texture_float. 2017-02-01 12:30:36 +09:00
xebra d6fe5d4ba0 Add supports floating-point-texture into GL extensions. 2017-01-31 23:37:05 +09:00
Florent Castelli 70593d1004 android: Change preprocessor define to standard __ANDROID__
ANDROID is only standard to the old Makefile buildsystem, not the platform.
2016-10-12 11:14:09 +02:00
Florent Castelli 373db56a16 blackberry: Remove! 2016-10-11 17:40:32 +02:00
Unknown W. Brackets 086dc9e0ed Move Apple GL2.0 forcing to a common place. 2016-08-08 17:56:11 -07:00
Unknown W. Brackets 6088c7d5f5 Ensure elided core profile extensions are set. 2016-08-08 17:56:11 -07:00
Unknown W. Brackets 2e2674be21 Properly allow triggering a core context.
This will be useful on Mac.
2016-08-08 17:56:09 -07:00
Unknown W. Brackets 07d34e985b thin3d: Use VAOs for all drawing. 2015-12-19 09:18:28 -08:00
Unknown W. Brackets bf9733f4cb Look up GL_EXTENSIONS the new way in new GL. 2015-12-19 09:18:27 -08:00
Unknown W. Brackets fbc4b4e7a1 Use glCopyImageSubData() when it's available.
There's 4 different extensions providing this functionality.  NV is
supported on desktop and mobile, EXT/OES on mobile, and ARB on desktop.

Mostly these are only supported by desktop cards and NVIDIA mobile.

Good improvement in performance on NVIDIA when blit is called a lot, since
it doesn't need to rebind anything or change state.  Example is in desert
city in Tales of Phantasia.
2015-12-06 10:39:21 -08:00
Henrik Rydgard 4d18d478a0 Sample renderWidth/pixelWidth/height once per frame for the framebuffer manager. 2015-09-19 16:19:03 +02:00
Unknown W. Brackets f279c2a3c2 Merge remote repo native into ext/native/. 2015-09-06 12:24:17 -07:00