summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends
AgeCommit message (Collapse)Author
2014-01-20Move GLInterface.h into GLInterface directoryScott Moreau
2014-01-19Stop building GLExtensions.cpp twice(One in GL, one in software). We don't ↵Ryan Houdek
need to build it twice, this'll save a bit of time in the build process. Also a bit of spacing cleanup.
2014-01-18Rename our GLInterface class function 'GetProcAddress' in order to not have ↵Ryan Houdek
clashing function names due to Windows.
2014-01-18Move Win32 specific function grabbing fallback to WGL.cpp. Fixes issue 6964.Ryan Houdek
2014-01-18Merge of GL-AutoChoose.Ryan Houdek
This branch is the final step of fully supporting both OpenGL and OpenGL ES in the same binary. This of course only applies to EGL and won't work for GLX/AGL/WGL since they don't really support GL ES. The changes here actually aren't too terrible, basically change every #ifdef USE_GLES to a runtime check. This adds a DetectMode() function to the EGL context backend. EGL will iterate through each of the configs and check for GL, GLES3_KHR, and GLES2 bits After that it'll change the mode from _DETECT to whichever one is the best supported. After that point we'll just create a context with the mode that was detected
2014-01-17Merge branch 'GLExtensions'degasus
2014-01-17VideoCommon: merge triangle+list+point index buffersdegasus
We are used to render them out of order as long as everything else matches, but rendering order does matter, so we have to flush on primitive switch. This commit implements this flush. Also as we flush on primitive switch, we don't have to create three different index buffers. All indices are now stored in one buffer. This will slow down games which switch often primitive types (eg ztp), but it should be more accurate.
2014-01-17[GLExtensions] fixup for missing changes on rebasedegasus
2014-01-17[GLExtensions] Rename internal GetProcAddress function since it clashes with ↵Ryan Houdek
the global Windows function. Fix Windows function pointer grabbing.
2014-01-17[GLExtensions] OpenGL 3.0 also added GL_ARB_map_buffer_range to core.Ryan Houdek
2014-01-17[GLExtensions] Future proof ourself by putting the default: instance on the ↵Ryan Houdek
top, so we'll grab extensions if they support something newer. Handle older GLVersions in the case they get that far.
2014-01-17[GLExtensions] Populate the extension list for OpenGL implementations that ↵Ryan Houdek
don't show core extensions.
2014-01-17[GLExtensions] Fix OS X build.Ryan Houdek
2014-01-17[GLExtensions] Remove AGL GetProcAddress. Change dlsym to using RTLD_NEXT. ↵Ryan Houdek
Enable dlsym fallback for OS X
2014-01-17[GLExtensions] Make sure to link against libdl since we use it to grab GL ↵Ryan Houdek
function pointers in Linux/Android in the case the GLInterface->GetProcAddress fails.
2014-01-17[GLExtensions] Missed a couple USE_GLES3 compile time differences.Ryan Houdek
2014-01-17[GLExtensions] Pull in all the function pointers for OpenGL 1.1, This ↵Ryan Houdek
removes the need for a couple compile time differences between GL and GLES3 mode.
2014-01-17[GLExtensions] Oops. Don't just outright disable these helper functions.Ryan Houdek
2014-01-17[GLExtensions] Don't fail out loading funciton pointers in both ES2 and ES3 ↵Ryan Houdek
modes.
2014-01-17[GLExtensions] Make sure to initialize our function pointers with ↵Ryan Houdek
VideoSoftware as well.
2014-01-17[GLExtensions] Still had a GLEW lib hanging out in the CMake file for the ↵Ryan Houdek
software renderer.
2014-01-17fix windows buildJack Frost
add the GL include (back) to Base.props use a similar technique to GLX.cpp (by Sonic) in WGL.cpp to get wglSwapIntervalEXT without the WGLEW check Conflicts: Source/Core/VideoBackends/OGL/OGL.vcxproj Source/Core/VideoBackends/OGL/OGL.vcxproj.filters Source/VSProps/Base.props
2014-01-17[GLExtensions] Dynamically pull in the GL 1.3 and 1.4 functions as well.Ryan Houdek
2014-01-17[GLExtensions] KHR_debug on OpenGL ES 3 has a KHR suffix on their function ↵Ryan Houdek
pointers. In Desktop OpenGL there is no suffix. So handle this correctly. Make the GrabFunction macro slightly less evil, so update the init_* to reflect it. Thanks Bh44L for the suggestion.
2014-01-17[GLExtensions] Fix a typo in KHR_debugRyan Houdek
2014-01-17[GLExtensions] Add ARB_buffer_storage to negate at least one null pointer ↵Ryan Houdek
instance.
2014-01-17[GLExtensions] Initial code drop for GLExtensions. This drops GLEW entirely ↵Ryan Houdek
from the codebase. This has been tested on Android and Linux+ATI. Of course untested on Windows and Apple. Also untested with Linux + EGL but should be fine there. There are most likely a couple of extensions I'm missing which would result in null pointer runs but not bad for the initial commit. Conflicts: CMakeLists.txt Externals/GLew/glew.vcxproj Externals/GLew/glew.vcxproj.filters Source/Core/VideoBackends/OGL/CMakeLists.txt Source/Core/VideoBackends/OGL/GLFunctions.cpp Source/Core/VideoBackends/OGL/GLFunctions.h Source/Core/VideoBackends/OGL/GLUtil.h Source/Core/VideoBackends/OGL/Render.cpp Source/VSProps/Base.props
2014-01-16Remove vertex streaming hack.Tony Wasserka
NV has buffer_storage, AMD has pinned memory. Both are better than that hack which shouldn't ever have been introduced in the first place.
2014-01-15VideoCommon: cleanup of "components" usagedegasus
This "u32 components" is a list of flags which attributes of the vertex loader are present. We are used to append this variable to lots of vertex generation functions, but some of them don't need it at all.
2014-01-09OGL: remove masking from streambufferdegasus
We used this to disable pinned memory for index buffer, but as the detection was reworked completely, it's just unused code.
2014-01-09VideoCommon: disable efb access + perf querys on cph threaddegasus
The usual way to handle this kind of request is to rise a flag which the gpu thread polls. The gpu thread itself either generates the result or just write zeros if disabled. After this, it rise another flag which says that this work is done. So if disabled, we still have the cpu-gpu round trip time. This commit just returns 0 on the cpu thread instead of playing ping pong...
2014-01-07Fix for previous commit. I was supposed to use GL_VERSION, not GL_RENDERER.Ryan Houdek
2014-01-07Probe the GL_RENDERER string on Nvidia to grab the driver version.Ryan Houdek
2014-01-06D3D: Verbosify an error message.NeoBrainX
2014-01-05OpenGL: use shader 420pack if available to staticly bind ubo locationdegasus
Bindung locations after compiling a shader stalls the driver. So if we manage not to bind anything after compilation, the lag would be reduced much.
2014-01-05OpenGL: drop UBO-workaround usage for efb2ram shadersdegasus
It's just brainfuck to use this workaroung there. Just fetch the uniform location like all other util shaders.
2014-01-03ogl: clamp to edge for out of bound efb accessdegasus
fixes issue 6898 OpenGL defaults are GL_REPEAT, which is even more unlikely than GL_CLAMP_TO_EDGE. As I can't test the behavoir of the real hardware, I changed it to how it works before, but I guess just clip the texture makes more sense.
2014-01-01Merge Fail. We don't disable BaseVertex on broken pinned memory.Ryan Houdek
2013-12-31Merge branch 'master' into buffer_storageRyan Houdek
2013-12-31Merge branch 'master' into buffer_storageRyan Houdek
Conflicts: Source/Core/VideoBackends/OGL/Src/Render.cpp Source/Core/VideoCommon/Src/DriverDetails.cpp Source/Core/VideoCommon/Src/DriverDetails.h
2013-12-31Remove unnecessary Src/ foldersJasper St. Pierre
2013-12-31Convert all vcxproj files to UNIX line endingsJasper St. Pierre
2013-12-30Disable primitive restart on buggy OS X Intel HD 3000 drivers.Ryan Houdek
2013-12-30D3D/OGL: Add a TODO noting that we don't support GX_CULL_ALL, most notably ↵Tony Wasserka
required for accurate zfreeze emulation.
2013-12-30Software renderer: Add a zfreeze related TODO.Tony Wasserka
2013-12-28Free performance for AMD+Linux. Instead of disabling BaseVertex due to ↵Ryan Houdek
pinned_memory. Just disable pinned_memory for the ELEMENT_ARRAY_BUFFER type which has issues with baseVertex(ELEMENT_ARRAY_BUFFER)+pinned_memory. In my two tests with this, I went from 5FPS to 11FPS in one test, and 2FPS to 6FPS in another.
2013-12-28[buffer_storage] Temporary fix for Android/GLES3 just like how everything ↵Ryan Houdek
else is. Cleanup for this will be in a new branch.
2013-12-28[buffer_storage] Code formatting changes suggested by Bh44LRyan Houdek
2013-12-28[Android] Enable shader cache.Ryan Houdek
2013-12-28[Android] Support grabbing OpenGL extensions and a function for checking for ↵Ryan Houdek
support.