aboutsummaryrefslogtreecommitdiff
path: root/src/video_core
AgeCommit message (Collapse)Author
2016-01-24Shader JIT: Fix off-by-one error when compiling JMPsYuri Kunde Schlesner
There was a mistake in the JMP code which meant that one instruction at the destination would be skipped when the jump was taken. This commit also changes the meaning of the culprit parameter to make it less confusing and avoid similar mistakes in the future.
2016-01-20Merge pull request #1334 from tfarley/hw-depth-modifiersbunnei
hwrasterizer: Use depth offset
2016-01-20hwrasterizer: Use depth offsettfarley
2016-01-17command_processor: Get rid of variable shadowingLioncash
2016-01-12Merge pull request #1196 from linkmauve/khr_debugbunnei
Add optional GL_KHR_debug support
2015-12-30video_core: Make the renderer global a unique_ptrLioncash
2015-12-29swrasterizer: Add missing override specifierLioncash
2015-12-20VideoCore: Sync state after changing rasterizersYuri Kunde Schlesner
This fixes various bugs that appear in the HW rasterizer after switching between it and the SW one during emulation.
2015-12-09Merge pull request #1267 from yuriks/flipped-framebufferYuri Kunde Schlesner
OpenGL: Flip framebuffers during transfer rather than when rendering
2015-12-08Merge pull request #1269 from Subv/triangle_fanbunnei
GPU/PrimitiveAssembler: Fixed drawing triangle fans.
2015-12-07VideoCore: Unify interface to OpenGL and SW rasterizersYuri Kunde Schlesner
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-06VideoCore: Rename HWRasterizer methods to be less confusingYuri Kunde Schlesner
2015-12-06OpenGL: Rename cache functions to better match what they actually doYuri Kunde Schlesner
2015-12-06GPU/PrimitiveAssembler: Fixed drawing triangle fans.Subv
It was skipping the second vertex assignment and using uninitialized garbage when assembling the corresponding triangle.
2015-12-04OpenGL: Flip framebuffers during transfer rather than when renderingYuri Kunde Schlesner
2015-12-04OpenGL: Add support for glFrontFace in the state trackerYuri Kunde Schlesner
2015-11-30PICA: Properly emulate 1-stage delay in the combiner bufferYuri Kunde Schlesner
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-25renderer_opengl: Fix uniform issues introduced with ↵bunnei
kemenaran/avoid-explicit-uniform-location.
2015-11-25Use regular uniform locationPierre de La Morinerie
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-18FragShader: Use an UBO instead of several individual uniformsSubv
2015-11-09GPU/Loaders: Log an error when a loader tries to load from a component ↵Subv
beyond the available ones (12). Related to #1170
2015-10-24OpenGL: Log GL_KHR_debug messages we receiveEmmanuel Gil Peyrot
This allows the driver to communicate errors, warnings and improvement suggestions about our usage of the API.
2015-10-21gl_shader_gen: Use explicit locations for vertex shader attributes.bunnei
2015-10-21gl_shader_gen: Optimize code for AppendAlphaTestCondition.bunnei
- Also add a comment to AppendColorCombiner.
2015-10-21gl_rasterizer: Define enum types for each vertex texcoord attribute.bunnei
2015-10-21gl_shader_gen: Various cleanups to shader generation.bunnei
2015-10-21gl_rasterizer: Use MMH3 hash for shader cache hey.bunnei
- Includes a check to confirm no hash collisions.
2015-10-21gl_shader_gen: Require explicit uniform locations.bunnei
- Fixes uniform issue on AMD.
2015-10-21gl_shader_gen: Rename 'o' to 'attr' in vertex/fragment shaders.bunnei
2015-10-21gl_shader_gen: AppendAlphaModifier default should be 0.0, not vec4(0.0).bunnei
2015-10-21gl_shader_gen: Fix bug where TEV stage outputs should be clamped.bunnei
2015-10-21gl_rasterizer: Add documentation to ShaderCacheKey.bunnei
2015-10-21gl_shader_gen: Add additional function documentation.bunnei
2015-10-21gl_shader_util: Cleanup header file + add docstring.bunnei
2015-10-21gl_shader_gen: Various cleanups + moved TEV stage generation to its own ↵bunnei
function.
2015-10-21renderer_opengl: Refactor shader generation/caching to be more organized + ↵bunnei
various cleanups.
2015-10-21gl_rasterizer: Move logic for creating ShaderCacheKey to a static function.bunnei
2015-10-21gl_shader_util: Use vec3 constants for AppendColorCombiner.bunnei
2015-10-21gl_rasterizer: Fix typo in uploading TEV const color uniforms.bunnei
2015-10-21gl_shader_util: Fix precision bug with alpha testing.bunnei
- Alpha testing is not done with float32 precision, this makes the HW renderer match the SW renderer.
2015-10-21Initial implementation of fragment shader generation with caching.Subv
2015-10-09CitraQt, SkyEye, Loader, VideoCore: Remove newlines in LOG_* calls.Emmanuel Gil Peyrot
The LOG_* function itself already appends one.
2015-10-06Silence -Wsign-compare warnings.Rohit Nirmal
2015-09-29fix some xcode 7.0 warningsMartin Lindhe
2015-09-16general: Silence some warnings when using clangLioncash
2015-09-11video_core: Reorganize headersLioncash
2015-09-11video_core: Remove unnecessary includes from headersLioncash
2015-09-10Merge pull request #1133 from lioncash/emplace-backbunnei
gl_rasterizer: Replace push_back calls with emplace_back in AddTriangle
2015-09-10Merge pull request #1136 from lioncash/protobunnei
renderer_opengl: Remove unimplemented function declaration
2015-09-10renderer_opengl: Remove unimplemented function declarationLioncash