ReinUsesLisp
8536bb5cfe
gl_rasterizer_cache: Use GL_STREAM_COPY for PBOs
Since the data is doing the path CPU -> GPU -> GPU copy is the most
approximate hint. Using GL_STREAM_DRAW generated a performance warning
on Nvidia's stack. Changing this hint removed the warning.
7 years ago
ReinUsesLisp
dec2113a73
gl_rasterizer_cache: Texture view if shader samples array but OGL is not
When a shader samples a texture array but that texture in OpenGL is
created without layers, use a texture view to increase the texture
hierarchy. For example, instead of binding a GL_TEXTURE_2D bind a
GL_TEXTURE_2D_ARRAY view.
7 years ago
bunnei
82662f374a
gpu: Remove PixelFormat G8R8U and G8R8S, as they do not seem to exist.
- Fixes UI rendering issues in The Legend of Zelda: Breath of the Wild.
7 years ago
Rodolfo Bogado
aa86cd851e
Add missing uintBitsToFloat to SetRegisterToHalfFloat
7 years ago
Lioncash
21dec95072
renderer_opengl: Correct forward declaration of FramebufferLayout
This is actually a struct, not a class, which can lead to compilation
warnings.
7 years ago
Rodolfo Bogado
50a48fe118
Apply CC test to the final value to be stored in the register
7 years ago
David
615a0df6b6
Fixed shader linking error due to TLDS ( #1934 )
* Fixed shader linking error due to TLDS
coord should be coords
* Fix remaining coords
7 years ago
ReinUsesLisp
a04b5e9a42
shader_bytecode: Fixup TEXS.F16 encoding
7 years ago
Rodolfo Bogado
6ef7d94656
Includde saturation in the evaluation of the control code
7 years ago
Rodolfo Bogado
fd77c416fd
Handle RZ cases evaluating the expression instead of the register value.
7 years ago
Rodolfo Bogado
0ebab7e4c6
complete emulation of ZeroFlag
7 years ago
David Marcec
4568a12f6d
hopefully fix clang format issue
7 years ago
David Marcec
1dfb0a513a
Fixed uninitialized memory due to missing returns in canary
Functions which are suppose to crash on non canary builds usually don't return anything which lead to uninitialized memory being used.
7 years ago
zhupengfei
2dbb90ed65
yuzu, video_core: Screenshot functionality
Allows capturing screenshot at the current internal resolution (native for software renderer), but a setting is available to capture it in other resolutions. The screenshot is saved to a single PNG in the current layout.
7 years ago
heapo
aee93ff8cf
Texture format fixes: Flag RGBA16UI as GL_RGBA_INTEGER format, and interpret R16U as Z16 when depth_compare is enabled.
7 years ago
ReinUsesLisp
40f57b087c
shader_bytecode: Fixup half float's operator B encoding
7 years ago
heapo
63c820c8b1
Implement postfactor multiplication/division for fmul instructions
7 years ago
heapo
a2df3bdd64
Fix arrayed shadow sampler array slice/depth comparison ordering, as well as invalid GLSL LOD selection.
7 years ago
Lioncash
6bdc98b5c8
gl_shader_cache: Dehardcode constant in CalculateProgramSize()
This constant is related to the size of the instruction.
7 years ago
Lioncash
df8d7cfc90
gl_shader_cache: Resolve truncation compiler warning
The previous code would cause a warning, as it was truncating size_t
(64-bit) to a u32 (32-bit) implicitly.
7 years ago
Marcos Vitali
4f59d874d8
gl_shader_decompiler: IPA FrontFacing: the right value when is the front face is 0xFFFFFFFF.
7 years ago
Fernando Sahmkow
1f1cc896d3
Implemented a shader unique identifier.
7 years ago
FernandoS27
a40a8e1603
Add more info into textures' object labels
7 years ago
Marcos Vitali
89a288d7ce
gl_shader_decompiler: TLDS/TLD4/TLD4S Reworked reflecting the source registers, bugs fixed and modularize.
7 years ago
ReinUsesLisp
e228750f52
gl_shader_decompiler: Implement TEXS.F16
7 years ago
ReinUsesLisp
ad7a069b65
gl_shader_decompiler: Fixup inverted if
7 years ago
heapo
5c8f2009bb
Improve msvc codegen for hot-path array LUTs
In some constexpr functions, msvc is building the LUT at runtime
(pushing each element onto the stack) out of an abundance of caution. Moving the
arrays into be file-scoped constexpr's avoids this and turns the functions into
simple look-ups as intended.
7 years ago
Marcos
aa575cfea9
Rewrited TEX/TEXS (TEX Scalar). ( #1826 )
* Rewrited TEX/TEXS (TEX Scalar).
* Style fixes.
* Styles issues.
7 years ago
Subv
7d6721e3ae
Removed unused file.
This is a leftover from #1792
7 years ago
Subv
a052151664
GPU: Don't try to route PFIFO methods (0-0x40) to the other engines.
7 years ago
Lioncash
cd9570ce0d
Fix debug build
A non-existent parameter was left in some formatting calls (the logging
macro for which only does anything meaningful on debug builds)
7 years ago
bunnei
96dc19dfa0
gl_rasterizer_cache: Update AccurateCopySurface to flush complete source surface.
- Fixes issues with Breath of the Wild with use_accurate_gpu_emulation setting.
7 years ago
ReinUsesLisp
5861ae801a
gl_rasterizer: Enable clip distances when set in register and in shader
7 years ago
ReinUsesLisp
8ad9ec20fc
gl_rasterizer: Implement a framebuffer cache
7 years ago
ReinUsesLisp
95bdbe4ba6
gl_shader_manager: Update pipeline when programs have changed
7 years ago
bunnei
adf5b142d1
gl_rasterizer_cache: Remove BlitSurface and replace with more accurate copy.
- BlitSurface with different texture targets is inherently broken.
- When target is the same, we can just use FastCopySurface.
- Fixes rendering issues with Breath of the Wild.
7 years ago
ReinUsesLisp
af86f71874
gl_shader_decompiler: Remove texture temporal in TLD4
7 years ago
ReinUsesLisp
c63ad999e3
gl_shader_decompiler: Flip negated if else statement
7 years ago
ReinUsesLisp
b9a713ec1f
gl_shader_decompiler: Use GLSL scope on instructions unrelated to textures
7 years ago
ReinUsesLisp
1fde852168
gl_shader_decompiler: Move texture code generation into lambdas
7 years ago
ReinUsesLisp
e3149ce341
gl_shader_decompiler: Clean up texture instructions
7 years ago
ReinUsesLisp
e5e98bb15c
gl_shader_decompiler: Scope GLSL variables with a scoped object
7 years ago
ReinUsesLisp
5aa6a6e0d0
gl_rasterizer: Signal UNIMPLEMENTED when rt_separate_frag_data is not zero
7 years ago
ReinUsesLisp
e62bacf3d2
gl_rasterizer_cache: Use brackets for two-line single-expresion blocks
7 years ago
ReinUsesLisp
a923c7cda5
gl_rasterizer: Remove unused struct declarations
7 years ago
ReinUsesLisp
c6223f0a9e
gl_rasterizer: Remove extension booleans
7 years ago
bunnei
a86364480f
dma_pushbuffer: Optimize to avoid loop and copy on Push.
7 years ago
bunnei
9266f76fb2
gpu: Move command list profiling to DmaPusher::DispatchCalls.
7 years ago
ReinUsesLisp
f8cedc97d9
gl_shader_decompiler: Fixup clip distance index
7 years ago
Markus Wick
9a633ce5aa
gl_rasterizer: Fixup for #1723 .
On invalidating the streaming buffer, we need to reupload all vertex buffers.
But we don't need to reconfigure the vertex format.
This was a (silly) misstake in #1723 .
Thanks at Rodrigo for discovering the issue.
Fun fact, as configuring the vertex format also invalidate the vertex buffer,
this misstake had no affect on the behavior.
7 years ago