Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gl_shader_manager: Implement SetShaderSamplerBindings. | bunnei | 2018-04-14 | 1 | -0/+8 |
| | |||||
* | gl_rasterizer: Generate shaders and upload uniforms. | bunnei | 2018-04-14 | 2 | -32/+77 |
| | |||||
* | gl_shader_decompiler: Basic impl. for very simple vertex shaders. | bunnei | 2018-04-14 | 2 | -16/+311 |
| | | | | - Tested with Puyo Puyo Tetris and Cave Story+ | ||||
* | gl_shader_manager: Cleanup and consolidate uniform handling. | bunnei | 2018-04-14 | 2 | -26/+24 |
| | |||||
* | gl_rasterizer: Use shader program manager, remove test shader. | bunnei | 2018-04-14 | 2 | -196/+31 |
| | |||||
* | renderer_opengl: Add gl_shader_manager class. | bunnei | 2018-04-14 | 2 | -0/+207 |
| | |||||
* | maxwell_to_gl: Add a few types, etc. | bunnei | 2018-04-14 | 1 | -0/+10 |
| | |||||
* | gl_shader_gen: Add hashable setup/config structs. | bunnei | 2018-04-14 | 2 | -29/+50 |
| | |||||
* | gl_shader_util: Add missing includes. | bunnei | 2018-04-14 | 1 | -0/+2 |
| | |||||
* | renderer_opengl: Use OGLProgram instead of OGLShader. | bunnei | 2018-04-14 | 6 | -6/+6 |
| | |||||
* | gl_shader_util: Grab latest upstream. | bunnei | 2018-04-14 | 2 | -149/+74 |
| | |||||
* | gl_resource_manager: Grab latest upstream. | bunnei | 2018-04-14 | 1 | -30/+86 |
| | |||||
* | gl_shader_decompiler: Add skeleton code from Citra for shader analysis. | bunnei | 2018-04-14 | 2 | -44/+142 |
| | |||||
* | Fix clang format issues | James Rowe | 2018-04-07 | 1 | -1/+1 |
| | |||||
* | GL: Set up the textures used for each draw call. | Subv | 2018-04-07 | 2 | -2/+39 |
| | | | | | Each Maxwell shader stage can have an arbitrary number of textures, but we're limited to a certain number in OpenGL. We try to only use the minimum amount of host textures by not keeping a 1:1 relation between guest texture ids and host texture ids, ie, guest texture id 8 can be host texture id 0 if it's the only texture used in the guest shader program. This mapping will have to be passed to the shader decompiler so it can rewrite the texture accesses. | ||||
* | GL: Bind the textures to the shaders used for drawing. | Subv | 2018-04-07 | 1 | -2/+11 |
| | |||||
* | GLCache: Specialize the MortonCopy function for the DXT1 texture format. | Subv | 2018-04-07 | 1 | -1/+15 |
| | | | | It will now use the UnswizzleTexture function instead of the MortonCopyPixels128, which doesn't seem to work for textures. | ||||
* | GLCache: Implemented GetTextureSurface. | Subv | 2018-04-07 | 1 | -3/+28 |
| | |||||
* | GLCache: Support uploading compressed textures to the GPU. | Subv | 2018-04-07 | 1 | -5/+17 |
| | | | | Compressed texture formats like DXT1, DXT2, DXT3, etc will use this to ease the load on the CPU. | ||||
* | GL: Remove remaining references to 3DS-specific pixel formats | Subv | 2018-04-07 | 1 | -83/+22 |
| | |||||
* | RasterizerCache: Remove 3DS-specific pixel formats. | Subv | 2018-04-07 | 2 | -71/+32 |
| | | | | We're only left with RGB8 and DXT1 for now. More will be added as they are needed. | ||||
* | GL: Create the sampler objects when starting up the GL rasterizer. | Subv | 2018-04-07 | 1 | -0/+6 |
| | |||||
* | GL: Ported the SamplerInfo struct from citra. | Subv | 2018-04-07 | 2 | -1/+59 |
| | |||||
* | GL: Rename PicaTexture to MaxwellTexture. | Subv | 2018-04-07 | 2 | -2/+2 |
| | |||||
* | GL: Added functions to convert Maxwell tex filters and wrap modes to OpenGL. | Subv | 2018-04-07 | 1 | -0/+23 |
| | |||||
* | gl_rasterizer_cache.cpp: Update from citra to yuzu | N00byKing | 2018-04-04 | 1 | -1/+1 |
| | |||||
* | gl_rasterizer_cache.h: Update from citra to yuzu | N00byKing | 2018-04-04 | 1 | -3/+3 |
| | |||||
* | renderer_opengl.h: Update from citra to yuzu | N00byKing | 2018-04-04 | 1 | -2/+2 |
| | |||||
* | renderer_opengl: Use better naming for DrawScreens and DrawSingleScreen. | bunnei | 2018-03-27 | 2 | -8/+8 |
| | |||||
* | gl_rasterizer: Move code to bind framebuffer surfaces before draw to its own function. | bunnei | 2018-03-27 | 2 | -22/+31 |
| | |||||
* | gl_rasterizer: Add a SyncViewport method. | bunnei | 2018-03-27 | 2 | -18/+20 |
| | |||||
* | gl_rasterizer: Move PrimitiveTopology check to MaxwellToGL. | bunnei | 2018-03-27 | 2 | -11/+12 |
| | |||||
* | gl_rasterizer: Use ReadBlock instead of GetPointer for SetupVertexArray. | bunnei | 2018-03-27 | 1 | -1/+1 |
| | |||||
* | gl_rasterizer: Normalize vertex array data as appropriate. | bunnei | 2018-03-27 | 1 | -1/+1 |
| | |||||
* | maxwel_to_gl: Fix string formatting in log statements. | bunnei | 2018-03-27 | 1 | -2/+2 |
| | |||||
* | rasterizer: Rename DrawTriangles to DrawArrays. | bunnei | 2018-03-27 | 2 | -3/+3 |
| | |||||
* | gl_rasterizer: Use passthrough shader for SetupVertexShader. | bunnei | 2018-03-27 | 1 | -1/+2 |
| | |||||
* | renderer_opengl: Logging, etc. cleanup. | bunnei | 2018-03-27 | 5 | -32/+33 |
| | |||||
* | renderer_opengl: Remove framebuffer RasterizerFlushVirtualRegion hack. | bunnei | 2018-03-27 | 1 | -5/+0 |
| | |||||
* | gl_rasterizer_cache: Implement UpdatePagesCachedCount. | bunnei | 2018-03-27 | 2 | -8/+37 |
| | |||||
* | gl_rasterizer: Implement SetupVertexArray. | bunnei | 2018-03-27 | 1 | -20/+38 |
| | |||||
* | gl_rasterizer_cache: Fix an ASSERT_MSG. | bunnei | 2018-03-27 | 1 | -1/+1 |
| | |||||
* | maxwell_to_gl: Add module and function for decoding VertexType. | bunnei | 2018-03-27 | 1 | -0/+40 |
| | |||||
* | gl_rasterizer: Use 32 texture units instead of 3. | bunnei | 2018-03-27 | 3 | -2/+3 |
| | |||||
* | gl_rasterizer: Implement DrawTriangles. | bunnei | 2018-03-27 | 1 | -1/+194 |
| | |||||
* | gl_rasterizer: Implement AnalyzeVertexArray. | bunnei | 2018-03-27 | 1 | -1/+21 |
| | |||||
* | gl_rasterizer_cache: MortonCopy Switch-style. | bunnei | 2018-03-27 | 1 | -72/+32 |
| | |||||
* | gl_rasterizer_cache: Implement GetFramebufferSurfaces. | bunnei | 2018-03-27 | 2 | -4/+104 |
| | |||||
* | renderer_opengl: Only draw the screen if a framebuffer is specified. | bunnei | 2018-03-27 | 1 | -6/+7 |
| | |||||
* | gl_rasterizer: Fake render in green, because it's cooler. | bunnei | 2018-03-24 | 1 | -1/+1 |
| | |||||
* | gl_rasterizer: Log warning instead of sync'ing unimplemented funcs. | bunnei | 2018-03-24 | 1 | -7/+1 |
| | |||||
* | gl_rasterizer_cache: Add missing include for vm_manager. | bunnei | 2018-03-23 | 1 | -0/+1 |
| | |||||
* | renderer_opengl: Only invalidate the framebuffer region, not flush. | bunnei | 2018-03-23 | 1 | -4/+3 |
| | |||||
* | renderer_opengl: Fixes for properly flushing & rendering the framebuffer. | bunnei | 2018-03-23 | 1 | -6/+12 |
| | |||||
* | RasterizerCacheOpenGL: FlushAll should flush full memory region. | bunnei | 2018-03-23 | 1 | -1/+1 |
| | |||||
* | rasterizer: Flush and invalidate regions should be 64-bit. | bunnei | 2018-03-23 | 2 | -6/+6 |
| | |||||
* | renderer_opengl: Add framebuffer_transform_flags member variable. | bunnei | 2018-03-23 | 1 | -2/+2 |
| | |||||
* | renderer_opengl: Better handling of framebuffer transform flags. | bunnei | 2018-03-23 | 1 | -2/+16 |
| | |||||
* | renderer_opengl: Use accelerated framebuffer load with LoadFBToScreenInfo. | bunnei | 2018-03-23 | 1 | -31/+25 |
| | |||||
* | gl_rasterizer: Implement AccelerateDisplay method from Citra. | bunnei | 2018-03-23 | 2 | -2/+44 |
| | |||||
* | LoadGLBuffer: Use bytes_per_pixel, not bits. | bunnei | 2018-03-23 | 1 | -1/+2 |
| | |||||
* | gl_rasterizer_cache: LoadGLBuffer should do a morton copy. | bunnei | 2018-03-23 | 1 | -16/+5 |
| | |||||
* | video_core: Move MortonCopyPixels128 to utils header. | bunnei | 2018-03-23 | 1 | -111/+1 |
| | |||||
* | video_core: Remove usage of PAddr and replace with VAddr. | bunnei | 2018-03-23 | 4 | -35/+35 |
| | |||||
* | video_core: Move FramebufferInfo to FramebufferConfig in GPU. | bunnei | 2018-03-23 | 4 | -34/+40 |
| | |||||
* | gl_rasterizer: Replace a bunch of UNIMPLEMENTED with ASSERT. | bunnei | 2018-03-23 | 2 | -20/+20 |
| | |||||
* | gl_rasterizer: Add a simple passthrough shader in lieu of shader generation. | bunnei | 2018-03-23 | 2 | -5/+68 |
| | |||||
* | renderer: Create rasterizer and cleanup. | bunnei | 2018-03-23 | 1 | -2/+2 |
| | |||||
* | renderer_gl: Port boilerplate rasterizer code over from Citra. | bunnei | 2018-03-20 | 3 | -1/+431 |
| | |||||
* | gl_shader_util: Sync latest version with Citra. | bunnei | 2018-03-20 | 3 | -46/+116 |
| | |||||
* | renderer_gl: Port over gl_shader_gen module from Citra. | bunnei | 2018-03-20 | 2 | -0/+86 |
| | |||||
* | renderer_gl: Port over gl_shader_decompiler module from Citra. | bunnei | 2018-03-20 | 2 | -0/+85 |
| | |||||
* | renderer_gl: Port over gl_rasterizer_cache module from Citra. | bunnei | 2018-03-20 | 2 | -0/+1712 |
| | |||||
* | gl_resource_manager: Sync latest version with Citra. | bunnei | 2018-03-20 | 1 | -8/+77 |
| | |||||
* | renderer_gl: Port over gl_stream_buffer module from Citra. | bunnei | 2018-03-20 | 2 | -0/+216 |
| | |||||
* | gl_state: Sync latest version with Citra. | bunnei | 2018-03-20 | 2 | -47/+111 |
| | |||||
* | renderer_opengl: Support framebuffer flip vertical. | bunnei | 2018-02-12 | 2 | -5/+12 |
| | |||||
* | memory: Replace all memory hooking with Special regions | MerryMage | 2018-01-27 | 1 | -1/+1 |
| | |||||
* | Format: Run the new clang format on everything | James Rowe | 2018-01-21 | 1 | -1/+1 |
| | |||||
* | clang-format | MerryMage | 2018-01-16 | 1 | -1/+2 |
| | |||||
* | renderer_gl: Clear screen to black before rendering framebuffer. | bunnei | 2018-01-15 | 2 | -5/+8 |
| | |||||
* | renderer: Render previous frame when no new one is available. | bunnei | 2018-01-15 | 2 | -15/+16 |
| | |||||
* | Fix build on macOS and linux | MerryMage | 2018-01-13 | 1 | -0/+1 |
| | |||||
* | Remove references to PICA and rasterizers in video_core | James Rowe | 2018-01-13 | 9 | -4676/+0 |
| | |||||
* | renderer_opengl: Fix LOG_TRACE in LoadFBToScreenInfo. | bunnei | 2018-01-12 | 1 | -1/+1 |
| | |||||
* | renderer_opengl: Support rendering Switch framebuffer. | bunnei | 2018-01-11 | 2 | -136/+78 |
| | |||||
* | renderer_opengl: Add MortonCopyPixels function for Switch framebuffer. | bunnei | 2018-01-11 | 1 | -0/+111 |
| | |||||
* | renderer_opengl: Update DrawScreens for Switch. | bunnei | 2018-01-11 | 2 | -23/+11 |
| | |||||
* | core/video_core: Fix a bunch of u64 -> u32 warnings. | bunnei | 2018-01-01 | 2 | -4/+4 |
| | |||||
* | Fixed type conversion ambiguity | Huw Pascoe | 2017-09-30 | 1 | -2/+2 |
| | |||||
* | Fixed framebuffer warning | Huw Pascoe | 2017-09-17 | 1 | -7/+18 |
| | |||||
* | Merge pull request #2900 from wwylele/clip-2 | Yuri Kunde Schlesner | 2017-09-16 | 3 | -34/+83 |
|\ | | | | | PICA: implement custom clip plane | ||||
| * | gl_rasterizer: implement custom clip plane | wwylele | 2017-08-25 | 3 | -34/+83 |
| | | |||||
* | | Merge pull request #2914 from wwylele/fresnel-fix | bunnei | 2017-09-05 | 1 | -4/+5 |
|\ \ | | | | | | | pica/lighting: only apply Fresnel factor for the last light | ||||
| * | | pica/lighting: only apply Fresnel factor for the last light | wwylele | 2017-09-03 | 1 | -4/+5 |
| | | | |||||
* | | | video_core: report telemetry for gas mode | wwylele | 2017-08-31 | 1 | -0/+6 |
|/ / | |||||
* | | Merge pull request #2891 from wwylele/sw-bump | bunnei | 2017-08-31 | 1 | -2/+2 |
|\ \ | |/ |/| | SwRasterizer/Lighting: implement bump mapping | ||||
| * | gl_rasterizer/lighting: more accurate CP formula | wwylele | 2017-08-22 | 1 | -2/+2 |
| | | |||||
* | | gl_shader_gen: simplify and clarify the depth transformation between vertex shader and fragment shader | wwylele | 2017-08-21 | 1 | -2/+5 |
| | | |||||
* | | gl_rasterizer: add clipping plane z<=0 defined in PICA | wwylele | 2017-08-21 | 4 | -0/+21 |
|/ | |||||
* | gl_shader_gen: don't call SampleTexture when bump map is not used | wwylele | 2017-08-11 | 1 | -4/+5 |
| | |||||
* | Merge pull request #2816 from wwylele/proctex-lutlutlut | Sebastian Valle | 2017-07-23 | 5 | -70/+80 |
|\ | | | | | gl_rasterizer: use texture buffer for proctex LUT | ||||
| * | gl_rasterizer: use texture buffer for proctex LUT | wwylele | 2017-07-01 | 5 | -70/+80 |
| | | |||||
* | | Merge pull request #2834 from wwylele/depth-enable-fix | Sebastian Valle | 2017-07-23 | 1 | -4/+5 |
|\ \ | | | | | | | gl_rasterizer_cache: fix using_depth_fb | ||||
| * | | gl_rasterizer_cache: depth write is disabled if allow_depth_stencil_write is false | wwylele | 2017-06-10 | 1 | -4/+5 |
| | | | |||||
* | | | telemetry: Log performance, configuration, and system data. | bunnei | 2017-07-18 | 2 | -6/+16 |
| |/ |/| | |||||
* | | gl_rasterizer: use texture buffer for fog LUT | wwylele | 2017-06-22 | 5 | -27/+23 |
| | | |||||
* | | gl_rasterizer: create the texture before applying the state | wwylele | 2017-06-22 | 1 | -2/+2 |
| | | | | | | | | this is a rebasing error from #2792. It doesn't affect much though, because the later more Apply() call fixes/hides it | ||||
* | | gl_state: reset 1d textures | wwylele | 2017-06-21 | 1 | -0/+14 |
| | | |||||
* | | gl_rasterizer: fix glGetUniformLocation type | wwylele | 2017-06-21 | 1 | -8/+8 |
| | | |||||
* | | gl_rasterizer: manage texture ids in one place | wwylele | 2017-06-21 | 3 | -31/+55 |
| | | |||||
* | | gl_rasterizer/lighting: fix LUT interpolation | wwylele | 2017-06-21 | 5 | -113/+91 |
| | | |||||
* | | gl_rasterizer/lighting: use the formula from the paper for germetic factor | wwylele | 2017-06-18 | 1 | -8/+8 |
| | | |||||
* | | gl_rasterizer/lighting: implement geometric factor | wwylele | 2017-06-15 | 2 | -1/+18 |
| | | |||||
* | | Merge pull request #2762 from wwylele/light-cp-tangent | Yuri Kunde Schlesner | 2017-06-15 | 1 | -9/+37 |
|\ \ | | | | | | | Fragment lighting: implement lut input 5 (CP) and tangent mapping | ||||
| * | | gl_rasterizer/lighting: Implement tangent mapping | wwylele | 2017-06-11 | 1 | -7/+12 |
| | | | |||||
| * | | gl_rasterizer/lighting: implement lut input 5 (CP) | wwylele | 2017-06-11 | 1 | -2/+25 |
| | | | |||||
* | | | Merge pull request #2743 from wwylele/wrap-fix | Yuri Kunde Schlesner | 2017-06-14 | 1 | -0/+13 |
|\ \ \ | | | | | | | | | pica/rasterizer: implement/stub texture wrap mode 4-7 | ||||
| * | | | pica/rasterizer: implement/stub texture wrap mode 4-7 | wwylele | 2017-06-04 | 1 | -0/+13 |
| | |/ | |/| | |||||
* | | | Merge pull request #2767 from yuriks/quaternion-flip-comment | Yuri Kunde Schlesner | 2017-06-13 | 1 | -8/+11 |
|\ \ \ | |_|/ |/| | | OpenGL: Update comment on AreQuaternionsOpposite with new information | ||||
| * | | OpenGL: Update comment on AreQuaternionsOpposite with new information | Yuri Kunde Schlesner | 2017-06-10 | 1 | -8/+11 |
| |/ | | | | | | | | | | | | | While debugging the software renderer implementation, it was noticed that this is actually exactly what the hardware does, upgrading the status of this "hack" to being a proper implementation. And there was much rejoicing. | ||||
* | | Merge pull request #2727 from wwylele/spot-light | Sebastian Valle | 2017-06-11 | 4 | -8/+85 |
|\ \ | |/ |/| | Fragment lighting: implement spot light | ||||
| * | gl_rasterizer: implement spot light | wwylele | 2017-05-30 | 1 | -6/+24 |
| | | |||||
| * | gl_rasterizer: sync spot light status | wwylele | 2017-05-30 | 4 | -2/+61 |
| | | |||||
* | | Merge pull request #2729 from yuriks/quaternion-fix | Yuri Kunde Schlesner | 2017-05-28 | 1 | -3/+5 |
|\ \ | | | | | | | OpenGL: Improve accuracy of quaternion interpolation | ||||
| * | | OpenGL: Improve accuracy of quaternion interpolation | Yuri Kunde Schlesner | 2017-05-27 | 1 | -3/+5 |
| |/ | | | | | | | | | | | | | Current order of operations (rotate then normalize) seems to produce a lot more distortion than normalizing and then rotating. This makes Citra results match pretty closesly with hardware, and indicates that hardware may also be using lerp instead of slerp to interpolate the quaternions. | ||||
* | | Move screen size constants from video_core to core | Yuri Kunde Schlesner | 2017-05-28 | 1 | -12/+8 |
| | | | | | | | | | | video_core didn't even properly use them, and they were the source of many otherwise-unnecessary dependencies from core to video_core. | ||||
* | | OpenGL: Remove unused RendererOpenGL fields | Yuri Kunde Schlesner | 2017-05-28 | 2 | -11/+2 |
| | | |||||
* | | gl_shader: refactor texture sampler into its own function | wwylele | 2017-05-27 | 1 | -40/+39 |
|/ | |||||
* | gl_rasterizer: implement procedural texture | wwylele | 2017-05-20 | 6 | -7/+600 |
| | |||||
* | pica: shader_dirty if texture2 coord changed | wwylele | 2017-05-05 | 2 | -1/+5 |
| | |||||
* | pica: use correct coordinates for texture 2 | wwylele | 2017-05-03 | 2 | -3/+15 |
| | |||||
* | Merge pull request #2671 from wwylele/dot3-rgba | bunnei | 2017-04-21 | 1 | -13/+20 |
|\ | | | | | rasterizer: implement combiner operation 7 (Dot3_RGBA) | ||||
| * | gl_shader_gen: remove TODO about Lerp behaviour verification. The implementation is verified against hardware | wwylele | 2017-04-20 | 1 | -2/+0 |
| | | |||||
| * | rasterizer: implement combiner operation 7 (Dot3_RGBA) | wwylele | 2017-04-19 | 1 | -11/+20 |
| | | |||||
* | | OpenGL: Pass Pica regs via parameter | Yuri Kunde Schlesner | 2017-04-17 | 3 | -7/+5 |
| | | |||||
* | | OpenGL: Move PicaShaderConfig to gl_shader_gen.h | Yuri Kunde Schlesner | 2017-04-17 | 4 | -202/+206 |
| | | | | | | | | Also move the implementation of CurrentConfig to the cpp file. | ||||
* | | OpenGL: Move Attributes enum to a more appropriate file | Yuri Kunde Schlesner | 2017-04-17 | 3 | -12/+11 |
|/ | |||||
* | Input: remove unused stuff & clean up | wwylele | 2017-03-01 | 1 | -0/+1 |
| | | | | | | | 1. removed zl, zr and c-stick from HID::PadState. They are handled by IR, not HID 2. removed button handling in EmuWindow 3. removed key_map 4. cleanup #include | ||||
* | Core: Re-write frame limiter | Yuri Kunde Schlesner | 2017-02-27 | 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. | ||||
* | Core: Make PerfStats internally locked | Yuri Kunde Schlesner | 2017-02-27 | 1 | -8/+2 |
| | | | | More ergonomic to use and will be required for upcoming changes. | ||||
* | Remove built-in (non-Microprofile) profiler | Yuri Kunde Schlesner | 2017-02-27 | 1 | -8/+0 |
| | |||||
* | Add performance statistics to status bar | Yuri Kunde Schlesner | 2017-02-27 | 1 | -0/+9 |
| | |||||
* | OpenGL: Check if uniform block exists before updating it (#2581) | Jannik Vogel | 2017-02-18 | 1 | -29/+30 |
| | |||||
* | OpenGL: Remove unused duplicate of IsPassThroughTevStage | Yuri Kunde Schlesner | 2017-02-09 | 1 | -12/+0 |
| | | | | | This copy was left behind when the shader generation code was moved to a separate file. | ||||
* | VideoCore: Split regs.h inclusions | Yuri Kunde Schlesner | 2017-02-09 | 5 | -17/+29 |
| | |||||
* | VideoCore: Move Regs to its own file | Yuri Kunde Schlesner | 2017-02-04 | 5 | -5/+5 |
| | |||||
* | VideoCore: Split lighting regs from Regs struct | Yuri Kunde Schlesner | 2017-02-04 | 3 | -37/+45 |
| | |||||
* | VideoCore: Split framebuffer regs from Regs struct | Yuri Kunde Schlesner | 2017-02-04 | 6 | -70/+84 |
| | |||||
* | VideoCore: Split texturing regs from Regs struct | Yuri Kunde Schlesner | 2017-02-04 | 6 | -85/+91 |
| | |||||
* | VideoCore: Split rasterizer regs from Regs struct | Yuri Kunde Schlesner | 2017-02-04 | 3 | -32/+37 |
| | |||||
* | Merge pull request #2476 from yuriks/shader-refactor3 | Yuri Kunde Schlesner | 2017-02-04 | 2 | -2/+2 |
|\ | | | | | Oh No! More shader changes! | ||||
| * | VideoCore: Change misleading register names | Yuri Kunde Schlesner | 2017-01-30 | 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. | ||||
* | | Pica/Texture: Simplify/cleanup texture tile addressing | Yuri Kunde Schlesner | 2017-02-04 | 1 | -2/+1 |
| | | |||||
* | | VideoCore: Move LookupTexture out of debug_utils.h | Yuri Kunde Schlesner | 2017-02-04 | 1 | -5/+6 |
| | | |||||
* | | video_core: gl_rasterizer_cache.cpp removed unused type alias | Kloen | 2017-01-30 | 1 | -1/+0 |
| | | |||||
* | | video_core: gl_rasterizer.cpp removed unused type alias | Kloen | 2017-01-30 | 1 | -2/+0 |
|/ | |||||
* | video_core: silence unused-local-typedef boost related warning on GCC | Kloen | 2017-01-29 | 1 | -0/+7 |
| | |||||
* | video_core: gl_rasterizer float to int warning | Kloen | 2017-01-23 | 1 | -1/+2 |
| | |||||
* | video_core: fix gl_rasterizer warning on MSVC | Kloen | 2017-01-23 | 1 | -1/+1 |
| | |||||
* | config: Add option for specifying screen resolution scale factor. | bunnei | 2017-01-07 | 1 | -3/+10 |
| | |||||
* | Merge pull request #2367 from JayFoxRox/lighting-lut-quickfix | bunnei | 2016-12-29 | 1 | -10/+9 |
|\ | | | | | Lighting LUT Quickfix | ||||
| * | Minor cleanup in GLSL code | Jannik Vogel | 2016-12-25 | 1 | -3/+2 |
| | | |||||
| * | Offset lighting LUT samples correctly | Jannik Vogel | 2016-12-25 | 1 | -7/+7 |
| | | |||||
* | | core: Move emu_window and key_map into core | MerryMage | 2016-12-23 | 2 | -2/+2 |
|/ | | | | * Removes circular dependences (common should not depend on core) | ||||
* | Merge pull request #2319 from yuriks/profile-scopes | bunnei | 2016-12-21 | 1 | -0/+12 |
|\ | | | | | VideoCore: Make profiling scope more representative | ||||
| * | VideoCore: Make profiling scope more representative | Yuri Kunde Schlesner | 2016-12-15 | 1 | -0/+12 |
| | | |||||
* | | Use GL_TRUE when setting color_mask | Albin Bernhardsson | 2016-12-19 | 1 | -4/+4 |
|/ | |||||
* | OpenGL: Drop framebuffer completeness check. | Markus Wick | 2016-12-07 | 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 | ||||
* | ASSERT that shader was linked successfully | Jannik Vogel | 2016-12-05 | 1 | -0/+2 |
| | |||||
* | Report shader uniform block size in case of mismatch | Jannik Vogel | 2016-12-05 | 1 | -1/+3 |
| | |||||
* | Print broken shader code to log | Jannik Vogel | 2016-12-05 | 1 | -3/+9 |
| | |||||
* | OpenGL: Non-zero stride only makes sense for linear buffers | Yuri Kunde Schlesner | 2016-12-04 | 3 | -7/+11 |
| | |||||
* | OpenGL: Ensure framebuffer binding is restored if completion check fails | Yuri Kunde Schlesner | 2016-12-04 | 1 | -10/+7 |
| | |||||
* | OpenGL: Fix DisplayTransfer accel when input width != output width | Yuri Kunde Schlesner | 2016-12-04 | 1 | -1/+10 |
| | | | | Fixes #2246, #2261 | ||||
* | ClangFormat: Fixed the clang-format errors | Subv | 2016-11-30 | 1 | -4/+8 |
| | |||||
* | Build: Fixed a few warnings. | Subv | 2016-11-29 | 1 | -4/+4 |
| | |||||
* | RasterizerGL: Use GL_TRUE and 0xFF in the stencil and depth masks instead of simply true and -1 | Subv | 2016-11-27 | 2 | -4/+4 |
| | |||||
* | Rasterizer/Memfill: Set the correct stencil write mask when clearing the stencil buffer. | Subv | 2016-11-27 | 1 | -1/+1 |
| | |||||
* | Add default hotkey to swap primary screens. | James Rowe | 2016-11-05 | 1 | -3/+2 |
| | | | | Also minor style changes | ||||
* | Support additional screen layouts. | James Rowe | 2016-11-05 | 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. | ||||
* | Merge pull request #2103 from wwylele/gpu-reg-cleanup | bunnei | 2016-10-04 | 2 | -5/+6 |
|\ | | | | | GPU: DisplayTransfer & MemoryFill cleanup and param check | ||||
| * | rasterizer: separate TextureCopy from DisplayTransfer | wwylele | 2016-09-29 | 2 | -5/+6 |
| | | |||||
* | | OpenGL: Take cached viewport sub-rect into account for scissor | Yuri Kunde Schlesner | 2016-09-30 | 3 | -29/+25 |
|/ | | | | Fixes #1938 | ||||
* | Use negative priorities to avoid special-casing the self-include | Yuri Kunde Schlesner | 2016-09-21 | 6 | -6/+6 |
| | |||||
* | Remove empty newlines in #include blocks. | Emmanuel Gil Peyrot | 2016-09-21 | 11 | -42/+6 |
| | | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation. | ||||
* | Manually tweak source formatting and then re-run clang-format | Yuri Kunde Schlesner | 2016-09-19 | 8 | -46/+40 |
| | |||||
* | Sources: Run clang-format on everything. | Emmanuel Gil Peyrot | 2016-09-18 | 12 | -486/+789 |
| | |||||
* | OpenGL: Avoid error on unsupported lighting LUT | Jannik Vogel | 2016-08-30 | 1 | -0/+1 |
| | |||||
* | OpenGL: Add scaled resolution support to scissor | Yuri Kunde Schlesner | 2016-06-28 | 4 | -3/+16 |
| | |||||
* | PICA: Scissor fixes and cleanups | Yuri Kunde Schlesner | 2016-06-28 | 3 | -21/+22 |
| | |||||
* | PICA: Implement scissor test | Subv | 2016-06-28 | 3 | -1/+53 |
| | |||||
* | OpenGL: Implement fog | Jannik Vogel | 2016-06-07 | 5 | -7/+124 |
| | |||||
* | OpenGL: Avoid undefined behaviour for UNIFORM_BLOCK_DATA_SIZE | Jannik Vogel | 2016-06-07 | 2 | -6/+8 |
| | |||||
* | gsp::gpu: Reset g_thread_id in UnregisterInterruptRelayQueue | mailwl | 2016-06-01 | 1 | -1/+1 |
| | |||||
* | OpenGL: Set shader_dirty on lighting changes | Jannik Vogel | 2016-05-23 | 1 | -0/+23 |
| | |||||
* | Pica: Name LightSrc.config register | Jannik Vogel | 2016-05-23 | 1 | -2/+2 |
| | |||||
* | Pica: Name lighting.config0 and .config1 registers | Jannik Vogel | 2016-05-23 | 1 | -12/+12 |
| | |||||
* | OpenGL: Use uniforms for dist_atten_bias and dist_atten_scale | Jannik Vogel | 2016-05-23 | 3 | -8/+84 |
| | |||||
* | Merge pull request #1786 from JayFoxRox/blend-equation | bunnei | 2016-05-17 | 4 | -0/+31 |
|\ | | | | | OpenGL: Support blend equation | ||||
| * | OpenGL: Support blend equation | Jannik Vogel | 2016-05-12 | 4 | -0/+31 |
| | | |||||
* | | OpenGL: Only update depth uniforms if the depth changed | Jannik Vogel | 2016-05-14 | 2 | -9/+22 |
| | | |||||
* | | OpenGL: value-initialize variables which cause uninitialised access otherwise | Jannik Vogel | 2016-05-14 | 1 | -2/+2 |
|/ | |||||
* | OpenGL: Implement texture type 3 | Jannik Vogel | 2016-05-11 | 4 | -35/+67 |
| | |||||
* | Merge pull request #1621 from JayFoxRox/w-buffer | bunnei | 2016-05-11 | 3 | -5/+24 |
|\ | | | | | Implement W-buffer and fix depth-mapping | ||||
| * | OpenGL: Implement W-Buffers and fix depth-mapping | Jannik Vogel | 2016-05-10 | 3 | -4/+23 |
| | | |||||
| * | Pica: Implement W-Buffer in SW rasterizer | Jannik Vogel | 2016-05-10 | 1 | -2/+2 |
| | | |||||
* | | gl_rasterizer: Fix compilation for debug builds | Lioncash | 2016-05-10 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #1704 from JayFoxRox/pod-config | linkmauve | 2016-05-10 | 3 | -122/+164 |
|\ | | | | | Pica: PicaShaderConfig is TC and cleared before use | ||||
| * | Pica: Use a union for PicaShaderConfig | Jannik Vogel | 2016-05-03 | 3 | -125/+139 |
| | | |||||
| * | Pica: Add TevStageConfigRaw to PicaShaderConfig (MSVC workaround) | Jannik Vogel | 2016-05-03 | 2 | -2/+23 |
| | | |||||
| * | Pica: Make PicaShaderConfig trivially_copyable and clear it before use | Jannik Vogel | 2016-05-03 | 1 | -21/+28 |
| | | |||||
* | | fixup simple type conversions where possible | Alexander Laties | 2016-05-07 | 2 | -2/+2 |
| | | |||||
* | | Frontends, VideoCore: Move glad initialisation to the frontend | Emmanuel Gil Peyrot | 2016-05-06 | 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. | ||||
* | OpenGL: Don't copy const_color (Reverts #1745) | Jannik Vogel | 2016-05-03 | 1 | -2/+3 |
| | |||||
* | Merge pull request #1741 from linkmauve/iwyu-video_core | bunnei | 2016-05-01 | 12 | -24/+76 |
|\ | | | | | Fix video_core includes (and dependencies) using include-what-you-use | ||||
| * | VideoCore: Run include-what-you-use and fix most includes. | Emmanuel Gil Peyrot | 2016-04-30 | 12 | -24/+76 |
| | | |||||
* | | OpenGL: Copy TevStageConfig using a loop. Fixes bug: const_color not copied | Jannik Vogel | 2016-05-01 | 1 | -30/+11 |
| | | |||||
* | | OpenGL: border_color was never set. Fixed. (#1740) | Jannik Vogel | 2016-04-30 | 1 | -0/+1 |
|/ | |||||
* | Common: Remove section measurement from profiler (#1731) | Yuri Kunde Schlesner | 2016-04-29 | 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. | ||||
* | HWRasterizer: reorder declarations to match defs | tfarley | 2016-04-22 | 1 | -9/+9 |
| | |||||
* | HWRasterizer: sync specular uniform for new shaders | tfarley | 2016-04-22 | 1 | -0/+2 |
| | |||||
* | Merge pull request #1436 from tfarley/hw-tex-forwarding | bunnei | 2016-04-22 | 8 | -738/+1347 |
|\ | | | | | Hardware Renderer Texture Forwarding | ||||
| * | HWRasterizer: Texture forwarding | tfarley | 2016-04-21 | 8 | -738/+1347 |
| | | |||||
* | | OpenGL: Implement color combiner Operation::Dot3_RGB | Jannik Vogel | 2016-04-10 | 1 | -0/+3 |
|/ | |||||
* | OpenGL: Respect buffer-write allow registers | Jannik Vogel | 2016-04-08 | 1 | -6/+28 |
| | |||||
* | OpenGL: Split buffer-write mask sync into seperate functions | Jannik Vogel | 2016-04-08 | 2 | -8/+39 |
| | |||||
* | OpenGL: Keep stencil-test and framebuffer.depth_format in sync | Jannik Vogel | 2016-04-08 | 1 | -0/+1 |
| | |||||
* | Merge pull request #1639 from linkmauve/fix-double-framebuffer-check | bunnei | 2016-04-08 | 1 | -4/+6 |
|\ | | | | | OpenGL: Fix a double framebuffer completeness checks. | ||||
| * | OpenGL: Fix a double framebuffer completeness checks. | Emmanuel Gil Peyrot | 2016-04-03 | 1 | -4/+6 |
| | | |||||
* | | Merge pull request #1643 from MerryMage/make_unique | Mathew Maidment | 2016-04-06 | 2 | -4/+4 |
|\ \ | |/ |/| | Common: Remove Common::make_unique, use std::make_unique | ||||
| * | Common: Remove Common::make_unique, use std::make_unique | MerryMage | 2016-04-05 | 2 | -4/+4 |
| | | |||||
* | | OpenGL: Check for framebuffer completeness | Jannik Vogel | 2016-04-03 | 1 | -0/+3 |
| | | |||||
* | | Avoid warnings by casting to size_t for ARRAY_SIZE() comparisons | Jannik Vogel | 2016-04-01 | 1 | -6/+6 |
| | | |||||
* | | OpenGL: Don't attempt to draw empty triangle batches | Yuri Kunde Schlesner | 2016-03-24 | 1 | -0/+3 |
|/ | | | | | Our code did not handle this well, causing random crashes in some situations. | ||||
* | Merge pull request #1344 from LittleWhite-tb/error-output | bunnei | 2016-03-09 | 2 | -2/+8 |
|\ | | | | | Output errors in GUI | ||||
| * | Improve error report from Init() functions | LittleWhite | 2016-03-08 | 2 | -2/+8 |
| | | | | | | | | Add error popup when citra initialization failed | ||||
* | | Pica: Write depth value even when depth test is disabled | Yuri Kunde Schlesner | 2016-03-06 | 1 | -2/+4 |
|/ | | | | This has been confirmed on hardware. Fixes Etrian Odyssey IV. | ||||
* | Add immediate mode vertex submission | Dwayne Slater | 2016-03-03 | 2 | -0/+2 |
| | |||||
* | renderer_opengl: Initalise fragment shader LUT textures | MerryMage | 2016-02-26 | 1 | -0/+4 |
| | |||||
* | pica: Cleanup lighting register definitions and documentation. | bunnei | 2016-02-05 | 1 | -15/+15 |
| | |||||
* | gl_rasterizer: Use alignas(16) instead of explicit padding. | bunnei | 2016-02-05 | 1 | -13/+6 |
| | |||||
* | renderer_opengl: Use GLvec3/GLvec4 aliases for commonly used types. | bunnei | 2016-02-05 | 4 | -14/+18 |
| | |||||
* | gl_rasterizer: Fix issue with interpolation of opposite quaternions. | bunnei | 2016-02-05 | 2 | -4/+32 |
| | |||||
* | pica_types: Replace float24/20/16 with a template class. | bunnei | 2016-02-05 | 2 | -9/+9 |
| | |||||
* | gl_rasterizer: Remove unnecessary casts. | bunnei | 2016-02-05 | 1 | -6/+6 |
| | |||||
* | gl_rasterizer: Fix PicaShaderConfig on GCC. | bunnei | 2016-02-05 | 1 | -29/+27 |
| | |||||
* | gl_rasterizer: Initial implementation of bump mapping. | bunnei | 2016-02-05 | 2 | -5/+33 |
| | |||||
* | gl_shader_gen: Fix bug in LUT range (should within range [0, 255] not [0, 256]). | bunnei | 2016-02-05 | 1 | -3/+3 |
| | |||||
* | gl_shader_gen: Implement lighting red, green, and blue reflection. | bunnei | 2016-02-05 | 2 | -18/+62 |
| | |||||
* | gl_shader_gen: View should be normalized. | bunnei | 2016-02-05 | 1 | -2/+2 |
| | |||||
* | gl_shader_gen: Implement fragment lighting fresnel effect. | bunnei | 2016-02-05 | 2 | -9/+33 |
| | |||||
* | gl_shader_gen: Implement fragment lighting specular 1 component. | bunnei | 2016-02-05 | 2 | -3/+22 |
| | |||||
* | gl_shader_gen: Add support for D0 LUT scaling. | bunnei | 2016-02-05 | 2 | -2/+4 |
| | |||||
* | gl_shader_gen: Refactor lighting config to match Pica register naming. | bunnei | 2016-02-05 | 2 | -42/+48 |
| | | | | - Also implement D0 LUT enable. | ||||
* | pica: Cleanup and add some comments to lighting registers. | bunnei | 2016-02-05 | 1 | -1/+1 |
| | |||||
* | gl_rasterizer: Minor naming refactor on Pica register naming. | bunnei | 2016-02-05 | 1 | -5/+5 |
| | |||||
* | gl_shader_gen: Reorganize and cleanup lighting code. | bunnei | 2016-02-05 | 1 | -100/+107 |
| | | | | - No functional difference. | ||||
* | gl_shader_gen: Fix directional lights. | bunnei | 2016-02-05 | 1 | -1/+1 |
| | |||||
* | gl_shader_gen: Fix bug with lighting where clamp highlights was only applied to last light. | bunnei | 2016-02-05 | 1 | -6/+6 |
| | |||||
* | gl_shader_gen: View vector needs to be normalized when computing half angle vector. | bunnei | 2016-02-05 | 1 | -3/+4 |
| | |||||
* | renderer_opengl: Use textures for fragment shader LUTs instead of UBOs. | bunnei | 2016-02-05 | 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. | ||||
* | renderer_opengl: Initial implementation of basic specular lighting. | bunnei | 2016-02-05 | 3 | -12/+158 |
| | |||||
* | renderer_opengl: Implement HW fragment lighting distance attenuation. | bunnei | 2016-02-05 | 2 | -17/+38 |
| | |||||
* | renderer_opengl: Implement HW fragment lighting LUTs within our default UBO. | bunnei | 2016-02-05 | 3 | -15/+66 |
| | |||||
* | renderer_opengl: Implement diffuse component of HW fragment lighting. | bunnei | 2016-02-05 | 5 | -5/+259 |
| | |||||
* | hwrasterizer: Use proper cached fb addr/size | tfarley | 2016-02-03 | 2 | -42/+34 |
| | |||||
* | OpenGL: Downgrade GL_DEBUG_SEVERITY_NOTIFICATION to Debug logging level | Yuri Kunde Schlesner | 2016-02-03 | 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. | ||||
* | hwrasterizer: Use depth offset | tfarley | 2016-01-21 | 3 | -2/+24 |
| | |||||
* | Merge pull request #1196 from linkmauve/khr_debug | bunnei | 2016-01-13 | 1 | -0/+57 |
|\ | | | | | Add optional GL_KHR_debug support | ||||
| * | OpenGL: Log GL_KHR_debug messages we receive | Emmanuel Gil Peyrot | 2015-10-24 | 1 | -0/+57 |
| | | | | | | | | | | This allows the driver to communicate errors, warnings and improvement suggestions about our usage of the API. | ||||
* | | Merge pull request #1267 from yuriks/flipped-framebuffer | Yuri Kunde Schlesner | 2015-12-10 | 4 | -12/+17 |
|\ \ | | | | | | | OpenGL: Flip framebuffers during transfer rather than when rendering | ||||
| * | | OpenGL: Flip framebuffers during transfer rather than when rendering | Yuri Kunde Schlesner | 2015-12-05 | 2 | -12/+11 |
| | | | |||||
| * | | OpenGL: Add support for glFrontFace in the state tracker | Yuri Kunde Schlesner | 2015-12-05 | 2 | -0/+6 |
| | | | |||||
* | | | VideoCore: Unify interface to OpenGL and SW rasterizers | Yuri Kunde Schlesner | 2015-12-08 | 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. | ||||
* | | | VideoCore: Rename HWRasterizer methods to be less confusing | Yuri Kunde Schlesner | 2015-12-07 | 2 | -6/+6 |
| | | | |||||
* | | | OpenGL: Rename cache functions to better match what they actually do | Yuri Kunde Schlesner | 2015-12-07 | 3 | -12/+11 |
|/ / | |||||
* | | PICA: Properly emulate 1-stage delay in the combiner buffer | Yuri Kunde Schlesner | 2015-12-01 | 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. | ||||
* | | renderer_opengl: Fix uniform issues introduced with kemenaran/avoid-explicit-uniform-location. | bunnei | 2015-11-26 | 2 | -6/+8 |
| | | |||||
* | | Use regular uniform location | Pierre de La Morinerie | 2015-11-25 | 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). | ||||
* | | FragShader: Use an UBO instead of several individual uniforms | Subv | 2015-11-19 | 6 | -13/+67 |
| | | |||||
* | | gl_shader_gen: Use explicit locations for vertex shader attributes. | bunnei | 2015-10-22 | 2 | -15/+9 |
| | | |||||
* | | gl_shader_gen: Optimize code for AppendAlphaTestCondition. | bunnei | 2015-10-22 | 1 | -16/+11 |
| | | | | | | | | - Also add a comment to AppendColorCombiner. | ||||
* | | gl_rasterizer: Define enum types for each vertex texcoord attribute. | bunnei | 2015-10-22 | 3 | -12/+14 |
| | | |||||
* | | gl_shader_gen: Various cleanups to shader generation. | bunnei | 2015-10-22 | 3 | -48/+52 |
| | | |||||
* | | gl_rasterizer: Use MMH3 hash for shader cache hey. | bunnei | 2015-10-22 | 4 | -83/+63 |
| | | | | | | | | - Includes a check to confirm no hash collisions. | ||||
* | | gl_shader_gen: Require explicit uniform locations. | bunnei | 2015-10-22 | 3 | -56/+34 |
| | | | | | | | | - Fixes uniform issue on AMD. | ||||
* | | gl_shader_gen: Rename 'o' to 'attr' in vertex/fragment shaders. | bunnei | 2015-10-22 | 1 | -11/+11 |
| | | |||||
* | | gl_shader_gen: AppendAlphaModifier default should be 0.0, not vec4(0.0). | bunnei | 2015-10-22 | 1 | -1/+1 |
| | | |||||
* | | gl_shader_gen: Fix bug where TEV stage outputs should be clamped. | bunnei | 2015-10-22 | 1 | -3/+3 |
| | | |||||
* | | gl_rasterizer: Add documentation to ShaderCacheKey. | bunnei | 2015-10-22 | 1 | -0/+16 |
| | | |||||
* | | gl_shader_gen: Add additional function documentation. | bunnei | 2015-10-22 | 2 | -0/+18 |
| | | |||||
* | | gl_shader_util: Cleanup header file + add docstring. | bunnei | 2015-10-22 | 1 | -1/+7 |
| | | |||||
* | | gl_shader_gen: Various cleanups + moved TEV stage generation to its own function. | bunnei | 2015-10-22 | 1 | -161/+170 |
| | | |||||
* | | renderer_opengl: Refactor shader generation/caching to be more organized + various cleanups. | bunnei | 2015-10-22 | 9 | -787/+507 |
| | | |||||
* | | gl_rasterizer: Move logic for creating ShaderCacheKey to a static function. | bunnei | 2015-10-22 | 2 | -18/+46 |
| | | |||||
* | | gl_shader_util: Use vec3 constants for AppendColorCombiner. | bunnei | 2015-10-22 | 1 | -6/+6 |
| | | |||||
* | | gl_rasterizer: Fix typo in uploading TEV const color uniforms. | bunnei | 2015-10-22 | 1 | -5/+5 |
| | | |||||
* | | gl_shader_util: Fix precision bug with alpha testing. | bunnei | 2015-10-22 | 2 | -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. | Subv | 2015-10-22 | 6 | -261/+564 |
|/ | |||||
* | Silence -Wsign-compare warnings. | Rohit Nirmal | 2015-10-07 | 1 | -3/+3 |
| | |||||
* | fix some xcode 7.0 warnings | Martin Lindhe | 2015-09-29 | 1 | -1/+0 |
| | |||||
* | general: Silence some warnings when using clang | Lioncash | 2015-09-16 | 1 | -2/+2 |
| | |||||
* | video_core: Reorganize headers | Lioncash | 2015-09-11 | 7 | -18/+17 |
| | |||||
* | video_core: Remove unnecessary includes from headers | Lioncash | 2015-09-11 | 2 | -6/+3 |
| | |||||
* | Merge pull request #1133 from lioncash/emplace-back | bunnei | 2015-09-10 | 1 | -3/+3 |
|\ | | | | | gl_rasterizer: Replace push_back calls with emplace_back in AddTriangle | ||||
| * | gl_rasterizer: Replace push_back calls with emplace_back in AddTriangle | Lioncash | 2015-09-10 | 1 | -3/+3 |
| | | |||||
* | | renderer_opengl: Remove unimplemented function declaration | Lioncash | 2015-09-10 | 1 | -3/+0 |
|/ | |||||
* | OpenGL: Use Sampler Objects to decouple sampler config from textures | Yuri Kunde Schlesner | 2015-09-03 | 4 | -21/+76 |
| | | | | Fixes #978 | ||||
* | OpenGL: Remove ugly and endian-unsafe color pointer casts | Yuri Kunde Schlesner | 2015-09-03 | 3 | -9/+9 |
| | |||||
* | OpenGL: Add support for Sampler Objects to state tracker | Yuri Kunde Schlesner | 2015-09-03 | 3 | -4/+42 |
| | |||||
* | Replace the previous OpenGL loader with a glad-generated 3.3 one | Yuri Kunde Schlesner | 2015-08-30 | 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. | ||||
* | Merge pull request #1049 from Subv/stencil | bunnei | 2015-08-30 | 4 | -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. | Subv | 2015-08-24 | 1 | -2/+9 |
| | | | | | | | | Reported here https://communities.intel.com/message/324464 | ||||
| * | HWRasterizer: Implemented stencil ops 6 and 7. | Subv | 2015-08-21 | 1 | -1/+3 |
| | | |||||
| * | HWRasterizer: Implemented stencil op 1 (GL_ZERO) | Subv | 2015-08-21 | 1 | -1/+1 |
| | | |||||
| * | GLRasterizer: Implemented stencil testing in the hw renderer. | Subv | 2015-08-20 | 4 | -2/+44 |
| | | |||||
* | | gl_rasterizer_cache: Detect and ignore unnecessary texture flushes. | bunnei | 2015-08-28 | 3 | -8/+18 |
| | | |||||
* | | Integrate the MicroProfile profiling library | Yuri Kunde Schlesner | 2015-08-25 | 2 | -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". | bunnei | 2015-08-15 | 1 | -1/+1 |
| | |||||
* | GPU: Refactor "VertexShader" namespace to "Shader". | bunnei | 2015-08-15 | 2 | -8/+8 |
| | | | | - Also renames "vertex_shader.*" to "shader_interpreter.*" | ||||
* | OpenGL: Fix state tracking in situations with reused object handles | Yuri Kunde Schlesner | 2015-08-06 | 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. | ||||
* | OpenGL: Remove redundant texture.enable_2d field from OpenGLState | Yuri Kunde Schlesner | 2015-08-06 | 4 | -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 readback | Yuri Kunde Schlesner | 2015-07-28 | 1 | -0/+7 |
| | |||||
* | OpenGL: Make OpenGL object resource wrappers fully inline | Yuri Kunde Schlesner | 2015-07-26 | 2 | -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-tex2d | bunnei | 2015-07-23 | 1 | -8/+5 |
|\ | | | | | GL Renderer: Remove erroneous glEnable(GL_TEXTURE_2D) calls | ||||
| * | GL Renderer: Remove erroneous glEnable(GL_TEXTURE_2D) calls | Yuri Kunde Schlesner | 2015-07-22 | 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. | ||||
* | | Rasterizer/GL: Set the border color when binding a texture. | Subv | 2015-07-23 | 1 | -2/+9 |
| | | |||||
* | | GPU: Added registers for min and mag texture filters and implemented them in the hw renderer. | Subv | 2015-07-21 | 2 | -3/+29 |
|/ | |||||
* | GLRasterizer: Don't try to get a pointer to the depth buffer if it doesn't exist. | Subv | 2015-07-19 | 1 | -3/+7 |
| | |||||
* | Add CiTrace recording support. | Tony Wasserka | 2015-07-13 | 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). | ||||
* | Merge pull request #907 from Lectem/clamp_to_border | Tony Wasserka | 2015-07-12 | 1 | -1/+1 |
|\ | | | | | Add GL_CLAMP_TO_BORDER support. | ||||
| * | Added GL_CLAMP_TO_BORDER support | Lectem | 2015-07-09 | 1 | -1/+1 |
| | | |||||
* | | Core: Cleanup hw includes. | Emmanuel Gil Peyrot | 2015-06-28 | 2 | -0/+2 |
| | | |||||
* | | Core, VideoCore: Replace or fix exit() calls. | Emmanuel Gil Peyrot | 2015-06-28 | 1 | -6/+9 |
| | | |||||
* | | Common: Cleanup key_map includes. | Emmanuel Gil Peyrot | 2015-06-28 | 2 | -3/+9 |
|/ | |||||
* | VideoCore: Log the GL driver’s vendor and renderer. | Emmanuel Gil Peyrot | 2015-06-16 | 1 | -0/+2 |
| | |||||
* | Renderer formatting edits | tfarley | 2015-06-09 | 2 | -26/+29 |
| | |||||
* | Render-to-texture flush, interval math fix | tfarley | 2015-06-09 | 1 | -1/+13 |
| | |||||
* | Liberal texture unbind (clout menu) | tfarley | 2015-06-09 | 2 | -4/+40 |
| | |||||
* | Depth format fix (crush3d intro/black screens) | tfarley | 2015-06-09 | 1 | -46/+46 |
| | |||||
* | Implemented glColorMask | tfarley | 2015-06-09 | 3 | -0/+24 |
| | |||||
* | Merge pull request #811 from archshift/commonify | archshift | 2015-05-31 | 2 | -2/+3 |
|\ | | | | | Commonify video_core utility headers | ||||
| * | Move video_core/color.h to common/color.h | archshift | 2015-05-30 | 1 | -1/+2 |
| | | |||||
| * | Move video_core/math.h to common/vector_math.h | archshift | 2015-05-30 | 1 | -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. | bunnei | 2015-05-31 | 1 | -10/+14 |
| | | | | | | | | - This is a workaround until we support fragment lighting. | ||||
* | | Pica: Implement LogicOp function. | bunnei | 2015-05-31 | 5 | -0/+57 |
|/ | |||||
* | Remove every trailing whitespace from the project (but externals). | Emmanuel Gil Peyrot | 2015-05-29 | 5 | -12/+12 |
| | |||||
* | gl_state: Remove unnecessary const specifier on Apply | Lioncash | 2015-05-23 | 2 | -2/+2 |
| | |||||
* | Pica: Create 'State' structure and move state memory there. | bunnei | 2015-05-23 | 2 | -114/+132 |
| | |||||
* | gl_state: Fix a condition typo in Apply | Lioncash | 2015-05-23 | 1 | -1/+1 |
| | |||||
* | OpenGL renderer | tfarley | 2015-05-23 | 12 | -20/+2069 |
| | |||||
* | Memmap: Re-organize memory function in two files | Yuri Kunde Schlesner | 2015-05-15 | 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. | ||||
* | Memory: Add GetPhysicalPointer helper function | Yuri Kunde Schlesner | 2015-05-09 | 1 | -4/+4 |
| | |||||
* | Common: Remove common.h | Yuri Kunde Schlesner | 2015-05-07 | 1 | -0/+1 |
| | |||||
* | Allow the user to set the background clear color during emulation | archshift | 2015-04-04 | 1 | -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/lcdfb | bunnei | 2015-03-10 | 2 | -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. | archshift | 2015-03-09 | 2 | -11/+48 |
| | | |||||
* | | Merge pull request #636 from bunnei/refactor-screen-win | bunnei | 2015-03-08 | 1 | -39/+9 |
|\ \ | | | | | | | Set framebuffer layout from EmuWindow. | ||||
| * | | Set framebuffer layout from EmuWindow. | bunnei | 2015-03-07 | 1 | -39/+9 |
| |/ | |||||
* / | Add profiling infrastructure and widget | Yuri Kunde Schlesner | 2015-03-02 | 1 | -0/+12 |
|/ | |||||
* | video_core: Implement the remaining framebuffer formats in the OpenGL renderer. | Emmanuel Gil Peyrot | 2015-02-15 | 2 | -12/+67 |
| | |||||
* | Asserts: break/crash program, fit to style guide; log.h->assert.h | archshift | 2015-02-11 | 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. | ||||
* | GSP: Update framebuffer info on all interrupts | Yuri Kunde Schlesner | 2015-01-14 | 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. | ||||
* | GSP: Toggle active framebuffer each frame | bunnei | 2015-01-08 | 1 | -1/+4 |
| | |||||
* | Merge pull request #291 from purpasmart96/license | bunnei | 2014-12-21 | 5 | -5/+5 |
|\ | | | | | License change | ||||
| * | License change | purpasmart96 | 2014-12-21 | 5 | -5/+5 |
| | | |||||
* | | Clean up some warnings | Chin | 2014-12-20 | 1 | -2/+2 |
|/ | |||||
* | Convert old logging calls to new logging macros | Yuri Kunde Schlesner | 2014-12-13 | 2 | -12/+24 |
| | |||||
* | Change NULLs to nullptrs. | Rohit Nirmal | 2014-12-03 | 1 | -5/+5 |
| | |||||
* | Merge pull request #236 from rohit-n/sign-compare | bunnei | 2014-12-03 | 1 | -1/+1 |
|\ | | | | | Silence a few -Wsign-compare warnings. | ||||
| * | Silence a few -Wsign-compare warnings. | Rohit Nirmal | 2014-12-01 | 1 | -1/+1 |
| | | |||||
* | | Fixed viewport error caused by rounding | vaguilar | 2014-11-30 | 1 | -2/+2 |
|/ | |||||
* | Remove tabs in all files except in skyeye imports and in generated GL code | Emmanuel Gil Peyrot | 2014-11-19 | 1 | -1/+1 |
| | |||||
* | OpenGL Renderer: Cleanup viewport extent calculation. | Tony Wasserka | 2014-11-18 | 2 | -44/+29 |
| | |||||
* | Fixup EmuWindow interface and implementations thereof. | Tony Wasserka | 2014-11-18 | 1 | -3/+3 |
| | |||||
* | Viewport scaling and display density independence | Kevin Hartman | 2014-11-18 | 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. | ||||
* | Add `override` keyword through the code. | Yuri Kunde Schlesner | 2014-10-26 | 1 | -4/+4 |
| | | | | This was automated using `clang-modernize`. | ||||
* | Only check OpenGL shader log if size is >1. | Yuri Kunde Schlesner | 2014-10-21 | 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. | ||||
* | Rework OpenGL renderer. | Yuri Kunde Schlesner | 2014-10-12 | 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. | ||||
* | OpenGL renderer: Shuffle initialization code around and rename functions. | Yuri Kunde Schlesner | 2014-10-12 | 2 | -25/+18 |
| | |||||
* | Remove virtual inheritance from RendererOpenGL | Yuri Kunde Schlesner | 2014-10-12 | 1 | -2/+2 |
| | | | | Also make destructor virtual so that instances are properly destructed. | ||||
* | Merge pull request #97 from archshift/cleanup | bunnei | 2014-09-14 | 1 | -16/+16 |
|\ | | | | | Small, general code cleanup | ||||
| * | renderer_opengl.cpp: improved alignment for readability | archshift | 2014-09-07 | 1 | -16/+16 |
| | | |||||
* | | Moved common_types::Rect from common to Common namespace | archshift | 2014-09-09 | 2 | -3/+3 |
|/ | |||||
* | Replace GLEW with a glLoadGen loader. | Yuri Kunde Schlesner | 2014-09-01 | 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. | ||||
* | Downgrade GLSL version to 1.50 (compatible with GL 3.2) | Yuri Kunde Schlesner | 2014-08-28 | 3 | -10/+15 |
| | |||||
* | VideoCore: Fixes rendering issues on Qt and corrects framebuffer output size. | bunnei | 2014-08-26 | 2 | -4/+11 |
| | |||||
* | Rewrite of OpenGL renderer, including OS X support | Kevin Hartman | 2014-08-26 | 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. | ||||
* | Pica/GPU: Change hardware registers to use physical addresses rather than virtual ones. | Tony Wasserka | 2014-08-12 | 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. | ||||
* | Remove the fancy RegisterSet class introduced in 4c2bff61e. | Tony Wasserka | 2014-08-12 | 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. | ||||
* | Use uniform formatting when printing hexadecimal numbers. | Tony Wasserka | 2014-07-23 | 1 | -1/+1 |
| | |||||
* | RegisterSet: Simplify code by using structs for register definition instead of unions. | Tony Wasserka | 2014-07-23 | 1 | -9/+9 |
| | |||||
* | GPU: Make use of RegisterSet. | Tony Wasserka | 2014-07-23 | 1 | -26/+28 |
| | |||||
* | Renderer: Fix component order in bottom framebuffer. | Tony Wasserka | 2014-07-23 | 2 | -5/+4 |
| | |||||
* | Renderer: Respect the active_fb GPU register. | Tony Wasserka | 2014-07-23 | 1 | -2/+9 |
| | |||||
* | Renderer: Add a few TODOs. | Tony Wasserka | 2014-07-23 | 1 | -3/+10 |
| | |||||
* | Rename LCD to GPU. | Tony Wasserka | 2014-06-12 | 1 | -3/+3 |
| | |||||
* | common_types: Changed BasicRect back to Rect, in the common namespace | archshift | 2014-05-20 | 2 | -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-fix | archshift | 2014-05-17 | 1 | -7/+6 |
|\ | |||||
| * | Update FlipFramebuffer | Sethpaien | 2014-05-08 | 1 | -7/+6 |
| | | | | | | Less calculations + fix | ||||
* | | Reverse debugging changes | archshift | 2014-05-01 | 1 | -2/+0 |
| | | |||||
* | | TGA dumps work, courtesy of @bunnei | archshift | 2014-05-01 | 1 | -0/+2 |
| | | |||||
* | | Xcode complains that the class name is redundant. | archshift | 2014-04-28 | 1 | -1/+1 |
| | | |||||
* | | Rect to BasicRect | archshift | 2014-04-28 | 2 | -3/+3 |
|/ | | | | Somewhere along the line an OSX header had already taken the name Rect. | ||||
* | removed DISALLOW_COPY_AND_ASSIGN in favor of NonCopyable class | bunnei | 2014-04-28 | 1 | -1/+0 |
| | |||||
* | fixed renderer to use correct framebuffer location | bunnei | 2014-04-27 | 2 | -8/+7 |
| | |||||
* | fixed GL context acquire (applies to Qt GUI only) | bunnei | 2014-04-22 | 1 | -0/+2 |
| | |||||
* | renamed hw_lcd module to just lcd | bunnei | 2014-04-18 | 1 | -1/+1 |
| | |||||
* | fixed framebuffer color order | bunnei | 2014-04-17 | 1 | -1/+1 |
| | |||||
* | removed hard-coded framebuffer addresses from renderer_opengl.cpp | bunnei | 2014-04-17 | 1 | -2/+4 |
| | |||||
* | fixed project includes to use new directory structure | bunnei | 2014-04-09 | 2 | -6/+7 |
| | |||||
* | got rid of 'src' folders in each sub-project | bunnei | 2014-04-09 | 2 | -0/+370 |