yzct12345
e80323b8b0
texture_cache: Address ameerj's review
5 years ago
yzct12345
02e98f6c93
texture_cache: Don't change copyright year
5 years ago
yzct12345
5566f3dbc0
texture_cache: Address ameerj's review
5 years ago
yzct12345
f9563c8f24
texture_cache: Split templates out
5 years ago
ameerj
c439fc9be9
astc_decoder: Reduce workgroup size
This reduces the amount of over dispatching when there are odd dimensions (i.e. ASTC 8x5), which rarely evenly divide into 32x32.
5 years ago
ameerj
5ab8053511
astc_decoder: Compute offset swizzles in-shader
Alleviates the dependency on the swizzle table and a uniform which is constant for all ASTC texture sizes.
5 years ago
ameerj
5665d05547
astc_decoder: Optimize the use EncodingData
This buffer was a list of EncodingData structures sorted by their bit length, with some duplication from the cpu decoder implementation.
We can take advantage of its sorted property to optimize its usage in the shader.
Thanks to wwylele for the optimization idea.
5 years ago
ameerj
7ac99bb127
renderers: Add explicit invert_y bool to screenshot callback
OpenGL and Vulkan images render in different coordinate systems. This allows us to specify the coordinate system of the screenshot within each renderer
5 years ago
Lioncash
075a744e38
gl_shader_cache: Remove unused variable
5 years ago
ameerj
c80ae87b4e
renderer_base: Removed redundant settings
use_framelimiter was not being used internally by the renderers.
set_background_color was always set to true as there is no toggle for the renderer background color, instead users directly choose the color of their choice.
5 years ago
ReinUsesLisp
3c6d440015
Revert "renderers: Disable async shader compilation"
This reverts commit 4a15276728 .
5 years ago
ReinUsesLisp
8381490a04
opengl: Fix asynchronous shaders
Wait for shader to build before configuring it, and wait for the shader
to build before sharing it with other contexts.
5 years ago
ReinUsesLisp
258f35515d
shader_environment: Receive cache version from outside
This allows us invalidating OpenGL and Vulkan separately in the future.
5 years ago
ameerj
56478bc9ac
shader: Fix disabled attribute default values
5 years ago
ameerj
c9528282d9
gl_device: Simplify GLASM setting logic
5 years ago
ReinUsesLisp
e1ed218b41
renderer_opengl: Use ARB_separate_shader_objects
Ensures that states set for a particular stage are not attached to other
stages which may not need them.
5 years ago
ameerj
94af0a00f6
glsl: Clamp shared mem size to GL_MAX_COMPUTE_SHARED_MEMORY_SIZE
5 years ago
ReinUsesLisp
8c166c68d4
gl_shader_cache: Properly implement asynchronous shaders
5 years ago
ameerj
41493fbe89
renderers: Fix clang formatting
5 years ago
ameerj
8390286a89
renderers: Disable async shader compilation
The current implementation is prone to causing graphical issues. Disable until a better solution is implemented.
5 years ago
ameerj
11f04f1022
shader: Ignore global memory ops on devices lacking int64 support
5 years ago
ameerj
dbee32d302
gl_shader_cache: Fixes for async shaders
5 years ago
ReinUsesLisp
8722668b3c
emit_spirv: Workaround VK_KHR_shader_float_controls on fp16 Nvidia
Fix regression on Fire Emblem: Three Houses when using native fp16.
5 years ago
ReinUsesLisp
fba6bd92d4
vk_rasterizer: Workaround bug in VK_EXT_vertex_input_dynamic_state
Workaround potential bug on Nvidia's driver where only updating high
attributes leaves low attributes out dated.
5 years ago
ReinUsesLisp
5643a909bc
shader: Fix disabled and unwritten attributes and varyings
5 years ago
lat9nq
fb9b1787f8
video_core: Enable GL SPIR-V shaders
5 years ago
lat9nq
1152d66ddd
general: Add setting shader_backend
GLASM is getting good enough that we can move it out of advanced
graphics settings. This removes the setting `use_assembly_shaders`,
opting for a enum class `shader_backend`. This comes with the benefits
that it is extensible for additional shader backends besides GLSL and
GLASM, and this will work better with a QComboBox.
Qt removes the related assembly shader setting from the Advanced
Graphics section and places it as a new QComboBox in the API Settings
group. This will replace the Vulkan device selector when OpenGL is
selected.
Additionally, mark all of the custom anisotropic filtering settings as
"WILL BREAK THINGS", as that is the case with a select few games.
5 years ago
ReinUsesLisp
8a3427a4c8
glasm: Add passthrough geometry shader support
5 years ago
ReinUsesLisp
7dafa96ab5
shader: Rework varyings and implement passthrough geometry shaders
Put all varyings into a single std::bitset with helpers to access it.
Implement passthrough geometry shaders using host's.
5 years ago
ReinUsesLisp
395bed3a0a
shader: Unify shader stage types
5 years ago
ReinUsesLisp
fb166b5ff4
shader: Emulate 64-bit integers when not supported
Useful for mobile and Intel Xe devices.
5 years ago
ReinUsesLisp
3877918e96
gl_graphics_pipeline: Fix assembly shaders check for transform feedbacks
5 years ago
ReinUsesLisp
9bd0531384
gl_graphics_pipeline: Inline hash and operator== key functions
5 years ago
ReinUsesLisp
f5db8c7440
gl_shader_cache: Check previous pipeline before checking hash map
Port optimization from Vulkan.
5 years ago
ReinUsesLisp
218dedca1f
gl_graphics_pipeline: Port optimizations from Vulkan pipelines
5 years ago
ameerj
fcff19e0fa
shaders: Allow shader notify when async shaders is disabled
5 years ago
ReinUsesLisp
374eeda1a3
shader: Properly manage attributes not written from previous stages
5 years ago
ReinUsesLisp
0ffea97e2e
shader: Split profile and runtime info headers
5 years ago
ReinUsesLisp
cbbca26d18
shader: Add support for native 16-bit floats
5 years ago
ReinUsesLisp
376aa94819
shader: Rename maxwell/program.h to translate_program.h
5 years ago
ameerj
d36f667bc0
glsl: Address rest of feedback
5 years ago
ameerj
3b339fbbf6
glsl: Conditionally use fine/coarse derivatives based on device support
5 years ago
ameerj
6eea88d614
glsl: Cleanup/Address feedback
5 years ago
ameerj
74f683787e
gl_shader_cache: Implement async shaders
5 years ago
ameerj
5e7b2b9661
glsl: Add stubs for sparse queries and variable aoffi when not supported
5 years ago
ameerj
ff3de0fb6b
gl_shader_cache: Remove const from pipeline source arguments
5 years ago
ameerj
413eb6983f
gl_shader_cache: Move OGL shader compilation to the respective Pipeline constructor
5 years ago
ameerj
e81c73a874
glsl: Address more feedback. Implement indexed texture reads
5 years ago
ameerj
6650c4799d
gl_rasterizer: Add texture fetch barrier for fragments
Fixes flicker seen in XC2
5 years ago
ameerj
8bb8bbf4ae
glsl: Implement fswzadd
and wip nv thread shuffle impl
5 years ago