ReinUsesLisp
f58a6152fc
gl_shader_cache: Fix texture view for cubemaps as cubemap arrays
Cubemaps are considered layered and to create a texture view the texture
mustn't be a layered texture, resulting in cubemaps being bound as
cubemap arrays. To fix this issue this commit introduces an extra
surface parameter called "is_array" and uses this to query for texture
view creation.
Now that texture views for cubemaps are actually being created, this
also fixes the number of layers created for the texture view (since they
have to be 6 to create a texture view of cubemaps).
7 years ago
ReinUsesLisp
07692230ca
gl_rasterizer: Workaround invalid zeta clears
Some games (like Xenoblade Chronicles 2) clear both depth and stencil
buffers while there's a depth-only texture attached (e.g. D16 Unorm).
This commit reads the zeta format of the bound surface on
ConfigureFramebuffers and returns if depth and/or stencil attachments
were set. This is ignored on DrawArrays but on Clear it's used to just
clear those attachments, bypassing an OpenGL error.
7 years ago
Lioncash
b2b98b2f44
shader/shader_ir: Amend three comment typos
Given we're in the area, these are three trivial typos that can be
corrected.
7 years ago
Lioncash
62e08c30b7
shader/shader_ir: Amend constructor initializer ordering for AbufNode
Orders the class members in the same order that they would actually be
initialized in. Gets rid of two compiler warnings.
7 years ago
Lioncash
3e1a9a45a6
shader/decode: Avoid a pessimizing std::move within DecodeRange()
std::moveing a local variable in a return statement has the potential to
prevent copy elision from occurring, so this can just be converted into
a regular return.
7 years ago
ReinUsesLisp
fc6d46c374
video_core: Silent implicit conversion warning
7 years ago
bunnei
045b0b70b6
frontend: Refactor ScopeAcquireWindowContext out of renderer_opengl.
7 years ago
ReinUsesLisp
9a82dec74a
maxwell_3d: Set rt_separate_frag_data to 1 by default
Commercial games assume that this value is 1 but they never set it. On
the other hand nouveau manually sets this register. On
ConfigureFramebuffers we were asserting for what we are actually
implementing (according to envytools).
7 years ago
James Rowe
ea73ffe202
Rename step 1 and step 2 to be a little more descriptive
7 years ago
James Rowe
e8bd6b1fcc
QT: Upgrade the Loading Bar to look much better
7 years ago
ReinUsesLisp
a1b1ea47ed
gl_rasterizer: Silent unsafe mix warning
7 years ago
ReinUsesLisp
a63d7c49fc
shader_ir: Fixup clang build
7 years ago
ReinUsesLisp
1e40a4b343
gl_shader_decompiler: replace std::get<> with std::get_if<> for macOS compatibility
7 years ago
ReinUsesLisp
51de4e00a6
gl_shader_decompiler: Inline textureGather component
7 years ago
ReinUsesLisp
1c9c4eefeb
shader_decode: Fixup XMAD
7 years ago
ReinUsesLisp
170c8212bb
shader_ir: Pass to decoder functions basic block's code
7 years ago
ReinUsesLisp
2d6c064e66
shader_decode: Improve zero flag implementation
7 years ago
ReinUsesLisp
d911740e5d
shader_ir: Remove composite primitives and use temporals instead
7 years ago
ReinUsesLisp
bb12f99b20
gl_shader_decompiler: Fixup AssignCompositeHalf
7 years ago
ReinUsesLisp
50195b1704
shader_decode: Use proper primitive names
7 years ago
ReinUsesLisp
2faad9bf23
shader_decode: Use BitfieldExtract instead of shift + and
7 years ago
ReinUsesLisp
52223313b1
shader_ir: Remove Ipa primitive
7 years ago
ReinUsesLisp
d6b173d5fe
gl_shader_decompiler: Use rasterizer's UBO size limit
7 years ago
ReinUsesLisp
df74ff3c8b
gl_shader_gen: Fixup code formatting
7 years ago
ReinUsesLisp
af5d7e2c49
video_core: Rename glsl_decompiler to gl_shader_decompiler
7 years ago
ReinUsesLisp
d9118d324a
shader_ir: Remove RZ and use Register::ZeroIndex instead
7 years ago
ReinUsesLisp
5af82a8ed4
shader_decode: Implement TEXS.F16
7 years ago
ReinUsesLisp
c68c13e1aa
shader_decode: Fixup R2P
7 years ago
ReinUsesLisp
8b5588e776
glsl_decompiler: Fixup TLDS
7 years ago
ReinUsesLisp
dbed6c6485
glsl_decompiler: Fixup geometry shaders
7 years ago
ReinUsesLisp
ea78c78253
shader_decode: Fixup WriteLogicOperation zero comparison
7 years ago
ReinUsesLisp
ab7f52b279
glsl_decompiler: Fixup permissive member function declarations
7 years ago
ReinUsesLisp
55a10d02e5
shader_decode: Fixup PSET
7 years ago
ReinUsesLisp
a2e22b4359
shader_decode: Fixup clang-format
7 years ago
ReinUsesLisp
e1fea1e0c5
video_core: Implement IR based geometry shaders
7 years ago
ReinUsesLisp
a1b845b651
shader_decode: Implement VMAD and VSETP
7 years ago
ReinUsesLisp
b11e0b94c7
shader_decode: Implement HSET2
7 years ago
ReinUsesLisp
2df55985b6
shader_decode: Rework HSETP2
7 years ago
ReinUsesLisp
8332482c24
shader_decode: Implement R2P
7 years ago
ReinUsesLisp
3f1136ac6f
shader_decode: Implement CSETP
7 years ago
ReinUsesLisp
7e13e8bfcb
shader_decode: Implement PSET
7 years ago
ReinUsesLisp
dd91650aaf
shader_decode: Implement HFMA2
7 years ago
ReinUsesLisp
d6f76307fe
glsl_decompiler: Remove HNegate inlining
7 years ago
ReinUsesLisp
027f443e69
shader_decode: Implement POPC
7 years ago
ReinUsesLisp
55e6786254
shader_decode: Implement TLDS (untested)
7 years ago
ReinUsesLisp
ec98e4d842
shader_decode: Update TLD4 reflecting #1862 changes
7 years ago
ReinUsesLisp
03e088a4f4
shader_ir: Fixup TEX and TEXS and partially fix TLD4 decompiling
7 years ago
ReinUsesLisp
2d9136cec6
shader_decode: Fixup FSET
7 years ago
ReinUsesLisp
af5c6e4ccb
shader_decode: Implement IADD32I
7 years ago
ReinUsesLisp
4316eaf75c
shader_decode: Fixup clang-format
7 years ago