ReinUsesLisp
2a94d36231
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
b12f08a7f7
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
4addab6160
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
a7de39a6ba
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
980ea9cfb1
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
93c7b4aa86
video_core: Silent implicit conversion warning
7 years ago
bunnei
674ebdda6a
frontend: Refactor ScopeAcquireWindowContext out of renderer_opengl.
7 years ago
ReinUsesLisp
fdb76f6147
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
059ece9d03
Rename step 1 and step 2 to be a little more descriptive
7 years ago
James Rowe
a923e54655
QT: Upgrade the Loading Bar to look much better
7 years ago
ReinUsesLisp
189c792193
gl_rasterizer: Silent unsafe mix warning
7 years ago
ReinUsesLisp
c5c75bc21a
shader_ir: Fixup clang build
7 years ago
ReinUsesLisp
4388b8cee0
gl_shader_decompiler: replace std::get<> with std::get_if<> for macOS compatibility
7 years ago
ReinUsesLisp
ddbc441989
gl_shader_decompiler: Inline textureGather component
7 years ago
ReinUsesLisp
53c06f089d
shader_decode: Fixup XMAD
7 years ago
ReinUsesLisp
1be12d5819
shader_ir: Pass to decoder functions basic block's code
7 years ago
ReinUsesLisp
719c83a4c2
shader_decode: Improve zero flag implementation
7 years ago
ReinUsesLisp
c75f5c634a
shader_ir: Remove composite primitives and use temporals instead
7 years ago
ReinUsesLisp
960b0f653a
gl_shader_decompiler: Fixup AssignCompositeHalf
7 years ago
ReinUsesLisp
92610e9705
shader_decode: Use proper primitive names
7 years ago
ReinUsesLisp
44fce20a01
shader_decode: Use BitfieldExtract instead of shift + and
7 years ago
ReinUsesLisp
26d519c0f6
shader_ir: Remove Ipa primitive
7 years ago
ReinUsesLisp
0a9aa9f8db
gl_shader_decompiler: Use rasterizer's UBO size limit
7 years ago
ReinUsesLisp
16dee3d290
gl_shader_gen: Fixup code formatting
7 years ago
ReinUsesLisp
685996eabb
video_core: Rename glsl_decompiler to gl_shader_decompiler
7 years ago
ReinUsesLisp
8df3fb8b1e
shader_ir: Remove RZ and use Register::ZeroIndex instead
7 years ago
ReinUsesLisp
35724f3435
shader_decode: Implement TEXS.F16
7 years ago
ReinUsesLisp
afa9967c4a
shader_decode: Fixup R2P
7 years ago
ReinUsesLisp
be9d40cf0d
glsl_decompiler: Fixup TLDS
7 years ago
ReinUsesLisp
d08982ed56
glsl_decompiler: Fixup geometry shaders
7 years ago
ReinUsesLisp
a90860a63a
shader_decode: Fixup WriteLogicOperation zero comparison
7 years ago
ReinUsesLisp
afbbc154d0
glsl_decompiler: Fixup permissive member function declarations
7 years ago
ReinUsesLisp
1314fd5277
shader_decode: Fixup PSET
7 years ago
ReinUsesLisp
495fbb2096
shader_decode: Fixup clang-format
7 years ago
ReinUsesLisp
0b1a2a74b6
video_core: Implement IR based geometry shaders
7 years ago
ReinUsesLisp
095b8f822b
shader_decode: Implement VMAD and VSETP
7 years ago
ReinUsesLisp
a71ce91f9b
shader_decode: Implement HSET2
7 years ago
ReinUsesLisp
5896358e4a
shader_decode: Rework HSETP2
7 years ago
ReinUsesLisp
e0971b5f9c
shader_decode: Implement R2P
7 years ago
ReinUsesLisp
8f2327d84b
shader_decode: Implement CSETP
7 years ago
ReinUsesLisp
da25db6829
shader_decode: Implement PSET
7 years ago
ReinUsesLisp
54bffa5381
shader_decode: Implement HFMA2
7 years ago
ReinUsesLisp
17b2a1d2b0
glsl_decompiler: Remove HNegate inlining
7 years ago
ReinUsesLisp
9cf3fe7511
shader_decode: Implement POPC
7 years ago
ReinUsesLisp
43dffc4afc
shader_decode: Implement TLDS (untested)
7 years ago
ReinUsesLisp
8e4e4c60cd
shader_decode: Update TLD4 reflecting #1862 changes
7 years ago
ReinUsesLisp
fb53e79b7f
shader_ir: Fixup TEX and TEXS and partially fix TLD4 decompiling
7 years ago
ReinUsesLisp
8664c00a2e
shader_decode: Fixup FSET
7 years ago
ReinUsesLisp
bdfa3b5fe9
shader_decode: Implement IADD32I
7 years ago
ReinUsesLisp
bcf228b15c
shader_decode: Fixup clang-format
7 years ago