Lioncash
c155adb42a
gl_shader_decompiler: Remove unused variable in GenerateDeclarations()
This variable was being incremented, but we were never actually using
it.
8 years ago
Lioncash
300a4e3d79
gl_shader_manager: Make ProgramManager's GetCurrentProgramStage() a const member function
This function doesn't modify class state, so it can be made const.
8 years ago
greggameplayer
6abb522f98
Implement RGB32F PixelFormat ( #886 ) (used by Go Vacation)
8 years ago
Lioncash
68150d3d79
gl_state: Make texture_units a std::array
Gets rid of the use of a raw C array.
8 years ago
Lioncash
807d0cf4f2
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
153a00ebc0
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
6b77105b3d
Implement R32_FLOAT RenderTargetFormat
8 years ago
Subv
3aebf087c1
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
b994374b5c
GPU: Allow using R16F as a render target format.
8 years ago
Unknown
aad2bf10a8
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
a99c559c69
GPU: Use the right texture format for sRGBA framebuffers.
8 years ago
Subv
6c114256ca
GPU: Allow the use of Z24S8 as a texture format.
8 years ago
Subv
b4ae8432b4
GPU: Implemented the Z32_S8_X24 depth buffer format.
8 years ago
Subv
72cb7ab18b
GPU: Allow using Z32 as a texture format.
8 years ago
Subv
1930980a26
GPU: Allow the usage of R8 as a render target format.
8 years ago
Subv
3b77420f15
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
d10cc9c548
GPU: Implemented the R16 and R16F texture formats.
8 years ago
Lioncash
6bbabfe848
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
7300872843
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
2aa1ec7f8d
gl_rasterizer: Use in-class member initializers where applicable
We can just assign to the members directly in these cases.
8 years ago
Lioncash
4cab632ba6
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
38ad89a19b
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
772c408826
gl_rasterizer: Implement texture border color.
8 years ago
bunnei
a5062c345f
maxwell_to_gl: Implement Texture::WrapMode::Border.
8 years ago
Subv
3a80e8ab24
GPU: Implement texture format R32F.
8 years ago
bunnei
295d3104fb
maxwell_to_gl: Implement VertexAttribute::Type::UnsignedInt.
8 years ago
Lioncash
97ce8f0457
gl_shader_decompiler: Correct return value of WriteTexsInstruction()
This should be returning void, not a std::string
8 years ago
bunnei
567ae2ae9c
gl_shader_decompiler: Implement shader instruction TLDS.
8 years ago
bunnei
889da74c9d
gl_rasterizer_cache: Implement RenderTargetFormat RG32_FLOAT.
8 years ago
bunnei
c8cb44909a
gl_rasterizer_cache: Implement RenderTargetFormat RGBA32_FLOAT.
8 years ago
bunnei
e1ffcc6817
gl_rasterizer_cache: Implement RenderTargetFormat BGRA8_UNORM.
8 years ago
bunnei
ff355e7684
gl_rasterizer_cache: Add missing log statements.
8 years ago
bunnei
04cf719b92
gl_shader_decompiler: Print instruction value in shader comments.
8 years ago
bunnei
658f096c03
gl_shader_decompiler: Check if SetRegister result is ZeroIndex.
8 years ago
Lioncash
71c3648ad6
gl_shader_decompiler: Simplify GetCommonDeclarations()
8 years ago
Lioncash
db185e6950
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
392383692c
shader_bytecode: Implement other TEXS masks.
8 years ago
bunnei
e8f619cc71
gl_shader_decompiler: Remove unused state tracking and minor cleanup.
8 years ago
bunnei
3a6bad38b6
gl_shader_decompiler: Implement SEL instruction.
8 years ago
bunnei
f4101aeacc
gl_rasterizer_cache: Blit surfaces on recreation instead of flush and load.
8 years ago
bunnei
def372de50
gl_rasterizer_cache: Use GPUVAddr as cache key, not parameter set.
8 years ago
bunnei
b00904f10e
gl_rasterizer_cache: Use zeta_width and zeta_height registers for depth buffer.
8 years ago
bunnei
602ff24d5c
gl_rasterizer: Use zeta_enable register to enable depth buffer.
8 years ago
bunnei
6d96a4fc0a
maxwell_3d: Add depth buffer enable, width, and height registers.
8 years ago
Lioncash
604f780c9d
gl_shader_manager: Replace unimplemented function prototype
This was just a linker error waiting to happen.
8 years ago
Lioncash
d923d8f50c
gpu: Rename Get3DEngine() to Maxwell3D()
This makes it match its const qualified equivalent.
8 years ago
Lioncash
bdfd46e192
video_core: Use nested namespaces where applicable
Compresses a few namespace specifiers to be more compact.
8 years ago
Lioncash
f53a9138bb
gl_state: Make references const where applicable in Apply()
8 years ago
Lioncash
80a916dc0a
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
10a91d9b9a
maxwell_3d: Remove unused variable within GetStageTextures()
8 years ago