Commit Graph

6954 Commits (c42b818cf94385d505cc43efbed14af0b766b1ab)
 

Author SHA1 Message Date
Subv abec5f82e2 GPU: Stub the SSY shader instruction.
This instruction tells the GPU where the flow reconverges in a non-uniform control flow scenario, we can ignore this when generating GLSL code.
7 years ago
bunnei bbc4f369ed gl_shader_decompiler: Implement IADD instruction. 7 years ago
bunnei 79e9c2e237 gl_shader_decompiler: Add missing asserts for saturate_a instructions. 7 years ago
bunnei 83517cb53a
Merge pull request #505 from janisozaur/ccache-travis
Enable ccache usage on Travis
7 years ago
bunnei 9949e4d508
Merge pull request #533 from mailwl/array-to-buffer
Common/string_util: add StringFromBuffer() function
7 years ago
bunnei c116b220e9
Merge pull request #548 from Subv/blend
GPU: Fixed ghosting when drawing with blending disabled
7 years ago
Subv c011b6f67e GPU: Synchronize the blend state on every draw call.
Only independent blending on render target 0 is implemented for now.

This fixes the elongated squids in Splatoon 2's boot screen.
7 years ago
Subv c712dafaee GPU: Added registers for normal and independent blending. 7 years ago
bunnei a931cf9e8b
Merge pull request #547 from Subv/compressed_alignment
GLCache: Align compressed texture sizes to their compression ratio, and then align that compressed size to the block height for tiled textures.
7 years ago
bunnei a941a94148
Merge pull request #546 from Subv/flush_ubo_buffer
Rasterizer: Flush the written region when writing shader uniform data before copying it to the uniform buffers.
7 years ago
Subv 8d9534d830 GLCache: Align compressed texture sizes to their compression ratio, and then align that compressed size to the block height for tiled textures.
This fixes issues with retrieving non-block-aligned tiled compressed textures from the cache.
7 years ago
Subv 47dc5e0dab Rasterizer: Flush the written region when writing shader uniform data before copying it to the uniform buffers.
This fixes the flip_viewport uniform having invalid values when drawing.
7 years ago
Michał Janiszewski f3885845fc Cache ccache on Travis 7 years ago
Michał Janiszewski c0d3e2da4e Add ccache support for macOS on Travis 7 years ago
Michał Janiszewski 517112f549 Add ccache support for Linux on Travis 7 years ago
Michał Janiszewski 6324d86c71 Install cmake from repositories for Ubuntu
Ubuntu 18.04 already has cmake 3.10.2
7 years ago
bunnei 5aff2d38a9
Merge pull request #478 from janisozaur/patch-1
Use Ninja for Travis builds
7 years ago
bunnei ee318d4015
Merge pull request #543 from Subv/uniforms
GLRenderer: Write the shader stage configuration UBO data *before* copying it to the GPU.
7 years ago
Subv 86146ef819 GLRenderer: Write the shader stage configuration UBO data *before* copying it to the GPU.
This should fix the bug with the vs_config UBO being uninitialized during shader execution.
7 years ago
mailwl a2efb1dd48 Common/string_util: add StringFromBuffer function
convert input buffer (std::vector<u8>) to string, stripping zero chars
7 years ago
bunnei ee1eb8cfdf
Merge pull request #522 from mailwl/mm-u
Service/MM: add service and stub some functions
7 years ago
bunnei 0639e03055
Merge pull request #542 from bunnei/bfe_imm
gl_shader_decompiler: Implement BFE_IMM instruction.
7 years ago
bunnei 930487c7fb
Merge pull request #541 from Subv/blittextures
GLCache: Fixed copying compressed textures in the rasterizer cache.
7 years ago
bunnei 92209f905f gl_shader_decompiler: Implement BFE_IMM instruction. 7 years ago
Subv f22e090b86 GLCache: Use the full uncompressed size when blitting from one texture to another.
This avoids the problem of only copying a tiny piece of the textures when they are compressed.
7 years ago
Subv 218a08df93 GLCache: Simplify the logic to copy from one texture to another in BlitTextures.
We now use glCopyImageSubData, this should avoid errors with trying to attach a compressed texture as a framebuffer's color attachment and then blitting to it.

