Fernando Sahmkow
527b841c15
Shader_IR: ICMP corrections and fixes
6 years ago
David Marcec
01a4afee42
Mark DrawArrays as LOG_TRACE
There's no reason to clog logs with DrawArray.
6 years ago
Fernando Sahmkow
433e764bb0
Rasterizer: Correct introduced bug where a conditional render wouldn't stop a draw call from executing
6 years ago
Fernando Sahmkow
4b81d19a1a
Shader_IR: Implement ICMP.
6 years ago
Fernando Sahmkow
7761e44d18
Rasterizer: Refactor and simplify DrawBatch Interface.
6 years ago
Fernando Sahmkow
d2ea592ddb
Rasterizer: Address Feedback and conscerns.
6 years ago
Fernando Sahmkow
c17655ce74
Rasterizer: Refactor draw calls, remove deadcode and clean up.
6 years ago
Fernando Sahmkow
7606da5611
VideoCore: Corrections to the MME Inliner and removal of hacky instance management.
6 years ago
Fernando Sahmkow
ba02d564f8
Video Core: initial Implementation of InstanceDraw Packaging
6 years ago
ReinUsesLisp
0526bf1895
shader_ir/warp: Implement SHFL
6 years ago
ReinUsesLisp
2dd6411753
maxwell_to_gl: Fix mipmap filtering
OpenGL texture filters follow GL_<texture_filter>_MIPMAP_<mipmap_filter>
but we were using them in the opposite way.
6 years ago
ReinUsesLisp
af809b491e
gl_rasterizer: Remove unused code paths from ConfigureFramebuffers
6 years ago
Rodrigo Locatti
193bfefce4
maxwell_3d: Update firmware 4 call stub commentary
6 years ago
ReinUsesLisp
01d96e1136
vk_device: Add miscellaneous features and minor style changes
* Increase minimum Vulkan requirements
* Require VK_EXT_vertex_attribute_divisor
* Require depthClamp, samplerAnisotropy and largePoints features
* Search and expose VK_KHR_uniform_buffer_standard_layout
* Search and expose VK_EXT_index_type_uint8
* Search and expose native float16 arithmetics
* Track current driver with VK_KHR_driver_properties
* Query and expose SSBO alignment
* Query more image formats
* Improve logging overall
* Minor style changes
* Minor rephrasing of commentaries
6 years ago
ReinUsesLisp
99e23bd0fd
video_core/surface: Add function to detect sRGB surfaces
This is required for proper conversion to RGBA8_UNORM or RGBA8_SRGB
surfaces when a backend can target both native and converted ASTC.
6 years ago
ReinUsesLisp
6b997c8f7f
renderer_opengl: Fix rebase mistake
6 years ago
ReinUsesLisp
36abf67e79
shader/image: Implement SUATOM and fix SUST
7 years ago
Fernando Sahmkow
e60d281a01
gl_rasterizer: Correct sRGB Fix regression
6 years ago
ReinUsesLisp
78574746bd
renderer_opengl: Fix sRGB blits
Removes the sRGB hack of tracking if a frame used an sRGB rendertarget
to apply at least once to blit the final texture as sRGB. Instead of
doing this apply sRGB if the presented image has sRGB.
Also enable sRGB by default on Maxwell3D registers as some games seem to
assume this.
6 years ago
ReinUsesLisp
17a9b0178d
gl_shader_decompiler: Avoid writing output attribute when unimplemented
6 years ago
ReinUsesLisp
1f43e5296f
gl_shader_decompiler: Keep track of written images and mark them as modified
6 years ago
ReinUsesLisp
7228e22098
texture_cache: Minor changes
6 years ago
ReinUsesLisp
322d0200c8
gl_rasterizer: Apply textures and images state
7 years ago
ReinUsesLisp
80ec2feee8
gl_rasterizer: Add samplers to compute dispatches
7 years ago
ReinUsesLisp
954fc02fdd
gl_rasterizer: Minor code changes
7 years ago
ReinUsesLisp
04cdecb7a1
gl_state: Split textures and samplers into two arrays
7 years ago
ReinUsesLisp
6170337001
gl_rasterizer: Implement image bindings
7 years ago
ReinUsesLisp
5edf24b510
gl_state: Add support for glBindImageTextures
7 years ago
ReinUsesLisp
2424eefad2
texture_cache: Pass TIC to texture cache
7 years ago
ReinUsesLisp
3a450c1395
kepler_compute: Implement texture queries
7 years ago
ReinUsesLisp
2e5b5c2358
gl_rasterizer: Split SetupTextures
7 years ago
ReinUsesLisp
0f7b813d65
gl_shader_decompiler: Implement shared memory
6 years ago
ReinUsesLisp
4de04eba39
shader_ir: Implement LD_S
Loads from shared memory.
7 years ago
ReinUsesLisp
f17415d431
shader_ir: Implement ST_S
This instruction writes to a memory buffer shared with threads within
the same work group. It is known as "shared" memory in GLSL.
7 years ago
ReinUsesLisp
6177cbdbe1
gl_shader_decompiler: Fixup slow path
6 years ago
ReinUsesLisp
7bbc98cfc3
gl_rasterizer: Fix stencil testing
* Fix stencil dirty flags tracking when stencil is disabled
* Attach stencil on clears (previously it only attached depth)
* Attach stencil on drawing regardless of stencil testing being enabled
6 years ago
ReinUsesLisp
5f309b88db
Revert "Revert #2466" and stub FirmwareCall 4
6 years ago
ReinUsesLisp
77ef4fa907
shader/shift: Implement SHR wrapped and clamped variants
Nvidia defaults to wrapped shifts, but this is undefined behaviour on
OpenGL's spec. Explicitly mask/clamp according to what the guest shader
requires.
6 years ago
ReinUsesLisp
701dedcfad
maxwell_3d: Avoid moving macro_params
6 years ago
ReinUsesLisp
42e1bb6d46
gl_shader_cache: Remove special casing for geometry shaders
Now that ProgramVariants holds the primitive topology we no longer need
to keep track of individual geometry shaders topologies.
6 years ago
ReinUsesLisp
dfae2d141a
half_set_predicate: Fix predicate assignments
6 years ago
ReinUsesLisp
9cf52d027d
gl_device: Disable precise in fragment shaders on bugged drivers
6 years ago
ReinUsesLisp
03276e7490
gl_shader_decompiler: Fixup AMD's slow path type
6 years ago
ReinUsesLisp
6c449793b8
gl_shader_decompiler: Rework GLSL decompiler type system
GLSL decompiler type system was broken. We converted all return values
to float except for some cases where returning we couldn't and
implicitly broke the rule of returning floats (e.g. for bools or bool
pairs).
Instead of doing this introduce class Expression that knows what type a
return value has and when a consumer wants to use the string it asks for
it with a required type, emitting a runtime error if types are
incompatible.
This has the disadvantage that there's more C++ code, but we can emit
better GLSL code that's easier to read.
6 years ago
ReinUsesLisp
52a41f482f
maxwell_3d: Fix macro binding cursor
6 years ago
Rodrigo Locatti
4d4f9cc104
video_core: Silent miscellaneous warnings ( #2820 )
* texture_cache/surface_params: Remove unused local variable
* rasterizer_interface: Add missing documentation commentary
* maxwell_dma: Remove unused rasterizer reference
* video_core/gpu: Sort member declaration order to silent -Wreorder warning
* fermi_2d: Remove unused MemoryManager reference
* video_core: Silent unused variable warnings
* buffer_cache: Silent -Wreorder warnings
* kepler_memory: Remove unused MemoryManager reference
* gl_texture_cache: Add missing override
* buffer_cache: Add missing include
* shader/decode: Remove unused variables
6 years ago
ReinUsesLisp
878adee0a3
gl_buffer_cache: Add missing include
RasterizerInterface was considered an incomplete object by clang.
6 years ago
ReinUsesLisp
e3534700d7
shader_ir/conversion: Split int and float selector and implement F2F H1
6 years ago
ReinUsesLisp
b13fbc25b8
shader_ir/conversion: Implement F2I F16 Ra.H1
6 years ago
ReinUsesLisp
6207751b00
float_set_predicate: Add missing negation bit for the second operand
6 years ago