greggameplayer
fe64e1d38e
Implement RGB32F PixelFormat ( #886 ) (used by Go Vacation)
8 years ago
Lioncash
6b32e24161
gl_state: Make texture_units a std::array
Gets rid of the use of a raw C array.
8 years ago
Lioncash
d92e8ab062
gl_shader_manager: Take ShaderSetup instances by const reference in UseProgrammableVertexShader() and UseProgrammableFragmentShader()
Avoids performing unnecessary copies of 65560 byte sized ShaderSetup
instances, considering it's only used as part of lookup and not
modified.
Given the parameters were already const, it's likely taking these
parameters by reference was intended but the ampersand was forgotten.
8 years ago
Lioncash
0f2ac928f2
video_core: Make global EmuWindow instance part of the base renderer class
Makes the global a member of the RendererBase class. We also change this
to be a reference. Passing any form of null pointer to these functions
is incorrect entirely, especially given the code itself assumes that the
pointer would always be in a valid state.
This also makes it easier to follow the lifecycle of instances being
used, as we explicitly interact the renderer with the rasterizer, rather
than it just operating on a global pointer.
8 years ago
Unknown
0d8fcab136
Implement R32_FLOAT RenderTargetFormat
8 years ago
Subv
8191273a3d
MacroInterpreter: Avoid left shifting negative values.
The branch target is signed, so multiply by 4 instead of left shifting by 2
8 years ago
Subv
f85cff0f48
GPU: Allow using R16F as a render target format.
8 years ago
Unknown
4672a01cbf
Implement R16_G16
correct trailing white spaces
Delete tabs
correct placement
Add RG16F & RG16UI & RG16I & RG16S PixelFormats
Return correct data according to changes done previously
correct PixelFormat declaration
correct coding style error
correct coding style error part 2
correct RG16S Declaration error
correct alignment
8 years ago
Subv
c5b838aeef
GPU: Use the right texture format for sRGBA framebuffers.
8 years ago
Subv
ee8123bf13
GPU: Allow the use of Z24S8 as a texture format.
8 years ago
Subv
daf2504d31
GPU: Implemented the Z32_S8_X24 depth buffer format.
8 years ago
Subv
f747a7e35d
GPU: Allow using Z32 as a texture format.
8 years ago
Subv
4f574201ea
GPU: Allow the usage of R8 as a render target format.
8 years ago
Subv
8f2c4191ab
GPU: Remove the assert that required the CODE_ADDRESS to be 0.
Games usually just leave it at 0 but nouveau sets it to something else. This already works fine, the assert is useless.
8 years ago
Subv
4cc1e180ec
GPU: Implemented the R16 and R16F texture formats.
8 years ago
Lioncash
0162f8b3a7
gl_rasterizer: Replace magic number with GL_INVALID_INDEX in SetupConstBuffers()
This is just the named constant that OpenGL provides, so we can use that
instead of using a literal -1
8 years ago
Lioncash
16139ed53b
gl_rasterizer: Use std::string_view instead of std::string when checking for extensions
We can avoid heap allocations here by just using a std::string_view
instead of performing unnecessary copying of the string data.
8 years ago
Lioncash
b5eb3905cd
gl_rasterizer: Use in-class member initializers where applicable
We can just assign to the members directly in these cases.
8 years ago
Lioncash
bf608f125e
video_core/memory_manager: Replace a loop with std::array's fill() function in PageSlot()
We already have a function that does what this code was doing, so let's
use that instead.
8 years ago
Lioncash
d71e19fd75
video_core/memory_manager: Avoid repeated unnecessary page slot lookups
We don't need to keep calling the same function over and over again in a
loop, especially when the behavior is slightly non-trivial. We can just
keep a reference to the looked up location and do all the checking and
assignments based off it instead.
8 years ago
bunnei
69c45ce71c
gl_rasterizer: Implement texture border color.
8 years ago
bunnei
6b3e54621f
maxwell_to_gl: Implement Texture::WrapMode::Border.
8 years ago
Subv
ccc42702b5
GPU: Implement texture format R32F.
8 years ago
bunnei
2ff86f5765
maxwell_to_gl: Implement VertexAttribute::Type::UnsignedInt.
8 years ago
Lioncash
33e2033af5
gl_shader_decompiler: Correct return value of WriteTexsInstruction()
This should be returning void, not a std::string
8 years ago
bunnei
9505283989
gl_shader_decompiler: Implement shader instruction TLDS.
8 years ago
bunnei
a27c0099ed
gl_rasterizer_cache: Implement RenderTargetFormat RG32_FLOAT.
8 years ago
bunnei
3a19c1098d
gl_rasterizer_cache: Implement RenderTargetFormat RGBA32_FLOAT.
8 years ago
bunnei
bcc184acfa
gl_rasterizer_cache: Implement RenderTargetFormat BGRA8_UNORM.
8 years ago
bunnei
89db8c2171
gl_rasterizer_cache: Add missing log statements.
8 years ago
bunnei
c4322ce87e
gl_shader_decompiler: Print instruction value in shader comments.
8 years ago
bunnei
81aa02424b
gl_shader_decompiler: Check if SetRegister result is ZeroIndex.
8 years ago
Lioncash
3b88ce3dcb
gl_shader_decompiler: Simplify GetCommonDeclarations()
8 years ago
Lioncash
0797657bc0
gl_shader_decompiler: Remove redundant Subroutine construction in AddSubroutine()
We don't need to toss away the Subroutine instance after the find() call
and reconstruct another instance with the same data right after it.
Particularly give Subroutine contains a std::set.
8 years ago
bunnei
148a5bef7e
shader_bytecode: Implement other TEXS masks.
8 years ago
bunnei
f5a2944ab6
gl_shader_decompiler: Remove unused state tracking and minor cleanup.
8 years ago
bunnei
c43eaa94f3
gl_shader_decompiler: Implement SEL instruction.
8 years ago
bunnei
63fbf9a7d3
gl_rasterizer_cache: Blit surfaces on recreation instead of flush and load.
8 years ago
bunnei
4301f0b539
gl_rasterizer_cache: Use GPUVAddr as cache key, not parameter set.
8 years ago
bunnei
cd47391c2d
gl_rasterizer_cache: Use zeta_width and zeta_height registers for depth buffer.
8 years ago
bunnei
d8c60029d6
gl_rasterizer: Use zeta_enable register to enable depth buffer.
8 years ago
bunnei
5287991a36
maxwell_3d: Add depth buffer enable, width, and height registers.
8 years ago
Lioncash
d5bc9aef4e
gl_shader_manager: Replace unimplemented function prototype
This was just a linker error waiting to happen.
8 years ago
Lioncash
863579736c
gpu: Rename Get3DEngine() to Maxwell3D()
This makes it match its const qualified equivalent.
8 years ago
Lioncash
bb960c8cb4
video_core: Use nested namespaces where applicable
Compresses a few namespace specifiers to be more compact.
8 years ago
Lioncash
0faa13baeb
gl_state: Make references const where applicable in Apply()
8 years ago
Lioncash
e6b3d3a9ea
gl_state: Get rid of mismatched sign conversions
While we're at it, amend the loop variable type to be the same width as
that returned by the .size() call.
8 years ago
Lioncash
8b08f82dc7
maxwell_3d: Remove unused variable within GetStageTextures()
8 years ago
Lioncash
f26866ff6a
gl_shader_decompiler: Eliminate variable and declaration shadowing
Ensures that no identifiers are being hidden, which also reduces
compiler warnings.
8 years ago
Lioncash
c2121cb059
gl_shader_decompiler: Remove unnecessary const from return values
This adds nothing from a behavioral point of view, and can inhibit the
move constructor/RVO
8 years ago