Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2017-02-27 | Core: Re-write frame limiter | Yuri Kunde Schlesner | 1 | -3/+3 | |
Now based on std::chrono, and also works in terms of emulated time instead of frames, so we can in the future frame-limit even when the display is disabled, etc. The frame limiter can also be enabled along with v-sync now, which should be useful for those with displays running at more than 60 Hz. | |||||
2017-02-27 | Core: Make PerfStats internally locked | Yuri Kunde Schlesner | 1 | -8/+2 | |
More ergonomic to use and will be required for upcoming changes. | |||||
2017-02-27 | Remove built-in (non-Microprofile) profiler | Yuri Kunde Schlesner | 1 | -8/+0 | |
2017-02-27 | Add performance statistics to status bar | Yuri Kunde Schlesner | 1 | -0/+9 | |
2017-02-18 | OpenGL: Check if uniform block exists before updating it (#2581) | Jannik Vogel | 1 | -29/+30 | |
2017-02-09 | OpenGL: Remove unused duplicate of IsPassThroughTevStage | Yuri Kunde Schlesner | 1 | -12/+0 | |
This copy was left behind when the shader generation code was moved to a separate file. | |||||
2017-02-09 | VideoCore: Split regs.h inclusions | Yuri Kunde Schlesner | 5 | -17/+29 | |
2017-02-04 | VideoCore: Move Regs to its own file | Yuri Kunde Schlesner | 5 | -5/+5 | |
2017-02-04 | VideoCore: Split lighting regs from Regs struct | Yuri Kunde Schlesner | 3 | -37/+45 | |
2017-02-04 | VideoCore: Split framebuffer regs from Regs struct | Yuri Kunde Schlesner | 6 | -70/+84 | |
2017-02-04 | VideoCore: Split texturing regs from Regs struct | Yuri Kunde Schlesner | 6 | -85/+91 | |
2017-02-04 | VideoCore: Split rasterizer regs from Regs struct | Yuri Kunde Schlesner | 3 | -32/+37 | |
2017-02-04 | Pica/Texture: Simplify/cleanup texture tile addressing | Yuri Kunde Schlesner | 1 | -2/+1 | |
2017-02-04 | VideoCore: Move LookupTexture out of debug_utils.h | Yuri Kunde Schlesner | 1 | -5/+6 | |
2017-01-30 | VideoCore: Change misleading register names | Yuri Kunde Schlesner | 2 | -2/+2 | |
A few registers had names such as "count" or "number" when they actually contained the maximum (that is, count - 1). This can easily lead to hard to notice off by one errors. | |||||
2017-01-30 | video_core: gl_rasterizer_cache.cpp removed unused type alias | Kloen | 1 | -1/+0 | |
2017-01-30 | video_core: gl_rasterizer.cpp removed unused type alias | Kloen | 1 | -2/+0 | |
2017-01-29 | video_core: silence unused-local-typedef boost related warning on GCC | Kloen | 1 | -0/+7 | |
2017-01-23 | video_core: gl_rasterizer float to int warning | Kloen | 1 | -1/+2 | |
2017-01-23 | video_core: fix gl_rasterizer warning on MSVC | Kloen | 1 | -1/+1 | |
2017-01-07 | config: Add option for specifying screen resolution scale factor. | bunnei | 1 | -3/+10 | |
2016-12-25 | Minor cleanup in GLSL code | Jannik Vogel | 1 | -3/+2 | |
2016-12-25 | Offset lighting LUT samples correctly | Jannik Vogel | 1 | -7/+7 | |
2016-12-23 | core: Move emu_window and key_map into core | MerryMage | 2 | -2/+2 | |
* Removes circular dependences (common should not depend on core) | |||||
2016-12-19 | Use GL_TRUE when setting color_mask | Albin Bernhardsson | 1 | -4/+4 | |
2016-12-15 | VideoCore: Make profiling scope more representative | Yuri Kunde Schlesner | 1 | -0/+12 | |
2016-12-07 | OpenGL: Drop framebuffer completeness check. | Markus Wick | 5 | -47/+8 | |
This OpenGL call synchronize the worker thread of the nvidia blob. It can be verified on linux with the __GL_THREADED_OPTIMIZATIONS=1 environment variable. Those errors should not happen on tested drivers. It was used as a workaround for https://bugs.freedesktop.org/show_bug.cgi?id=94148 | |||||
2016-12-05 | ASSERT that shader was linked successfully | Jannik Vogel | 1 | -0/+2 | |
2016-12-05 | Report shader uniform block size in case of mismatch | Jannik Vogel | 1 | -1/+3 | |
2016-12-05 | Print broken shader code to log | Jannik Vogel | 1 | -3/+9 | |
2016-12-04 | OpenGL: Non-zero stride only makes sense for linear buffers | Yuri Kunde Schlesner | 3 | -7/+11 | |
2016-12-04 | OpenGL: Ensure framebuffer binding is restored if completion check fails | Yuri Kunde Schlesner | 1 | -10/+7 | |
2016-12-04 | OpenGL: Fix DisplayTransfer accel when input width != output width | Yuri Kunde Schlesner | 1 | -1/+10 | |
Fixes #2246, #2261 | |||||
2016-11-30 | ClangFormat: Fixed the clang-format errors | Subv | 1 | -4/+8 | |
2016-11-29 | Build: Fixed a few warnings. | Subv | 1 | -4/+4 | |
2016-11-27 | RasterizerGL: Use GL_TRUE and 0xFF in the stencil and depth masks instead of simply true and -1 | Subv | 2 | -4/+4 | |
2016-11-27 | Rasterizer/Memfill: Set the correct stencil write mask when clearing the stencil buffer. | Subv | 1 | -1/+1 | |
2016-11-05 | Add default hotkey to swap primary screens. | James Rowe | 1 | -3/+2 | |
Also minor style changes | |||||
2016-11-05 | Support additional screen layouts. | James Rowe | 1 | -6/+12 | |
Allows users to choose a single screen layout or a large screen layout. Adds a configuration option to change the prominent screen. | |||||
2016-09-30 | OpenGL: Take cached viewport sub-rect into account for scissor | Yuri Kunde Schlesner | 3 | -29/+25 | |
Fixes #1938 | |||||
2016-09-29 | rasterizer: separate TextureCopy from DisplayTransfer | wwylele | 2 | -5/+6 | |
2016-09-21 | Use negative priorities to avoid special-casing the self-include | Yuri Kunde Schlesner | 6 | -6/+6 | |
2016-09-21 | Remove empty newlines in #include blocks. | Emmanuel Gil Peyrot | 11 | -42/+6 | |
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation. | |||||
2016-09-19 | Manually tweak source formatting and then re-run clang-format | Yuri Kunde Schlesner | 8 | -46/+40 | |
2016-09-18 | Sources: Run clang-format on everything. | Emmanuel Gil Peyrot | 12 | -486/+789 | |
2016-08-30 | OpenGL: Avoid error on unsupported lighting LUT | Jannik Vogel | 1 | -0/+1 | |
2016-06-28 | OpenGL: Add scaled resolution support to scissor | Yuri Kunde Schlesner | 4 | -3/+16 | |
2016-06-28 | PICA: Scissor fixes and cleanups | Yuri Kunde Schlesner | 3 | -21/+22 | |
2016-06-28 | PICA: Implement scissor test | Subv | 3 | -1/+53 | |
2016-06-07 | OpenGL: Implement fog | Jannik Vogel | 5 | -7/+124 | |
2016-06-07 | OpenGL: Avoid undefined behaviour for UNIFORM_BLOCK_DATA_SIZE | Jannik Vogel | 2 | -6/+8 | |
2016-06-01 | gsp::gpu: Reset g_thread_id in UnregisterInterruptRelayQueue | mailwl | 1 | -1/+1 | |
2016-05-23 | OpenGL: Set shader_dirty on lighting changes | Jannik Vogel | 1 | -0/+23 | |
2016-05-23 | Pica: Name LightSrc.config register | Jannik Vogel | 1 | -2/+2 | |
2016-05-23 | Pica: Name lighting.config0 and .config1 registers | Jannik Vogel | 1 | -12/+12 | |
2016-05-23 | OpenGL: Use uniforms for dist_atten_bias and dist_atten_scale | Jannik Vogel | 3 | -8/+84 | |
2016-05-14 | OpenGL: Only update depth uniforms if the depth changed | Jannik Vogel | 2 | -9/+22 | |
2016-05-14 | OpenGL: value-initialize variables which cause uninitialised access otherwise | Jannik Vogel | 1 | -2/+2 | |
2016-05-12 | OpenGL: Support blend equation | Jannik Vogel | 4 | -0/+31 | |
2016-05-11 | OpenGL: Implement texture type 3 | Jannik Vogel | 4 | -35/+67 | |
2016-05-10 | gl_rasterizer: Fix compilation for debug builds | Lioncash | 1 | -1/+1 | |
2016-05-10 | OpenGL: Implement W-Buffers and fix depth-mapping | Jannik Vogel | 3 | -4/+23 | |
2016-05-10 | Pica: Implement W-Buffer in SW rasterizer | Jannik Vogel | 1 | -2/+2 | |
2016-05-07 | fixup simple type conversions where possible | Alexander Laties | 2 | -2/+2 | |
2016-05-06 | Frontends, VideoCore: Move glad initialisation to the frontend | Emmanuel Gil Peyrot | 1 | -6/+0 | |
On SDL2 this allows it to use SDL_GL_GetProcAddress() instead of the default function loader, and fixes a crash when using apitrace with an EGL context. On Qt we will need to migrate from QGLWidget to QOpenGLWidget and QOpenGLContext before we can use gladLoadGLLoader() instead of gladLoadGL(), since the former doesn’t expose a function loader. | |||||
2016-05-03 | Pica: Use a union for PicaShaderConfig | Jannik Vogel | 3 | -125/+139 | |
2016-05-03 | Pica: Add TevStageConfigRaw to PicaShaderConfig (MSVC workaround) | Jannik Vogel | 2 | -2/+23 | |
2016-05-03 | Pica: Make PicaShaderConfig trivially_copyable and clear it before use | Jannik Vogel | 1 | -21/+28 | |
2016-05-03 | OpenGL: Don't copy const_color (Reverts #1745) | Jannik Vogel | 1 | -2/+3 | |
2016-05-01 | OpenGL: Copy TevStageConfig using a loop. Fixes bug: const_color not copied | Jannik Vogel | 1 | -30/+11 | |
2016-04-30 | OpenGL: border_color was never set. Fixed. (#1740) | Jannik Vogel | 1 | -0/+1 | |
2016-04-30 | VideoCore: Run include-what-you-use and fix most includes. | Emmanuel Gil Peyrot | 12 | -24/+76 | |
2016-04-29 | Common: Remove section measurement from profiler (#1731) | Yuri Kunde Schlesner | 1 | -1/+0 | |
This has been entirely superseded by MicroProfile. The rest of the code can go when a simpler frametime/FPS meter is added to the GUI. | |||||
2016-04-22 | HWRasterizer: reorder declarations to match defs | tfarley | 1 | -9/+9 | |
2016-04-22 | HWRasterizer: sync specular uniform for new shaders | tfarley | 1 | -0/+2 | |
2016-04-21 | HWRasterizer: Texture forwarding | tfarley | 8 | -738/+1347 | |
2016-04-10 | OpenGL: Implement color combiner Operation::Dot3_RGB | Jannik Vogel | 1 | -0/+3 | |
2016-04-08 | OpenGL: Respect buffer-write allow registers | Jannik Vogel | 1 | -6/+28 | |
2016-04-08 | OpenGL: Split buffer-write mask sync into seperate functions | Jannik Vogel | 2 | -8/+39 | |
2016-04-08 | OpenGL: Keep stencil-test and framebuffer.depth_format in sync | Jannik Vogel | 1 | -0/+1 | |
2016-04-05 | Common: Remove Common::make_unique, use std::make_unique | MerryMage | 2 | -4/+4 | |
2016-04-03 | OpenGL: Fix a double framebuffer completeness checks. | Emmanuel Gil Peyrot | 1 | -4/+6 | |
2016-04-03 | OpenGL: Check for framebuffer completeness | Jannik Vogel | 1 | -0/+3 | |
2016-04-01 | Avoid warnings by casting to size_t for ARRAY_SIZE() comparisons | Jannik Vogel | 1 | -6/+6 | |
2016-03-24 | OpenGL: Don't attempt to draw empty triangle batches | Yuri Kunde Schlesner | 1 | -0/+3 | |
Our code did not handle this well, causing random crashes in some situations. | |||||
2016-03-08 | Improve error report from Init() functions | LittleWhite | 2 | -2/+8 | |
Add error popup when citra initialization failed | |||||
2016-03-06 | Pica: Write depth value even when depth test is disabled | Yuri Kunde Schlesner | 1 | -2/+4 | |
This has been confirmed on hardware. Fixes Etrian Odyssey IV. | |||||
2016-03-03 | Add immediate mode vertex submission | Dwayne Slater | 2 | -0/+2 | |
2016-02-26 | renderer_opengl: Initalise fragment shader LUT textures | MerryMage | 1 | -0/+4 | |
2016-02-05 | pica: Cleanup lighting register definitions and documentation. | bunnei | 1 | -15/+15 | |
2016-02-05 | gl_rasterizer: Use alignas(16) instead of explicit padding. | bunnei | 1 | -13/+6 | |
2016-02-05 | renderer_opengl: Use GLvec3/GLvec4 aliases for commonly used types. | bunnei | 4 | -14/+18 | |
2016-02-05 | gl_rasterizer: Fix issue with interpolation of opposite quaternions. | bunnei | 2 | -4/+32 | |
2016-02-05 | pica_types: Replace float24/20/16 with a template class. | bunnei | 2 | -9/+9 | |
2016-02-05 | gl_rasterizer: Remove unnecessary casts. | bunnei | 1 | -6/+6 | |
2016-02-05 | gl_rasterizer: Fix PicaShaderConfig on GCC. | bunnei | 1 | -29/+27 | |
2016-02-05 | gl_rasterizer: Initial implementation of bump mapping. | bunnei | 2 | -5/+33 | |
2016-02-05 | gl_shader_gen: Fix bug in LUT range (should within range [0, 255] not [0, 256]). | bunnei | 1 | -3/+3 | |
2016-02-05 | gl_shader_gen: Implement lighting red, green, and blue reflection. | bunnei | 2 | -18/+62 | |
2016-02-05 | gl_shader_gen: View should be normalized. | bunnei | 1 | -2/+2 | |
2016-02-05 | gl_shader_gen: Implement fragment lighting fresnel effect. | bunnei | 2 | -9/+33 | |
2016-02-05 | gl_shader_gen: Implement fragment lighting specular 1 component. | bunnei | 2 | -3/+22 | |
2016-02-05 | gl_shader_gen: Add support for D0 LUT scaling. | bunnei | 2 | -2/+4 | |
2016-02-05 | gl_shader_gen: Refactor lighting config to match Pica register naming. | bunnei | 2 | -42/+48 | |
- Also implement D0 LUT enable. | |||||
2016-02-05 | pica: Cleanup and add some comments to lighting registers. | bunnei | 1 | -1/+1 | |
2016-02-05 | gl_rasterizer: Minor naming refactor on Pica register naming. | bunnei | 1 | -5/+5 | |
2016-02-05 | gl_shader_gen: Reorganize and cleanup lighting code. | bunnei | 1 | -100/+107 | |
- No functional difference. | |||||
2016-02-05 | gl_shader_gen: Fix directional lights. | bunnei | 1 | -1/+1 | |
2016-02-05 | gl_shader_gen: Fix bug with lighting where clamp highlights was only applied to last light. | bunnei | 1 | -6/+6 | |
2016-02-05 | gl_shader_gen: View vector needs to be normalized when computing half angle vector. | bunnei | 1 | -3/+4 | |
2016-02-05 | renderer_opengl: Use textures for fragment shader LUTs instead of UBOs. | bunnei | 5 | -27/+64 | |
- Gets us LUT interpolation for free. - Some older Intel GPU drivers did not support the big UBOs needed to store the LUTs. | |||||
2016-02-05 | renderer_opengl: Initial implementation of basic specular lighting. | bunnei | 3 | -12/+158 | |
2016-02-05 | renderer_opengl: Implement HW fragment lighting distance attenuation. | bunnei | 2 | -17/+38 | |
2016-02-05 | renderer_opengl: Implement HW fragment lighting LUTs within our default UBO. | bunnei | 3 | -15/+66 | |
2016-02-05 | renderer_opengl: Implement diffuse component of HW fragment lighting. | bunnei | 5 | -5/+259 | |
2016-02-03 | hwrasterizer: Use proper cached fb addr/size | tfarley | 2 | -42/+34 | |
2016-02-03 | OpenGL: Downgrade GL_DEBUG_SEVERITY_NOTIFICATION to Debug logging level | Yuri Kunde Schlesner | 1 | -2/+0 | |
The nVidia driver is *extremely* spammy on this category, sending a message on every buffer or texture upload, slowing down the emulator and making the log useless. | |||||
2016-01-21 | hwrasterizer: Use depth offset | tfarley | 3 | -2/+24 | |
2015-12-08 | VideoCore: Unify interface to OpenGL and SW rasterizers | Yuri Kunde Schlesner | 3 | -38/+5 | |
This removes explicit checks sprinkled all over the codebase to instead just have the SW rasterizer expose an implementation with no-ops for most operations. | |||||
2015-12-07 | VideoCore: Rename HWRasterizer methods to be less confusing | Yuri Kunde Schlesner | 2 | -6/+6 | |
2015-12-07 | OpenGL: Rename cache functions to better match what they actually do | Yuri Kunde Schlesner | 3 | -12/+11 | |
2015-12-05 | OpenGL: Flip framebuffers during transfer rather than when rendering | Yuri Kunde Schlesner | 2 | -12/+11 | |
2015-12-05 | OpenGL: Add support for glFrontFace in the state tracker | Yuri Kunde Schlesner | 2 | -0/+6 | |
2015-12-01 | PICA: Properly emulate 1-stage delay in the combiner buffer | Yuri Kunde Schlesner | 1 | -7/+11 | |
This was discovered and verified by @fincs. The tev combiner buffer actually lags behind by one stage, meaning stage 1 reads the initial color, stage 2 reads stage 0's output, and so on. Fixes character portraits in Fire Emblem: Awakening and world textures in Zelda: ALBW. Closes #1140. | |||||
2015-11-26 | renderer_opengl: Fix uniform issues introduced with kemenaran/avoid-explicit-uniform-location. | bunnei | 2 | -6/+8 | |
2015-11-25 | Use regular uniform location | Pierre de La Morinerie | 3 | -15/+5 | |
The support for GL_ARB_explicit_uniform_location is not that good (53% according to http://feedback.wildfiregames.com/report/opengl/feature/GL_ARB_explicit_uniform_location). This fix the shader compilation on Intel HD 4000 (#1222). | |||||
2015-11-19 | FragShader: Use an UBO instead of several individual uniforms | Subv | 6 | -13/+67 | |
2015-10-24 | OpenGL: Log GL_KHR_debug messages we receive | Emmanuel Gil Peyrot | 1 | -0/+57 | |
This allows the driver to communicate errors, warnings and improvement suggestions about our usage of the API. | |||||
2015-10-22 | gl_shader_gen: Use explicit locations for vertex shader attributes. | bunnei | 2 | -15/+9 | |
2015-10-22 | gl_shader_gen: Optimize code for AppendAlphaTestCondition. | bunnei | 1 | -16/+11 | |
- Also add a comment to AppendColorCombiner. | |||||
2015-10-22 | gl_rasterizer: Define enum types for each vertex texcoord attribute. | bunnei | 3 | -12/+14 | |
2015-10-22 | gl_shader_gen: Various cleanups to shader generation. | bunnei | 3 | -48/+52 | |
2015-10-22 | gl_rasterizer: Use MMH3 hash for shader cache hey. | bunnei | 4 | -83/+63 | |
- Includes a check to confirm no hash collisions. | |||||
2015-10-22 | gl_shader_gen: Require explicit uniform locations. | bunnei | 3 | -56/+34 | |
- Fixes uniform issue on AMD. | |||||
2015-10-22 | gl_shader_gen: Rename 'o' to 'attr' in vertex/fragment shaders. | bunnei | 1 | -11/+11 | |
2015-10-22 | gl_shader_gen: AppendAlphaModifier default should be 0.0, not vec4(0.0). | bunnei | 1 | -1/+1 | |
2015-10-22 | gl_shader_gen: Fix bug where TEV stage outputs should be clamped. | bunnei | 1 | -3/+3 | |
2015-10-22 | gl_rasterizer: Add documentation to ShaderCacheKey. | bunnei | 1 | -0/+16 | |
2015-10-22 | gl_shader_gen: Add additional function documentation. | bunnei | 2 | -0/+18 | |
2015-10-22 | gl_shader_util: Cleanup header file + add docstring. | bunnei | 1 | -1/+7 | |
2015-10-22 | gl_shader_gen: Various cleanups + moved TEV stage generation to its own function. | bunnei | 1 | -161/+170 | |
2015-10-22 | renderer_opengl: Refactor shader generation/caching to be more organized + various cleanups. | bunnei | 9 | -787/+507 | |
2015-10-22 | gl_rasterizer: Move logic for creating ShaderCacheKey to a static function. | bunnei | 2 | -18/+46 | |
2015-10-22 | gl_shader_util: Use vec3 constants for AppendColorCombiner. | bunnei | 1 | -6/+6 | |
2015-10-22 | gl_rasterizer: Fix typo in uploading TEV const color uniforms. | bunnei | 1 | -5/+5 | |
2015-10-22 | gl_shader_util: Fix precision bug with alpha testing. | bunnei | 2 | -9/+9 | |
- Alpha testing is not done with float32 precision, this makes the HW renderer match the SW renderer. | |||||
2015-10-22 | Initial implementation of fragment shader generation with caching. | Subv | 6 | -261/+564 | |
2015-10-07 | Silence -Wsign-compare warnings. | Rohit Nirmal | 1 | -3/+3 | |
2015-09-29 | fix some xcode 7.0 warnings | Martin Lindhe | 1 | -1/+0 | |
2015-09-16 | general: Silence some warnings when using clang | Lioncash | 1 | -2/+2 | |
2015-09-11 | video_core: Reorganize headers | Lioncash | 7 | -18/+17 | |
2015-09-11 | video_core: Remove unnecessary includes from headers | Lioncash | 2 | -6/+3 | |
2015-09-10 | renderer_opengl: Remove unimplemented function declaration | Lioncash | 1 | -3/+0 | |
2015-09-10 | gl_rasterizer: Replace push_back calls with emplace_back in AddTriangle | Lioncash | 1 | -3/+3 | |
2015-09-03 | OpenGL: Use Sampler Objects to decouple sampler config from textures | Yuri Kunde Schlesner | 4 | -21/+76 | |
Fixes #978 | |||||
2015-09-03 | OpenGL: Remove ugly and endian-unsafe color pointer casts | Yuri Kunde Schlesner | 3 | -9/+9 | |
2015-09-03 | OpenGL: Add support for Sampler Objects to state tracker | Yuri Kunde Schlesner | 3 | -4/+42 | |
2015-08-30 | Replace the previous OpenGL loader with a glad-generated 3.3 one | Yuri Kunde Schlesner | 10 | -2810/+11 | |
The main advantage of switching to glad from glLoadGen is that, apart from being actively maintained, it supports a customizable entrypoint loader function, which makes it possible to also support OpenGL ES. | |||||
2015-08-28 | gl_rasterizer_cache: Detect and ignore unnecessary texture flushes. | bunnei | 3 | -8/+18 | |
2015-08-25 | Integrate the MicroProfile profiling library | Yuri Kunde Schlesner | 2 | -0/+15 | |
This brings goodies such as a configurable user interface and multi-threaded timeline view. | |||||
2015-08-24 | HWRenderer: Added a workaround for the Intel Windows driver bug that causes glTexSubImage2D to not change the stencil buffer. | Subv | 1 | -2/+9 | |
Reported here https://communities.intel.com/message/324464 | |||||
2015-08-21 | HWRasterizer: Implemented stencil ops 6 and 7. | Subv | 1 | -1/+3 | |
2015-08-21 | HWRasterizer: Implemented stencil op 1 (GL_ZERO) | Subv | 1 | -1/+1 | |
2015-08-20 | GLRasterizer: Implemented stencil testing in the hw renderer. | Subv | 4 | -2/+44 | |
2015-08-15 | Shader: Move shader code to its own subdirectory, "shader". | bunnei | 1 | -1/+1 | |
2015-08-15 | GPU: Refactor "VertexShader" namespace to "Shader". | bunnei | 2 | -8/+8 | |
- Also renames "vertex_shader.*" to "shader_interpreter.*" | |||||
2015-08-06 | OpenGL: Fix state tracking in situations with reused object handles | Yuri Kunde Schlesner | 4 | -0/+45 | |
If an OpenGL object is created, bound to a binding using the state tracker, and then destroyed, a newly created object can be assigned the same numeric handle by OpenGL. However, even though it is a new object, and thus needs to be bound to the binding again, the state tracker compared the current and previous handles and concluded that no change needed to be made, leading to failure to bind objects in certain cases. This manifested as broken text in VVVVVV, which this commit fixes along with similar texturing problems in other games. | |||||
2015-08-06 | OpenGL: Remove redundant texture.enable_2d field from OpenGLState | Yuri Kunde Schlesner | 4 | -26/+3 | |
All uses of this field where it's false can just set the texture id to 0 instead. | |||||
2015-07-28 | OpenGL: Add a profiler category measuring framebuffer readback | Yuri Kunde Schlesner | 1 | -0/+7 | |
2015-07-26 | OpenGL: Make OpenGL object resource wrappers fully inline | Yuri Kunde Schlesner | 2 | -142/+79 | |
The functions are so simple that having them separate only bloats the code and hinders optimization. | |||||
2015-07-23 | Rasterizer/GL: Set the border color when binding a texture. | Subv | 1 | -2/+9 | |
2015-07-22 | GL Renderer: Remove erroneous glEnable(GL_TEXTURE_2D) calls | Yuri Kunde Schlesner | 1 | -8/+5 | |
In OpenGL 3, texturing is always enabled, and this call is invalid. While it produced no effect in the rest of the execution, it wouldn't have the intended effect of disabling texturing for that unit. Instead bind a null texture to the unit. | |||||
2015-07-21 | GPU: Added registers for min and mag texture filters and implemented them in the hw renderer. | Subv | 2 | -3/+29 | |
2015-07-19 | GLRasterizer: Don't try to get a pointer to the depth buffer if it doesn't exist. | Subv | 1 | -3/+7 | |
2015-07-13 | Add CiTrace recording support. | Tony Wasserka | 1 | -0/+6 | |
This is exposed in the GUI as a new "CiTrace Recording" widget. Playback is implemented by a standalone 3DS homebrew application (which only runs reliably within Citra currently; on an actual 3DS it will often crash still). | |||||
2015-07-09 | Added GL_CLAMP_TO_BORDER support | Lectem | 1 | -1/+1 | |
2015-06-28 | Core: Cleanup hw includes. | Emmanuel Gil Peyrot | 2 | -0/+2 | |
2015-06-28 | Core, VideoCore: Replace or fix exit() calls. | Emmanuel Gil Peyrot | 1 | -6/+9 | |
2015-06-28 | Common: Cleanup key_map includes. | Emmanuel Gil Peyrot | 2 | -3/+9 | |
2015-06-16 | VideoCore: Log the GL driver’s vendor and renderer. | Emmanuel Gil Peyrot | 1 | -0/+2 | |
2015-06-09 | Renderer formatting edits | tfarley | 2 | -26/+29 | |
2015-06-09 | Render-to-texture flush, interval math fix | tfarley | 1 | -1/+13 | |
2015-06-09 | Liberal texture unbind (clout menu) | tfarley | 2 | -4/+40 | |
2015-06-09 | Depth format fix (crush3d intro/black screens) | tfarley | 1 | -46/+46 | |
2015-06-09 | Implemented glColorMask | tfarley | 3 | -0/+24 | |
2015-05-31 | Pica: Use zero for the SecondaryFragmentColor source. | bunnei | 1 | -10/+14 | |
- This is a workaround until we support fragment lighting. | |||||
2015-05-31 | Pica: Implement LogicOp function. | bunnei | 5 | -0/+57 | |
2015-05-30 | Move video_core/color.h to common/color.h | archshift | 1 | -1/+2 | |
2015-05-30 | Move video_core/math.h to common/vector_math.h | archshift | 1 | -1/+1 | |
The file only contained vector manipulation code, and such widely-useable code doesn't belong in video_core. | |||||
2015-05-29 | Remove every trailing whitespace from the project (but externals). | Emmanuel Gil Peyrot | 5 | -12/+12 | |
2015-05-23 | gl_state: Remove unnecessary const specifier on Apply | Lioncash | 2 | -2/+2 | |
2015-05-23 | Pica: Create 'State' structure and move state memory there. | bunnei | 2 | -114/+132 | |
2015-05-23 | gl_state: Fix a condition typo in Apply | Lioncash | 1 | -1/+1 | |
2015-05-23 | OpenGL renderer | tfarley | 12 | -20/+2069 | |
2015-05-15 | Memmap: Re-organize memory function in two files | Yuri Kunde Schlesner | 1 | -1/+1 | |
memory.cpp/h contains definitions related to acessing memory and configuring the address space mem_map.cpp/h contains higher-level definitions related to configuring the address space accoording to the kernel and allocating memory. | |||||
2015-05-09 | Memory: Add GetPhysicalPointer helper function | Yuri Kunde Schlesner | 1 | -4/+4 | |
2015-05-07 | Common: Remove common.h | Yuri Kunde Schlesner | 1 | -0/+1 | |
2015-04-04 | Allow the user to set the background clear color during emulation | archshift | 1 | -1/+2 | |
The background color can be seen at the sides of the bottom screen or when the window is wider than normal. | |||||
2015-03-09 | Added LCD registers, and implementation for color filling in OGL code. | archshift | 2 | -11/+48 | |
2015-03-07 | Set framebuffer layout from EmuWindow. | bunnei | 1 | -39/+9 | |
2015-03-02 | Add profiling infrastructure and widget | Yuri Kunde Schlesner | 1 | -0/+12 | |
2015-02-15 | video_core: Implement the remaining framebuffer formats in the OpenGL renderer. | Emmanuel Gil Peyrot | 2 | -12/+67 | |
2015-02-11 | Asserts: break/crash program, fit to style guide; log.h->assert.h | archshift | 2 | -4/+4 | |
Involves making asserts use printf instead of the log functions (log functions are asynchronous and, as such, the log won't be printed in time) As such, the log type argument was removed (printf obviously can't use it, and it's made obsolete by the file and line printing) Also removed some GEKKO cruft. | |||||
2015-01-14 | GSP: Update framebuffer info on all interrupts | Yuri Kunde Schlesner | 1 | -3/+1 | |
Hardware testing determined that the GSP processes shared memory framebuffer update info even when no memory transfer or filling GX commands are used. They are now updated on every interrupt, which isn't confirmed correct but matches hardware behaviour more closely. This also reverts the hack introduced in #404. It made a few games behave better, but I believe it's incorrect and also breaks other games. | |||||
2015-01-08 | GSP: Toggle active framebuffer each frame | bunnei | 1 | -1/+4 | |
2014-12-21 | License change | purpasmart96 | 5 | -5/+5 | |
2014-12-20 | Clean up some warnings | Chin | 1 | -2/+2 | |
2014-12-13 | Convert old logging calls to new logging macros | Yuri Kunde Schlesner | 2 | -12/+24 | |
2014-12-03 | Change NULLs to nullptrs. | Rohit Nirmal | 1 | -5/+5 | |
2014-12-01 | Silence a few -Wsign-compare warnings. | Rohit Nirmal | 1 | -1/+1 | |
2014-11-30 | Fixed viewport error caused by rounding | vaguilar | 1 | -2/+2 | |
2014-11-19 | Remove tabs in all files except in skyeye imports and in generated GL code | Emmanuel Gil Peyrot | 1 | -1/+1 | |
2014-11-18 | OpenGL Renderer: Cleanup viewport extent calculation. | Tony Wasserka | 2 | -44/+29 | |
2014-11-18 | Fixup EmuWindow interface and implementations thereof. | Tony Wasserka | 1 | -3/+3 | |
2014-11-18 | Viewport scaling and display density independence | Kevin Hartman | 2 | -1/+50 | |
The view is scaled to be as large as possible, without changing the aspect, within the bounds of the window. On "retina" displays, or other displays where window units != pixels, the view should no longer draw incorrectly. | |||||
2014-10-26 | Add `override` keyword through the code. | Yuri Kunde Schlesner | 1 | -4/+4 | |
This was automated using `clang-modernize`. | |||||
2014-10-21 | Only check OpenGL shader log if size is >1. | Yuri Kunde Schlesner | 1 | -9/+6 | |
This prevents a crash when the buffer size returned by the driver is 0, in which case no space is allocated to store even the NULL byte and glGetShaderInfoLog errors out. Thanks to @Relys for the bug report. | |||||
2014-10-12 | Rework OpenGL renderer. | Yuri Kunde Schlesner | 3 | -233/+189 | |
The OpenGL renderer has been revised, with the following changes: - Initialization and rendering have been refactored to reduce the number of redundant objects used. - Framebuffer rotation is now done directly, using texture mapping. - Vertex coordinates are now given in pixels, and the projection matrix isn't hardcoded anymore. | |||||
2014-10-12 | OpenGL renderer: Shuffle initialization code around and rename functions. | Yuri Kunde Schlesner | 2 | -25/+18 | |
2014-10-12 | Remove virtual inheritance from RendererOpenGL | Yuri Kunde Schlesner | 1 | -2/+2 | |
Also make destructor virtual so that instances are properly destructed. | |||||
2014-09-09 | Moved common_types::Rect from common to Common namespace | archshift | 2 | -3/+3 | |
2014-09-07 | renderer_opengl.cpp: improved alignment for readability | archshift | 1 | -16/+16 | |
2014-09-01 | Replace GLEW with a glLoadGen loader. | Yuri Kunde Schlesner | 6 | -7/+2805 | |
This should fix the GL loading errors that occur in some drivers due to the use of deprecated functions by GLEW. Side benefits are more accurate auto-completion (deprecated function and symbols don't exist) and faster pointer loading (less entrypoints to load). In addition it removes an external library depency, simplifying the build system a bit and eliminating one set of binary libraries for Windows. | |||||
2014-08-28 | Downgrade GLSL version to 1.50 (compatible with GL 3.2) | Yuri Kunde Schlesner | 3 | -10/+15 | |
2014-08-26 | VideoCore: Fixes rendering issues on Qt and corrects framebuffer output size. | bunnei | 2 | -4/+11 | |
2014-08-26 | Rewrite of OpenGL renderer, including OS X support | Kevin Hartman | 5 | -203/+315 | |
Screen contents are now displayed using textured quads. This can be updated to expose an FBO once an OpenGL backend for when Pica rendering is being worked on. That FBO's texture can then be applied to the quads. Previously, FBO blitting was used in order to display screen contents, which did not work on OS X. The new textured quad approach is less of a compatibility risk. | |||||
2014-08-12 | Pica/GPU: Change hardware registers to use physical addresses rather than virtual ones. | Tony Wasserka | 1 | -7/+7 | |
This cleans up the mess that address reading/writing had become and makes the code a *lot* more sensible. This adds a physical<->virtual address converter to mem_map.h. For further accuracy, we will want to properly extend this to support a wider range of address regions. For now, this makes simply homebrew applications work in a good manner though. | |||||
2014-08-12 | Remove the fancy RegisterSet class introduced in 4c2bff61e. | Tony Wasserka | 1 | -2/+2 | |
While it was some nice and fancy template usage, it ultimately had many practical issues regarding length of involved expressions under regular usage as well as common code completion tools not being able to handle the structures. Instead, we now use a more conventional approach which is a lot more clean to use. | |||||
2014-07-23 | Use uniform formatting when printing hexadecimal numbers. | Tony Wasserka | 1 | -1/+1 | |
2014-07-23 | RegisterSet: Simplify code by using structs for register definition instead of unions. | Tony Wasserka | 1 | -9/+9 | |
2014-07-23 | GPU: Make use of RegisterSet. | Tony Wasserka | 1 | -26/+28 | |
2014-07-23 | Renderer: Fix component order in bottom framebuffer. | Tony Wasserka | 2 | -5/+4 | |
2014-07-23 | Renderer: Respect the active_fb GPU register. | Tony Wasserka | 1 | -2/+9 | |
2014-07-23 | Renderer: Add a few TODOs. | Tony Wasserka | 1 | -3/+10 | |
2014-06-12 | Rename LCD to GPU. | Tony Wasserka | 1 | -3/+3 | |
2014-05-20 | common_types: Changed BasicRect back to Rect, in the common namespace | archshift | 2 | -3/+3 | |
Only Rect is in the namespace for now; the rest of common should be added in the future | |||||
2014-05-08 | Update FlipFramebuffer | Sethpaien | 1 | -7/+6 | |
Less calculations + fix | |||||
2014-05-01 | Reverse debugging changes | archshift | 1 | -2/+0 | |
2014-05-01 | TGA dumps work, courtesy of @bunnei | archshift | 1 | -0/+2 | |
2014-04-28 | Xcode complains that the class name is redundant. | archshift | 1 | -1/+1 | |
2014-04-28 | Rect to BasicRect | archshift | 2 | -3/+3 | |
Somewhere along the line an OSX header had already taken the name Rect. | |||||
2014-04-28 | removed DISALLOW_COPY_AND_ASSIGN in favor of NonCopyable class | bunnei | 1 | -1/+0 | |
2014-04-27 | fixed renderer to use correct framebuffer location | bunnei | 2 | -8/+7 | |
2014-04-22 | fixed GL context acquire (applies to Qt GUI only) | bunnei | 1 | -0/+2 | |
2014-04-18 | renamed hw_lcd module to just lcd | bunnei | 1 | -1/+1 | |
2014-04-17 | fixed framebuffer color order | bunnei | 1 | -1/+1 | |
2014-04-17 | removed hard-coded framebuffer addresses from renderer_opengl.cpp | bunnei | 1 | -2/+4 | |
2014-04-09 | fixed project includes to use new directory structure | bunnei | 2 | -6/+7 | |
2014-04-09 | got rid of 'src' folders in each sub-project | bunnei | 2 | -0/+370 | |