Maybe in the future we can change this to glCopyTextureSubImage which only requires GL_ARB_direct_state_access.
7 years ago
bunnei 0cb7ce71e0
Merge pull request #539 from bunnei/f2f-rounding
gl_shader_decompiler: F2F: Implement rounding modes.
7 years ago
bunnei 9f21f20d7c
Merge pull request #503 from mailwl/nfp-stubs
Service/nfp:user : stub some functions.
7 years ago
bunnei 128aeba0f3 gl_shader_decompiler: F2F: Implement rounding modes. 7 years ago
bunnei 03f877919d
Merge pull request #537 from bunnei/misc-shader
gl_shader_decompiler: Additional decodings, remove unused stuff from TEX
7 years ago
bunnei 37f50c8773
Merge pull request #535 from Subv/gpu_swizzle
GPU: Support changing the texture swizzles for Maxwell textures.
7 years ago
bunnei 4732e1f064
Merge pull request #536 from bunnei/isetp_imm
gl_shader_decompiler: Implement ISETP_IMM instruction.
7 years ago
bunnei 00c830405b gl_shader_decompiler: Remove some attribute stuff that has nothing to do with TEX/TEXS. 7 years ago
bunnei 4b114e1b8a shader_bytecode: Add instruction decodings for BFE, IMNMX, and XMAD. 7 years ago
bunnei 0a49c46353 gl_shader_decompiler: Implement ISETP_IMM instruction. 7 years ago
Subv 47629c89a8 GPU: Support changing the texture swizzles for Maxwell textures. 7 years ago
Subv 89e81a9be2 GLState: Support changing the GL_TEXTURE_SWIZZLE parameter of each texture unit. 7 years ago
bunnei 0ff2929644
Merge pull request #534 from Subv/multitexturing
GPU: Implement sampling multiple textures in the generated glsl shaders.
7 years ago
bunnei cfc9effa6c
Merge pull request #532 from bunnei/ld_c
gl_shader_decompiler: Implement LD_C instruction.
7 years ago
bunnei 4669f15f8b gl_shader_decompiler: Implement LD_C instruction. 7 years ago
bunnei 4112aa68a6 gl_shader_gen: Add uniform handling for indirect const buffer access. 7 years ago
bunnei 6e386a334b gl_shader_decompiler: Refactor uniform handling to allow different decodings. 7 years ago
Subv dbfc39d214 GPU: Implement sampling multiple textures in the generated glsl shaders.
All tested games that use a single texture show no regression.

Only Texture2D textures are supported right now, each shader gets its own "tex_fs/vs/gs" sampler array to maintain independent textures between shader stages, the textures themselves are reused if possible.
7 years ago
mailwl 61fbf5c8e6 Stub IUser::AttachAvailabilityChangeEvent 7 years ago
greggameplayer be09dfeed9 nvdrv/devices/nvidia_ctrl_gpu : add IoctlCommands with their params (#524)
* add IoctlCommands with their params in nvidia_ctrl_gpu.h

* add function related to the changes done previously

* fix clang-format

* delete trailing whitespace

* correct mistake
7 years ago
Sebastian Valle 2f842a86fe
Merge pull request #529 from bunnei/am-nifm-stubs
Stub SetConnectionConfirmationOption, GetPseudoDeviceId
7 years ago
Sebastian Valle ce026332a5
Merge pull request #531 from bunnei/fix-shl
gl_shader_decompiler: Fix un/signed mismatch with SHL.
7 years ago
Sebastian Valle fa220dd709
Merge pull request #530 from bunnei/wrap-mirror
maxwell_to_gl: Implement WrapMode Mirror.
7 years ago
mailwl a776464a55 Remove unused header files 7 years ago
bunnei 9a85277d83
Merge pull request #527 from Subv/rgba32f_texcopy
GPU: Allow the usage of RGBA32_FLOAT and RGBA16_FLOAT in the texture copy engine.
7 years ago