summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends
AgeCommit message (Collapse)Author
2014-09-30Merge pull request #578 from RachelBryk/IRTony Wasserka
Cleanup Renderer::CalculateTargetSize(), and allow IRs higher than 4x to be set via INI.
2014-09-30Remove useless STACKALIGN macro.comex
It only ever did anything on 32-bit OS X. Anyway, it wasn't even on the right functions, and these days ABI_PushRegistersAndAdjustStack should handle maintaining the ABI correctly.
2014-09-29Add OpenGL 4.0-4.5 core extensions.comex
This noticeably includes GL_ARB_get_program_binary, which was previously thought unsupported on OS X. Well, actually, the OS X implementation is trivial and reports 0 binary formats (as of 10.10; this is hardcoded in GLEngine, by the way), but at least it'll work if it's fixed someday.
2014-09-28Rejigger some FIFO buffer variables to be more rational.comex
videoBuffer -> s_video_buffer size -> s_video_buffer_write_ptr g_pVideoData -> g_video_buffer_read_ptr (impl moved to Fifo.cpp) This eradicates the wonderful use of 'size' as a global name, and makes it clear that s_video_buffer_write_ptr and g_video_buffer_read_ptr are the two ends of the FIFO buffer s_video_buffer. Oh, and remove a useless namespace {}.
2014-09-28Mechanical changes to move most CP state to a struct rather than separate ↵comex
globals. The next commit will add a separate copy of the struct and the ability for LoadCPReg to work on it.
2014-09-25Cleanup Renderer::CalculateTargetSize(), and allow IRs higher than 4x to be ↵Rachel Bryk
set via ini.
2014-09-23Merge pull request #1142 from lioncash/linucksskidau
Fix some warnings on Linux
2014-09-21Fix some warnings on LinuxLioncash
2014-09-21OGL: Get rid of explicit deletes in RasterFontLioncash
2014-09-21GPU: Only load the relevant color components upon writes to the tev color ↵Tony Wasserka
registers. The other two components need not be valid upon write, hence loading them results in glitches. Fixes issue 6783.
2014-09-19Merge pull request #1120 from rohit-n/muh-precompiled-headersRyan Houdek
Fix build failing when disabling precompiled headers.
2014-09-19Fix build failing when disabling precompiled headers.Rohit Nirmal
2014-09-19Add a comment to the software renderer that stride should be implementedRyan Houdek
2014-09-19WIP XFB scaling.magumagu
Still an ugly mess.
2014-09-10Remove extra semicolons at the ends of some lines.Rohit Nirmal
2014-09-10Merge pull request #1027 from rohit-n/change-includeRyan Houdek
Include CommonTypes.h instead of Common.h.
2014-09-10Merge pull request #1041 from RachelBryk/kill-g_CoreStartupParameterskidau
Kill Core::g_CoreStartupParameter.
2014-09-09Kill Core::g_CoreStartupParameter.Rachel Bryk
2014-09-08Rename Log2 and add IsPow2 to MathUtils for future useFiora
Also remove unused pow2/pow2f functions.
2014-09-08Include CommonTypes.h instead of Common.h.Rohit Nirmal
2014-09-05Merge pull request #972 from Sonicadvance1/fix-intel-windowsshuffle2
Work around Intel's failings with buffer_storage
2014-09-05Revert "JIT64: optimize CA calculations"Fiora
2014-09-05Merge pull request #852 from FioraAeterna/optimizecacomex
JIT64: optimize CA calculations
2014-09-05Merge pull request #948 from comex/vao-fixcomex
Don't switch to a vertex array object of 0.
2014-09-04TextureDecoder: Pass the TLUT address straight into the texture decoderJasper St. Pierre
This removes the requirement for the TextureDecoder to have access to global texture memory.
2014-09-04TextureDecoder: Add an enum for the TLUT formatsJasper St. Pierre
Quick code cleanup. The enum names and values come from libogc.
2014-09-04VideoCommon: Remove support for decoding to ARGB texturesJasper St. Pierre
The D3D / OGL backends only ever used RGBA textures, and the Software backend uses its own custom code for sampling. The ARGB path seems to just be dead code. Since ARGB and RGBA formats are similar, I don't think this will make the code more difficult to read or unable to be used as reference. Somebody who wants to use this code to output ARGB can simply modify the MakeRGBA function to put the shift at the other end.
2014-09-04Work around Intel's failings with with buffer_storageSonicadvance1
2014-09-03OGL: Make rasters 2D array static in RasterFontLioncash
2014-09-03OGL: Fix constant casing in RasterFontLioncash
2014-09-03Don't switch to a vertex array object of 0.comex
This causes glDrawArrays to fail in core profile, and thus on OS X, see: http://renderingpipeline.com/2012/03/attribute-less-rendering/ There must be something bound, even though it is not used. Fixes #7599. I'm not sure this is actually the best way to fix it, since AFAICT it makes a nonobvious assumption that *something* will be bound before the first attributeless rendering in TextureConverter::DecodeToTexture, but it's what degasus suggested and seems to work.
2014-09-01msvc: remove some remnants of SDL and DSound from projects and general cleanup.Shawn Hoffman
2014-09-01Rename Log2 and add IsPow2 to MathUtils for future useFiora
Also remove unused pow2/pow2f functions.
2014-09-01VertexLoader: Change VtxDesc to use u64 instead of u32Pierre Bourdon
This is required to make packing consistent between compilers: with u32, MSVC would not allocate a bitfield that spans two u32s (it would leave a "hole").
2014-08-30D3D: Clean up brace placementsLioncash
2014-08-30Get rid of C-style empty function parameter indicatorsLioncash
2014-08-28Merge pull request #882 from Sonicadvance1/fix-pp-blacknessRyan Houdek
Fix PostProcessing shader garbage on screen.
2014-08-28Clear the texture used by PP shaders prior to use.Ryan Houdek
We were generating a texture without ever setting the data to a known value. This happened on the old code as well, just that PP shaders are receiving some love and people are using it and noticing some of its issues.
2014-08-26Unify three types of non-FIFO requests to the GPU thread around ↵comex
Common::Event and Common::Flag. The only possible functionality change is that s_efbAccessRequested and s_swapRequested are no longer reset at init and shutdown of the OGL backend (only; this is the only interaction any files other than MainBase.cpp have with them). I am fairly certain this was entirely vestigial. Possible performance implications: efbAccessReady now uses an Event rather than spinning, which might be slightly slower, but considering the slow loop the flags are being checked in from the GPU thread, I doubt it's noticeable. Also, this uses sequentially consistent rather than release/acquire memory order, which might be slightly slower, especially on ARM... something to improve in Event/Flag, really.
2014-08-23Remove unused declarations.comex
2014-08-21Merge pull request #764 from magcius/new-nogui-2Lioncash
Rewrite GLInterface
2014-08-19msvc: resolve all warnings in VideoBackends/OGL.Shawn Hoffman
2014-08-19msvc: resolve all warnings in VideoBackends/Software.Shawn Hoffman
2014-08-19Core: Remove UpdateFPSDisplayJasper St. Pierre
This is effectively unused, as the window handles that we pass to the GLInterface are window handles for the frame which isn't ever a real toplevel window. Host_UpdateTitle is what actually sets the proper title on the render window.
2014-08-19Core: Don't pass through a reference to the window handleJasper St. Pierre
Now that MainNoGUI is properly architected and GLX doesn't need to sometimes craft its own windows sometimes which we have to thread back into MainNoGUI, we don't need to thread the window handle that GLX creates at all. This removes the reference to pass back here, and the g_pWindowHandle always be the same as the window returned by Host_GetRenderHandle(). A future cleanup could remove g_pWindowHandle entirely.
2014-08-17Fixes PP-shaders on !Mesa targets.Ryan Houdek
Seems mesa has a quirk where define THING(x) (#x) is the same as define THING(x) (##x) Didn't realize I messed it up since it just worked since I only tested on Mesa.
2014-08-17Merge pull request #823 from KScorp/depthmatrixshadersPierre Bourdon
Fixed depth matrix shaders in OpenGL and Direct3D to be more precise.
2014-08-17Merge pull request #790 from lioncash/ogl-cleanupLioncash
Small OGL cleanup
2014-08-17Fixed depth matrix shaders in OpenGL and Direct3D to be more precise. Fixes ↵KScorp
some graphical glitches in some games.
2014-08-16OGL: Removed some unnecessary preprocessor directives from Render.cpp.Lioncash
scrshotThread was also unused so that is removed as well. Also added the algorithm header, since we use min and max here.