ReinUsesLisp
3c7276cd1a
gl_rasterizer: Implement GL_POINT_SPRITE
OpenGL core defaults to GL_POINT_SPRITE, meanwhile on OpenGL
compatibility we have to explicitly enable it. This fixes
gl_PointCoord's behaviour.
7 years ago
ReinUsesLisp
1eef76d7b6
maxwell_3d: Fix stencil back mask
7 years ago
ReinUsesLisp
0ff3ea3188
shader/shift: Implement SHF_LEFT_{IMM,R}
Shifts a pair of registers to the left and returns the high register.
7 years ago
ReinUsesLisp
ca61e82f85
shader/bfi: Implement register-constant buffer variant
It's the same as the variant that was implemented, but it takes the
operands from another source.
7 years ago
ReinUsesLisp
098218ff4c
shader/arithmetic: Implement FCMP
Compares the third operand with zero, then selects between the first and
second.
7 years ago
ReinUsesLisp
0d8f0ad3b3
shader/memory: Implement ATOM.ADD
ATOM operates atomically on global memory. For now only add ATOM.ADD
since that's what was found in commercial games.
This asserts for ATOM.ADD.S32 (handling the others as unimplemented),
although ATOM.ADD.U32 shouldn't be any different.
This change forces us to change the default type on SPIR-V storage
buffers from float to uint. We could also alias the buffers, but it's
simpler for now to just use uint. While we are at it, abstract the code
to avoid repetition.
7 years ago
Fernando Sahmkow
5fb7881077
Shader_IR: Allow constant access of guest driver.
7 years ago
Fernando Sahmkow
e9f3264c8d
GPU: Implement guest driver profile and deduce texture handler sizes.
7 years ago
ReinUsesLisp
4862fc4970
vk_graphics_pipeline: Set front facing properly
Front face was being forced to a certain value when cull face is
disabled. Set a default value on initialization and drop the forcefully
set front facing value with culling disabled.
7 years ago
ReinUsesLisp
c4fd02b47f
shader/memory: Implement ATOMS.ADD.U32
7 years ago
Lioncash
e481a676de
maxwell_3d: Make dirty_pointers private
This isn't used outside of the class itself, so we can make it private
for the time being.
7 years ago
ReinUsesLisp
1692dab134
gl_state: Implement PROGRAM_POINT_SIZE
For gl_PointSize to have effect we have to activate
GL_PROGRAM_POINT_SIZE.
7 years ago
ReinUsesLisp
9328c4be0b
yuzu: Remove Maxwell debugger
This was carried from Citra and wasn't really used on yuzu. It also adds
some runtime overhead. This commit removes it from yuzu's codebase.
7 years ago
ReinUsesLisp
9d9c29a986
maxwell_3d: Add depth bounds registers
7 years ago
ReinUsesLisp
0544c7ebce
shader/r2p: Refactor P2R to support P2R
7 years ago
ReinUsesLisp
0eb9f3b107
gl_rasterizer: Implement RASTERIZE_ENABLE
RASTERIZE_ENABLE is the opposite of GL_RASTERIZER_DISCARD. Implement it
naturally using this.
NVN games expect rasterize to be enabled by default, reflect that in our
initial GPU state.
7 years ago
ReinUsesLisp
6acbec5666
shader_bytecode: Fix TLD4S encoding
7 years ago
ReinUsesLisp
ac847a8cca
shader/texture: Implement TLD4.PTP
7 years ago
Fernando Sahmkow
e47f66ac4b
Shader_Ir: Correct TLD4S encoding and implement f16 flag.
7 years ago
Fernando Sahmkow
1987e66daa
Maxwell3D: Implement Depth Mode.
This commit finishes adding depth mode that was reverted before due to
other unresolved issues.
7 years ago
ReinUsesLisp
6e95568616
shader: Implement MEMBAR.GL
Implement using memoryBarrier in GLSL and OpMemoryBarrier on SPIR-V.
7 years ago
ReinUsesLisp
243a33aba9
shader_ir/memory: Implement patch stores
7 years ago
ReinUsesLisp
b377e0c75c
maxwell_3d: Add tessellation tess level registers
7 years ago
ReinUsesLisp
cac31c3fbb
maxwell_3d: Add tessellation mode register
7 years ago
ReinUsesLisp
c69c5be931
maxwell_3d: Add patch vertices register
7 years ago
ReinUsesLisp
959ac10dc8
shader_bytecode: Remove corrupted character
7 years ago
ReinUsesLisp
0ecd1a227d
gl_shader_cache: Remove dynamic BaseBinding specialization
7 years ago
ReinUsesLisp
5f6a589d63
video_core: Unify ProgramType and ShaderStage into ShaderType
7 years ago
ReinUsesLisp
46ad4bd297
gl_shader_cache: Specialize local memory size for compute shaders
Local memory size in compute shaders was stubbed with an arbitary size.
This commit specializes local memory size from guest GPU parameters.
7 years ago
ReinUsesLisp
b0b505984d
gl_shader_cache: Specialize shader workgroup
Drop the usage of ARB_compute_variable_group_size and specialize compute
shaders instead. This permits compute to run on AMD and Intel
proprietary drivers.
7 years ago
ReinUsesLisp
c884dc8af2
texture_cache: Use a table instead of switch for texture formats
Use a large flat array to look up texture formats. This allows us to
properly implement formats with different component types. It should
also be faster.
7 years ago
Fernando Sahmkow
206d13c987
Shader_IR: Implement TXD instruction.
7 years ago
Fernando Sahmkow
6267529837
Shader_IR: Implement FLO instruction.
7 years ago
Fernando Sahmkow
cb07d60362
Shader_Bytecode: Add encodings for FLO, SHF and TXD
7 years ago
ReinUsesLisp
2f14d6ba63
maxwell_3d: Fix stencil_back_func_mask offset
stencil_back_func_mask and stencil_back_mask were misplaced. This commit
addresses that issue.
7 years ago
ReinUsesLisp
905cc250a4
video_core: Silence implicit conversion warnings
7 years ago
ReinUsesLisp
bb94bcc991
shader_ir/warp: Implement FSWZADD
7 years ago
bunnei
fe02b9f968
common_func: Use std::array for INSERT_PADDING_* macros.
- Zero initialization here is useful for determinism.
7 years ago
Fernando Sahmkow
d65eed3b61
Shader_IR: Fix TLD4 and add Bindless Variant.
This commit fixes an issue where not all 4 results of tld4 were being
written, the color component was defaulted to red, among other things.
It also implements the bindless variant.
7 years ago
ReinUsesLisp
902431adce
maxwell_3d/kepler_compute: Remove unused arguments in GetTexture
7 years ago
ReinUsesLisp
cea1214e5a
video_core/textures: Remove unused index entry in FullTextureInfo
7 years ago
ReinUsesLisp
cf7206fe7b
maxwell_3d: Remove unused method GetStageTextures
7 years ago
ReinUsesLisp
15a52a86bd
maxwell_3d: Silence implicit conversion warnings
While we are at it, unify types for dirty reg pointers.
7 years ago
Fernando Sahmkow
ab86995cb9
Shader_IR: Address Feedback.
7 years ago
Fernando Sahmkow
094fa9ec6c
Shader_IR: Clang format
7 years ago
ReinUsesLisp
c37c37d4a2
gl_shader_disk_cache: Store and load fast BRX
7 years ago
Fernando Sahmkow
4168b287c9
Shader_IR: allow lookup of texture samplers within the shader_ir for instructions that don't provide it
7 years ago
Fernando Sahmkow
d4da704ac5
VideoCore: Unify const buffer accessing along engines and provide ConstBufferLocker class to shaders.
7 years ago
Lioncash
f1443d2b41
shader_bytecode: Make Matcher constexpr capable
Greatly shrinks the amount of generated code for GetDecodeTable().
Collapses an assembly output of 9000+ lines down to ~3621 with Clang,
and 6513 down to ~2616 with GCC, given it's now allowed to construct all
the entries as a sequence of constant data.
7 years ago
ReinUsesLisp
94d32c3cd2
maxwell_3d: Reduce FlushMMEInlineDraw logging to Trace
7 years ago