aboutsummaryrefslogtreecommitdiff
path: root/src/video_core
AgeCommit message (Collapse)Author
2016-02-05gl_rasterizer: Minor naming refactor on Pica register naming.bunnei
2016-02-05gl_shader_gen: Reorganize and cleanup lighting code.bunnei
- No functional difference.
2016-02-05gl_shader_gen: Fix directional lights.bunnei
2016-02-05gl_shader_gen: Fix bug with lighting where clamp highlights was only applied ↵bunnei
to last light.
2016-02-05gl_shader_gen: View vector needs to be normalized when computing half angle ↵bunnei
vector.
2016-02-05renderer_opengl: Use textures for fragment shader LUTs instead of UBOs.bunnei
- Gets us LUT interpolation for free. - Some older Intel GPU drivers did not support the big UBOs needed to store the LUTs.
2016-02-05renderer_opengl: Initial implementation of basic specular lighting.bunnei
2016-02-05renderer_opengl: Implement HW fragment lighting distance attenuation.bunnei
2016-02-05renderer_opengl: Implement HW fragment lighting LUTs within our default UBO.bunnei
2016-02-05renderer_opengl: Implement diffuse component of HW fragment lighting.bunnei
2016-02-05pica: Implement decoding of basic fragment lighting components.bunnei
- Diffuse - Distance attenuation - float16/float20 types - Vertex Shader 'view' output
2016-02-05pica: Implement fragment lighting LUTs.bunnei
2016-02-05pica: Add decodings for distance attenuation and LUT registers.bunnei
2016-02-05pica: Add pica_types module and move float24 definition.bunnei
2016-02-03hwrasterizer: Use proper cached fb addr/sizetfarley
2016-02-02OpenGL: Downgrade GL_DEBUG_SEVERITY_NOTIFICATION to Debug logging levelYuri Kunde Schlesner
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-27Merge pull request #1367 from yuriks/jit-jmpbunnei
Shader JIT: Fix off-by-one error when compiling JMPs
2016-01-26Merge pull request #1369 from yuriks/jmpu-invertedbunnei
Shader: Implement "invert condition" feature of IFU instruction
2016-01-24Debugger: Use 3dbrew names for GPU registersYuri Kunde Schlesner
This list was imported from the 3dbrew wiki page and is pretty much complete.
2016-01-24Shader: Implement "invert condition" feature of IFU instructionYuri Kunde Schlesner
If the bit 0 of the JMPU instruction is set, then the jump condition will be inverted. That is, a jump will happen when the boolean is false instead of when it is true.
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