summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends
AgeCommit message (Collapse)Author
2013-12-27[buffer_storage] Add the CLIENT_STORAGE_BIT since we access the buffer more ↵Ryan Houdek
frequently on the client side than the server side. That is exactly what the hint is for.
2013-12-27[buffer_storage] Require GLEW 1.10 which has the new OpenGL 4.4 methods. ↵Ryan Houdek
Fixes linux build.
2013-12-27[buffer_storage] Implement ARB_buffer_storage. Disable it for ↵Ryan Houdek
GL_ARRAY_BUFFER due to a bug in Nvidia's drivers that causes black screen with it.
2013-12-23Remove our GLU dependency. Fix static zlibRyan Houdek
2013-12-19[Android] Work around Qualcomm's broken garbage in their v53 drivers. This ↵Ryan Houdek
doesn't fix the issue, just a work around. This is the stupidest issue coming from Qualcomm. Now Dolphin Mobile won't crash immediately, but there are new SPS issues.
2013-12-19Work around AMD's broken Linux drivers when it comes to pinned memory and ↵Ryan Houdek
base_vertex usage. It seems that using pinned memory with base_vertex disabled is quicker than the other way around.
2013-12-18In the shader log message, say if the error came from a PS or VS.Ryan Houdek
2013-12-16Software renderer: Add linear interpolation of fog range adjustment factors.Tony Wasserka
2013-12-12Have our OpenGL/ES context creation be less stupid.Ryan Houdek
2013-12-11Remove all instances of OpenCL in the Dolphin Project. A brief history of ↵Ryan Houdek
OpenCL in Dolphin. OpenCL was originally added to the Dolphin codebase 1 month after it was released with OS X Snow Leopard in 2009. OpenCL was one of the largest group projects that Dolphin ever has had. The OpenCL texture decoder was originally aded with version 1.0 of the OpenCL spec; This version didn't have the capability of a OpenCL-OpenGL interop which would allow for uploading textures once and have it decoded directly to a OpenGL texure. This was to be worked out when the OpenCL 1.1 spec was released and allowed the interop. This work has never been done, and no one in the team is willing to work on it for various reasons. OpenCL has had the unreasonable expectation that it increases the performance of video games that require a large amount of EFB copies like NSMBW. In reality, enabling OpenCL just put the graphics card in a higher power mode which increased the game speed. This is due to the unfortunate effect of Dolphin tending to not push GPUs out of their lower frequency power savings modes. Thanks to everyone that had contributed to the OpenCL texture decoder.
2013-12-09OpenGL: disable shader cache when ShaderDebugging is enableddegasus
fixes 6859
2013-12-09Merge branch 'ogl-tex2d'degasus
Conflicts: Source/Core/VideoBackends/OGL/Src/TextureConverter.cpp
2013-12-09OGL: use integer uniforms for efb2ram texture converterdegasus
2013-12-03OpenGL: fix crash in revision 95aeedec19dbdegasus
Real xfb didn't provide any read_stride, so there is a division by zero. This commit calculates the correct read_stride for real_xfb, so there is also no hack for texture vs xfb needed.
2013-11-26OpenGL: readback efb2ram with different strides at oncedegasus
This is done with a pixel buffer object. We still have to stall the GPU, but we only do it once per efb2ram call. As the cpu can't access the vram, it has to queue a memcpy for the gpu and wait for the gpu to finish this copy. We did this for every cache line which is just stupid. Now we copy the complete texture into a pbo and readback this at once. So we don't have to wait for lots of round-trip-times.
2013-11-26OpenGL: reset EFB after efb2ram FB initializationdegasus
2013-11-25OpenGL: split real xfb + efb2ram framebuffersdegasus
2013-11-25Fix for OpenGL ES 3.Ryan Houdek
2013-11-25TextureConverter: Use integer math for swizzlingdegasus
also move int(efb_coord) -> float(ogl_fb_coord) into WriteSampleColor
2013-11-25TextureConverter: Use gl_FragCoord instead of uv0degasus
2013-11-25OpenGL: attributeless rendering for efb2ramdegasus
This wasn't as easy as we now have to cache also the uniform locations.
2013-11-25OpenGL: attributeless rendering for postprocessingdegasus
2013-11-25OpenGL: attributeless rendering in emulate format changesdegasus
only cleanup
2013-11-25OpenGL: cleanup efb2texdegasus
Also use attributeless rendering. But we need the src rect, so set it by uniform. If there is a slowdown here (I doubt as the driver likely has a fast path to update uniforms) then we should check if this rect changes and only then update the uniform.
2013-11-25OpenGL: drop texture_rect hackdegasus
Everything is moved to texture2d (but often in a hacky way), so we don't need this global hack any more.
2013-11-25OpenGL: fix emulate format changes for texture2ddegasus
2013-11-25OpenGL: fix efb2tex for texture2ddegasus
2013-11-25OpenGL: fix xfb for texture2ddegasus
2013-11-25OpenGL: always use texture2d as efbdegasus
2013-11-25OpenGL: also remove VAO from xfb convertiondegasus
We use attributeless rendering, so officially we have to bind _any_ VAO. As the state of this VAO doesn't matter, we don't have to switch it. Also fix an AMD issue as they don't like to render from an empty VAO.
2013-11-25Fix the issue with COLOROUT not being defined anymore. Fix a issue where ↵Ryan Houdek
Mali shader compiler is idiotic in finding an overload for the mix function.
2013-11-24[Android] Due to recent changes in code breaking Tegra 4 support, and also ↵Ryan Houdek
the upcoming code which will be breaking GLES2 support entirely. Taking the initiative to drop the remaining support code from the codebase in preparation for the upcoming changes. For a look at how Dolphin on Tegra 4 looked like prior and would not have been able to be fixed at all due to Tegra 4 not supporting the precision we need in our shaders; Look at this Youtube video http://youtu.be/Ga7Jc_Ote7U
2013-11-24OpenGL: cleanup yuv2rgb (real xfb) workflowdegasus
We neither scale nor render from subimages, so we by using gl_Position, we don't have to generate _any_ vertices for this converting. Also remove the glTexSubImage optimization as every driver does it when needed. But there are some workflows (eg on APU) where it's better to realloc this texture instead of a second memcpy or stall.
2013-11-25Add comments for anybody attempting accuracy improvements in the future.Scott Mansell
2013-11-25OpenGL: Enable filtering for EFB to Real XFB copies.Scott Mansell
This fixes Real XFB Jaggies in OpenGL on games which use yscaling, such as most PAL games. This fixes the last of the "Real XFB Macroblocking" issues for opengl, see issue #6503
2013-11-24Fix Desktop GLSL versions in the recent changes.Scott Mansell
Seems OpenGL ES 3 Requires you must have an lod argument, while Desktop versions require you must not have a lod argument if you are using a Sampler2DRect (which doesn't do Mipmapping).
2013-11-24Fix OpenGL ES 3 in the recent changes. texelFetch doesn't require the lod ↵Ryan Houdek
argument in desktop GLSL versions, but in GLSL ES 3 it is a required argument.
2013-11-24Opengl: fix real XFB sample positionsdegasus
(0,0) and (1,0) aren't accurate xfb sample positions. This fixes the image shift to the left and some blocking on higher IR.
2013-11-24Opengl: Fix opengl realxfb "macroblocking"/bluring issue.Scott Mansell
YUYV textures should NEVER be interpolated/filtered in RGB colour space. Use TexelFetch to always fetch an actual texture sample. issue 6503
2013-11-24VideoCommon: reorder cbufid in orderer. We've used once two timesdegasus
2013-11-24Merge branch 'efb2tex_alpha'degasus
2013-11-24D3D: also fix MAX_COPY_BUFFERSdegasus
the D3D backend caches the colmat buffers. As we've created more different colmats, the maximum of this matrices must also be updated.
2013-11-24Unused arguments removed from XFBSource::DrawMatthew Parlane
Thanks neo.
2013-11-24Dynamically allocate color textures.Scott Mansell
Saves ram when the video software backend isn't being used.
2013-11-24Increase res of color texture to match PAL Super Smash Bros: BrawlScott Mansell
The pal version of SSBB has a 640x568 xfb, which is larger than the efb. Increase the size of the static textures and put in some runtime checks to prevent buffer overruns.
2013-11-23Remove c++11 feature so VC2010 can be happy.Scott Mansell
2013-11-23Merge branch 'master' into videosoftware-xfbScott Mansell
Conflicts: Source/Core/VideoBackends/Software/Src/EfbCopy.cpp Source/Core/VideoBackends/Software/Src/SWRenderer.cpp Source/Core/VideoBackends/Software/Src/SWRenderer.h Source/Core/VideoBackends/Software/Src/SWVideoConfig.cpp Source/Core/VideoBackends/Software/Src/SWmain.cpp
2013-11-22OpenGL: Enable pinned memory even for index buffers (works for me). Big-ish ↵Tony Wasserka
speedup on AMD GPUs for streaming intensive games.
2013-11-17std::string can't be passed to ... format.Matthew Parlane
2013-11-17Don't pass char* to std::string.Matthew Parlane
Windows was fine with this :(