aboutsummaryrefslogtreecommitdiff
path: root/src/video_core
AgeCommit message (Collapse)Author
2018-08-11Merge pull request #1021 from lioncash/warnbunnei
gl_rasterizer: Silence implicit truncation warning in SetupShaders()
2018-08-11Merge pull request #1024 from Subv/blend_glbunnei
GPU/Maxwell3D: Implemented an alternative set of blend factors.
2018-08-11Merge pull request #1023 from Subv/invalid_attribsbunnei
RasterizerGL: Ignore invalid/unset vertex attributes.
2018-08-11GPU/Maxwell3D: Implemented an alternative set of blend factors.Subv
These are used by nouveau and some games like SMO.
2018-08-11Implement R8_UINT RenderTargetFormat & PixelFormat (#1014)greggameplayer
- Used by Go Vacation
2018-08-11RasterizerGL: Ignore invalid/unset vertex attributes.Subv
This should make the es2gears example not crash anymore.
2018-08-11gl_rasterizer: Silence implicit truncation warning in SetupShaders()Lioncash
Previously this would warn of truncating a std::size_t to a u32. This is safe because we'll obviously never have more than UINT32_MAX amount of uniform buffers.
2018-08-11core: Namespace EmuWindowLioncash
Gets the class out of the global namespace.
2018-08-11Merge pull request #1010 from bunnei/unk-vert-attrib-shaderbunnei
gl_shader_decompiler: Improve handling of unknown input/output attributes.
2018-08-11Merge pull request #1009 from bunnei/rg8-rgba8-snormbunnei
Implement render target formats RGBA8_SNORM and RG8_SNORM.
2018-08-11gl_shader_decompiler: Improve handling of unknown input/output attributes.bunnei
2018-08-11Merge pull request #1018 from Subv/ssy_syncbunnei
GPU/Shader: Implemented SSY and SYNC as a set_target/jump pair.
2018-08-11gl_rasterizer: Implement render target format RG8_SNORM.bunnei
- Used by Super Mario Odyssey.
2018-08-11gl_rasterizer: Implement render target format RGBA8_SNORM.bunnei
- Used by Super Mario Odyssey.
2018-08-11GPU/Shader: Don't predicate instructions that don't have a predicate field ↵Subv
(SSY).
2018-08-11GPU/Shaders: Implemented SSY and SYNC as a way to modify control flow during ↵Subv
shader execution. SSY sets the target label to jump to when the SYNC instruction is executed.
2018-08-11Merge pull request #1016 from lioncash/videobunnei
video_core: Get rid of global variable g_toggle_framelimit_enabled
2018-08-11Merge pull request #1003 from lioncash/varbunnei
video_core: Use variable template variants of type_traits interfaces where applicable
2018-08-11Implement R16S & R16UI & R16I RenderTargetFormats & PixelFormats and more ↵greggameplayer
(R16_UNORM needed by Fate Extella) (#848) * Implement R16S & R16UI & R16I RenderTargetFormats & PixelFormats Do a separate function in order to get Bytes Per Pixel of DepthFormat Apply the new function in gpu.h delete unneeded white space * correct merging error
2018-08-10video_core; Get rid of global g_toggle_framelimit_enabled variableLioncash
Instead, we make a struct for renderer settings and allow the renderer to update all of these settings, getting rid of the need for global-scoped variables. This also uncovered a few indirect inclusions for certain headers, which this commit also fixes.
2018-08-10renderer_base: Remove unused kFramebuffer enumerationLioncash
This is entirely unused and can be removed.
2018-08-10video_core: Remove unused Renderer enumerationLioncash
Currently we only have an OpenGL renderer, so this is unused in code (and occupies the Renderer identifier in the VideoCore namespace).
2018-08-10maxwell_to_gl: Implement VertexAttribute::Size::Size_8_8.bunnei
- Used by Super Mario Odyssey.
2018-08-10maxwell_to_gl: Implement VertexAttribute::Size::Size_32_32_32.bunnei
- Used by Super Mario Odyssey.
2018-08-10Merge pull request #1004 from lioncash/unusedbunnei
gl_rasterizer_cache: Remove unused viewport parameter of GetFramebufferSurfaces()
2018-08-10Merge pull request #1008 from yuzu-emu/revert-697-disable-depth-cullbunnei
Revert "gl_state: Temporarily disable culling and depth test."
2018-08-10Revert "gl_state: Temporarily disable culling and depth test."bunnei
2018-08-09gl_rasterizer_cache: Remove unused viewport parameter of ↵Lioncash
GetFramebufferSurfaces()
2018-08-09video_core: Use variable template variants of type_traits interfaces where ↵Lioncash
applicable
2018-08-09textures: Refactor out for Texture/Depth FormatFromPixelFormat.bunnei
2018-08-09Merge pull request #995 from bunnei/gl-buff-boundsbunnei
gl_rasterizer_cache: Add bounds checking for gl_buffer copies.
2018-08-09Merge pull request #1001 from lioncash/reservebunnei
gl_shader_decompiler: Reserve element memory beforehand in BuildRegisterList()
2018-08-09gl_rasterizer_cache: Add bounds checking for gl_buffer copies.bunnei
2018-08-09Merge pull request #991 from bunnei/ignore-macbunnei
maxwell_3d: Ignore macros that have not been uploaded yet.
2018-08-09Implement SNORM for BC5/DXN2 (#998)Khangaroo
* Implement BC5/DXN2 (#996) - Used by Kirby Star Allies. * Implement BC5/DXN2 SNORM UNORM for Kirby Star Allies SNORM for Super Mario Odyssey
2018-08-09gl_shader_decompiler: Reserve element memory beforehand in BuildRegisterList()Lioncash
Avoids potentially perfoming multiple reallocations when we know the total amount of memory we need beforehand.
2018-08-09gl_rasterizer_cache: Avoid iterator invalidation issues within ↵Lioncash
InvalidateRegion() A range-based for loop can't be used when the container being iterated is also being erased from.
2018-08-09Merge pull request #992 from bunnei/declr-predbunnei
gl_shader_decompiler: Declare predicates on use.
2018-08-09Merge pull request #994 from lioncash/constbunnei
gl_rasterizer_cache: Use std::vector::assign vs resize() then copy for the non-tiled case
2018-08-09Merge pull request #993 from bunnei/smo-vtx-ptsbunnei
Implement VertexAttribute::Size::Size_16_16_16_16 and PrimitiveTopology::Points.
2018-08-09Merge pull request #984 from bunnei/rt-nonebunnei
gl_rasterizer: Do not render when no render target is configured.
2018-08-09Implement BC5/DXN2 (#996)Khangaroo
- Used by Kirby Star Allies.
2018-08-08Merge pull request #977 from bunnei/bgr565bunnei
gl_rasterizer_cached: Implement RenderTargetFormat::B5G6R5_UNORM.
2018-08-08gl_rasterizer_cache: Invert conditional in LoadGLBuffer()Lioncash
It's generally easier to follow code using conditionals that operate in terms of the true case followed by the false case (no chance of overlooking the exclamation mark).
2018-08-08gl_rasterizer_cache: Use std::vector::assign in LoadGLBuffer() for the ↵Lioncash
non-tiled case resize() causes the vector to expand and zero out the added members to the vector, however we can avoid this zeroing by using assign(). Given we have the pointer to the data we want to copy, we can calculate the end pointer and directly copy the range of data without the need to perform the resize() beforehand.
2018-08-08maxwell_to_gl: Implement VertexAttribute::Size::Size_16_16_16_16.bunnei
- Used by Super Mario Odyssey (in game).
2018-08-08maxwell_to_gl: Implement PrimitiveTopology::Points.bunnei
- Used by Super Mario Odyssey (in game).
2018-08-08gl_shader_decompiler: Declare predicates on use.bunnei
- Used by Super Mario Odyssey (when going in game).
2018-08-08maxwell_3d: Ignore macros that have not been uploaded yet.bunnei
- Used by Super Mario Odyssey (in game).
2018-08-08gl_rasterizer_cache: Make pointer const in LoadGLBuffer()Lioncash
This is only ever read from, so we can make the data it's pointing to const.