summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* gl_rasterizer: Move logic for creating ShaderCacheKey to a static function.bunnei2015-10-222-18/+46
|
* gl_shader_util: Use vec3 constants for AppendColorCombiner.bunnei2015-10-221-6/+6
|
* gl_rasterizer: Fix typo in uploading TEV const color uniforms.bunnei2015-10-221-5/+5
|
* gl_shader_util: Fix precision bug with alpha testing.bunnei2015-10-222-9/+9
| | | | - Alpha testing is not done with float32 precision, this makes the HW renderer match the SW renderer.
* Initial implementation of fragment shader generation with caching.Subv2015-10-226-261/+564
|
* Silence -Wsign-compare warnings.Rohit Nirmal2015-10-071-3/+3
|
* fix some xcode 7.0 warningsMartin Lindhe2015-09-291-1/+0
|
* general: Silence some warnings when using clangLioncash2015-09-161-2/+2
|
* video_core: Reorganize headersLioncash2015-09-117-18/+17
|
* video_core: Remove unnecessary includes from headersLioncash2015-09-112-6/+3
|
* Merge pull request #1133 from lioncash/emplace-backbunnei2015-09-101-3/+3
|\ | | | | gl_rasterizer: Replace push_back calls with emplace_back in AddTriangle
| * gl_rasterizer: Replace push_back calls with emplace_back in AddTriangleLioncash2015-09-101-3/+3
| |
* | renderer_opengl: Remove unimplemented function declarationLioncash2015-09-101-3/+0
|/
* OpenGL: Use Sampler Objects to decouple sampler config from texturesYuri Kunde Schlesner2015-09-034-21/+76
| | | | Fixes #978
* OpenGL: Remove ugly and endian-unsafe color pointer castsYuri Kunde Schlesner2015-09-033-9/+9
|
* OpenGL: Add support for Sampler Objects to state trackerYuri Kunde Schlesner2015-09-033-4/+42
|
* Replace the previous OpenGL loader with a glad-generated 3.3 oneYuri Kunde Schlesner2015-08-3010-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.
* Merge pull request #1049 from Subv/stencilbunnei2015-08-304-4/+55
|\ | | | | Rasterizer: Corrected the stencil implementation.
| * HWRenderer: Added a workaround for the Intel Windows driver bug that causes glTexSubImage2D to not change the stencil buffer.Subv2015-08-241-2/+9
| | | | | | | | Reported here https://communities.intel.com/message/324464
| * HWRasterizer: Implemented stencil ops 6 and 7.Subv2015-08-211-1/+3
| |
| * HWRasterizer: Implemented stencil op 1 (GL_ZERO)Subv2015-08-211-1/+1
| |
| * GLRasterizer: Implemented stencil testing in the hw renderer.Subv2015-08-204-2/+44
| |
* | gl_rasterizer_cache: Detect and ignore unnecessary texture flushes.bunnei2015-08-283-8/+18
| |
* | Integrate the MicroProfile profiling libraryYuri Kunde Schlesner2015-08-252-0/+15
|/ | | | | This brings goodies such as a configurable user interface and multi-threaded timeline view.
* Shader: Move shader code to its own subdirectory, "shader".bunnei2015-08-151-1/+1
|
* GPU: Refactor "VertexShader" namespace to "Shader".bunnei2015-08-152-8/+8
| | | | - Also renames "vertex_shader.*" to "shader_interpreter.*"
* OpenGL: Fix state tracking in situations with reused object handlesYuri Kunde Schlesner2015-08-064-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.
* OpenGL: Remove redundant texture.enable_2d field from OpenGLStateYuri Kunde Schlesner2015-08-064-26/+3
| | | | | All uses of this field where it's false can just set the texture id to 0 instead.
* OpenGL: Add a profiler category measuring framebuffer readbackYuri Kunde Schlesner2015-07-281-0/+7
|
* OpenGL: Make OpenGL object resource wrappers fully inlineYuri Kunde Schlesner2015-07-262-142/+79
| | | | | The functions are so simple that having them separate only bloats the code and hinders optimization.
* Merge pull request #977 from yuriks/glenable-tex2dbunnei2015-07-231-8/+5
|\ | | | | GL Renderer: Remove erroneous glEnable(GL_TEXTURE_2D) calls
| * GL Renderer: Remove erroneous glEnable(GL_TEXTURE_2D) callsYuri Kunde Schlesner2015-07-221-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.
* | Rasterizer/GL: Set the border color when binding a texture.Subv2015-07-231-2/+9
| |
* | GPU: Added registers for min and mag texture filters and implemented them in the hw renderer.Subv2015-07-212-3/+29
|/
* GLRasterizer: Don't try to get a pointer to the depth buffer if it doesn't exist.Subv2015-07-191-3/+7
|
* Add CiTrace recording support.Tony Wasserka2015-07-131-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).
* Merge pull request #907 from Lectem/clamp_to_borderTony Wasserka2015-07-121-1/+1
|\ | | | | Add GL_CLAMP_TO_BORDER support.
| * Added GL_CLAMP_TO_BORDER supportLectem2015-07-091-1/+1
| |
* | Core: Cleanup hw includes.Emmanuel Gil Peyrot2015-06-282-0/+2
| |
* | Core, VideoCore: Replace or fix exit() calls.Emmanuel Gil Peyrot2015-06-281-6/+9
| |
* | Common: Cleanup key_map includes.Emmanuel Gil Peyrot2015-06-282-3/+9
|/
* VideoCore: Log the GL driver’s vendor and renderer.Emmanuel Gil Peyrot2015-06-161-0/+2
|
* Renderer formatting editstfarley2015-06-092-26/+29
|
* Render-to-texture flush, interval math fixtfarley2015-06-091-1/+13
|
* Liberal texture unbind (clout menu)tfarley2015-06-092-4/+40
|
* Depth format fix (crush3d intro/black screens)tfarley2015-06-091-46/+46
|
* Implemented glColorMasktfarley2015-06-093-0/+24
|
* Merge pull request #811 from archshift/commonifyarchshift2015-05-312-2/+3
|\ | | | | Commonify video_core utility headers
| * Move video_core/color.h to common/color.harchshift2015-05-301-1/+2
| |
| * Move video_core/math.h to common/vector_math.harchshift2015-05-301-1/+1
| | | | | | | | The file only contained vector manipulation code, and such widely-useable code doesn't belong in video_core.
* | Pica: Use zero for the SecondaryFragmentColor source.bunnei2015-05-311-10/+14
| | | | | | | | - This is a workaround until we support fragment lighting.
* | Pica: Implement LogicOp function.bunnei2015-05-315-0/+57
|/
* Remove every trailing whitespace from the project (but externals).Emmanuel Gil Peyrot2015-05-295-12/+12
|
* gl_state: Remove unnecessary const specifier on ApplyLioncash2015-05-232-2/+2
|
* Pica: Create 'State' structure and move state memory there.bunnei2015-05-232-114/+132
|
* gl_state: Fix a condition typo in ApplyLioncash2015-05-231-1/+1
|
* OpenGL renderertfarley2015-05-2312-20/+2069
|
* Memmap: Re-organize memory function in two filesYuri Kunde Schlesner2015-05-151-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.
* Memory: Add GetPhysicalPointer helper functionYuri Kunde Schlesner2015-05-091-4/+4
|
* Common: Remove common.hYuri Kunde Schlesner2015-05-071-0/+1
|
* Allow the user to set the background clear color during emulationarchshift2015-04-041-1/+2
| | | | The background color can be seen at the sides of the bottom screen or when the window is wider than normal.
* Merge pull request #629 from archshift/lcdfbbunnei2015-03-102-11/+48
|\ | | | | Implement SetLcdForceBlack and add implementation for color filling in the GPU code
| * Added LCD registers, and implementation for color filling in OGL code.archshift2015-03-092-11/+48
| |
* | Merge pull request #636 from bunnei/refactor-screen-winbunnei2015-03-081-39/+9
|\ \ | | | | | | Set framebuffer layout from EmuWindow.
| * | Set framebuffer layout from EmuWindow.bunnei2015-03-071-39/+9
| |/
* / Add profiling infrastructure and widgetYuri Kunde Schlesner2015-03-021-0/+12
|/
* video_core: Implement the remaining framebuffer formats in the OpenGL renderer.Emmanuel Gil Peyrot2015-02-152-12/+67
|
* Asserts: break/crash program, fit to style guide; log.h->assert.harchshift2015-02-112-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.
* GSP: Update framebuffer info on all interruptsYuri Kunde Schlesner2015-01-141-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.
* GSP: Toggle active framebuffer each framebunnei2015-01-081-1/+4
|
* Merge pull request #291 from purpasmart96/licensebunnei2014-12-215-5/+5
|\ | | | | License change
| * License changepurpasmart962014-12-215-5/+5
| |
* | Clean up some warningsChin2014-12-201-2/+2
|/
* Convert old logging calls to new logging macrosYuri Kunde Schlesner2014-12-132-12/+24
|
* Change NULLs to nullptrs.Rohit Nirmal2014-12-031-5/+5
|
* Merge pull request #236 from rohit-n/sign-comparebunnei2014-12-031-1/+1
|\ | | | | Silence a few -Wsign-compare warnings.
| * Silence a few -Wsign-compare warnings.Rohit Nirmal2014-12-011-1/+1
| |
* | Fixed viewport error caused by roundingvaguilar2014-11-301-2/+2
|/
* Remove tabs in all files except in skyeye imports and in generated GL codeEmmanuel Gil Peyrot2014-11-191-1/+1
|
* OpenGL Renderer: Cleanup viewport extent calculation.Tony Wasserka2014-11-182-44/+29
|
* Fixup EmuWindow interface and implementations thereof.Tony Wasserka2014-11-181-3/+3
|
* Viewport scaling and display density independenceKevin Hartman2014-11-182-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.
* Add `override` keyword through the code.Yuri Kunde Schlesner2014-10-261-4/+4
| | | | This was automated using `clang-modernize`.
* Only check OpenGL shader log if size is >1.Yuri Kunde Schlesner2014-10-211-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.
* Rework OpenGL renderer.Yuri Kunde Schlesner2014-10-123-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.
* OpenGL renderer: Shuffle initialization code around and rename functions.Yuri Kunde Schlesner2014-10-122-25/+18
|
* Remove virtual inheritance from RendererOpenGLYuri Kunde Schlesner2014-10-121-2/+2
| | | | Also make destructor virtual so that instances are properly destructed.
* Merge pull request #97 from archshift/cleanupbunnei2014-09-141-16/+16
|\ | | | | Small, general code cleanup
| * renderer_opengl.cpp: improved alignment for readabilityarchshift2014-09-071-16/+16
| |
* | Moved common_types::Rect from common to Common namespacearchshift2014-09-092-3/+3
|/
* Replace GLEW with a glLoadGen loader.Yuri Kunde Schlesner2014-09-016-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.
* Downgrade GLSL version to 1.50 (compatible with GL 3.2)Yuri Kunde Schlesner2014-08-283-10/+15
|
* VideoCore: Fixes rendering issues on Qt and corrects framebuffer output size.bunnei2014-08-262-4/+11
|
* Rewrite of OpenGL renderer, including OS X supportKevin Hartman2014-08-265-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.
* Pica/GPU: Change hardware registers to use physical addresses rather than virtual ones.Tony Wasserka2014-08-121-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.
* Remove the fancy RegisterSet class introduced in 4c2bff61e.Tony Wasserka2014-08-121-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.
* Use uniform formatting when printing hexadecimal numbers.Tony Wasserka2014-07-231-1/+1
|
* RegisterSet: Simplify code by using structs for register definition instead of unions.Tony Wasserka2014-07-231-9/+9
|
* GPU: Make use of RegisterSet.Tony Wasserka2014-07-231-26/+28
|
* Renderer: Fix component order in bottom framebuffer.Tony Wasserka2014-07-232-5/+4
|
* Renderer: Respect the active_fb GPU register.Tony Wasserka2014-07-231-2/+9
|
* Renderer: Add a few TODOs.Tony Wasserka2014-07-231-3/+10
|
* Rename LCD to GPU.Tony Wasserka2014-06-121-3/+3
|
* common_types: Changed BasicRect back to Rect, in the common namespacearchshift2014-05-202-3/+3
| | | | Only Rect is in the namespace for now; the rest of common should be added in the future
* Merge remote-tracking branch 'upstream/master' into issue-7-fixarchshift2014-05-171-7/+6
|\
| * Update FlipFramebufferSethpaien2014-05-081-7/+6
| | | | | | Less calculations + fix
* | Reverse debugging changesarchshift2014-05-011-2/+0
| |
* | TGA dumps work, courtesy of @bunneiarchshift2014-05-011-0/+2
| |
* | Xcode complains that the class name is redundant.archshift2014-04-281-1/+1
| |
* | Rect to BasicRectarchshift2014-04-282-3/+3
|/ | | | Somewhere along the line an OSX header had already taken the name Rect.
* removed DISALLOW_COPY_AND_ASSIGN in favor of NonCopyable classbunnei2014-04-281-1/+0
|
* fixed renderer to use correct framebuffer locationbunnei2014-04-272-8/+7
|
* fixed GL context acquire (applies to Qt GUI only)bunnei2014-04-221-0/+2
|
* renamed hw_lcd module to just lcdbunnei2014-04-181-1/+1
|
* fixed framebuffer color orderbunnei2014-04-171-1/+1
|
* removed hard-coded framebuffer addresses from renderer_opengl.cppbunnei2014-04-171-2/+4
|
* fixed project includes to use new directory structurebunnei2014-04-092-6/+7
|
* got rid of 'src' folders in each sub-projectbunnei2014-04-092-0/+370