Jannik Vogel
da761012b9
Pica: Implement W-Buffer in SW rasterizer
10 years ago
Lioncash
b6dd73e5c3
vertex_loader: Correct forward declaration of InputVertex
It's actually a struct, not a class.
10 years ago
Lioncash
38eca6b728
vertex_loader: Provide an assertion for ensuring the loader has been setup
Also adds an assert to ensure that Setup is not called more than once
during a VertexLoader's lifetime.
10 years ago
Lioncash
561157d259
vertex_loader: Add constructors to facilitate immediate and two-step initialization
10 years ago
Lioncash
9f536396ad
vertex_loader: initialize_num_total_attributes.
Keeps the public API sane.
10 years ago
Lioncash
a20ffc0df1
vertex_loader: Use std::array instead of raw C arrays
10 years ago
Lioncash
4633449bfc
vertex_loader: Correct header ordering
10 years ago
Alexander Laties
17e9bc5392
fixup simple type conversions where possible
10 years ago
Emmanuel Gil Peyrot
f20454b97c
Frontends, VideoCore: Move glad initialisation to the frontend
On SDL2 this allows it to use SDL_GL_GetProcAddress() instead of the
default function loader, and fixes a crash when using apitrace with an
EGL context.
On Qt we will need to migrate from QGLWidget to QOpenGLWidget and
QOpenGLContext before we can use gladLoadGLLoader() instead of
gladLoadGL(), since the former doesn’t expose a function loader.
10 years ago
Jannik Vogel
db061e0568
Pica: Rename VertexLoaded breakpoint to VertexShaderInvocation
10 years ago
Jannik Vogel
b360295880
Pica: Use a union for PicaShaderConfig
10 years ago
Jannik Vogel
9936dc107f
Pica: Add TevStageConfigRaw to PicaShaderConfig (MSVC workaround)
10 years ago
Jannik Vogel
386604cd07
Pica: Make PicaShaderConfig trivially_copyable and clear it before use
10 years ago
Jannik Vogel
8f354eb8a7
OpenGL: Don't copy const_color (Reverts #1745 )
10 years ago
Jannik Vogel
22426f3e89
Pica: Replace logic in shader.cpp with loop
10 years ago
Jannik Vogel
71ec65341b
OpenGL: Copy TevStageConfig using a loop. Fixes bug: const_color not copied
10 years ago
Jannik Vogel
03a243469b
OpenGL: border_color was never set. Fixed. ( #1740 )
10 years ago
Emmanuel Gil Peyrot
c39a267974
VideoCore: Run include-what-you-use and fix most includes.
10 years ago
Jannik Vogel
9d522e8441
Remove TGA dumper
10 years ago
Yuri Kunde Schlesner
2396b01d5d
Common: Remove section measurement from profiler ( #1731 )
This has been entirely superseded by MicroProfile. The rest of the code
can go when a simpler frametime/FPS meter is added to the GUI.
10 years ago
Henrik Rydgard
9f1cffa3e9
Move and rename the MemoryAccesses class to MemoryAccessTracker.
10 years ago
Henrik Rydgard
0a3b4b8cb4
Debugger fix
10 years ago
Henrik Rydgard
b9da0f7902
Optimize the vertex loader, nearly doubling its speed.
10 years ago
Henrik Rydgard
b57bcfd528
Don't keep base_address in the loader, it doesn't belong there (with it, the loader can't be cached).
10 years ago
Henrik Rydgard
ec770c0bbf
Move "&" to their proper place, add missing includes and make some properly relative.
10 years ago
Henrik Rydgard
c1ee661492
Refactor: Extract VertexLoader from command_processor.cpp.
Preparation for a similar concept to Dolphin or PPSSPP. These can be JIT-ed and cached.
10 years ago
Henrik Rydgard
03f90e7dfd
Remove late accesses to attribute_config
10 years ago
Sam Spilsbury
48693e98fa
shader: Shader size is long uint, not uint.
10 years ago
Sam Spilsbury
164d297c6f
shader: Handle non-CALL opcodes with a break
10 years ago
Sam Spilsbury
3d9c27ec5f
shader: Format string must be provided inline and not as a variable
10 years ago
Henrik Rydgard
76a55f83c7
Replace std::map with std::array for graphics event breakpoints, and allow the compiler to inline. Saves 1%+ in vertex heavy situations.
10 years ago
Sam Spilsbury
79efd312a9
pica: Handle default lighting case
10 years ago
tfarley
bd5a278e47
HWRasterizer: reorder declarations to match defs
10 years ago
tfarley
2680bd4062
HWRasterizer: sync specular uniform for new shaders
10 years ago
tfarley
459035a108
HWRasterizer: Texture forwarding
10 years ago
tfarley
621cf30b24
Config: Add scaled resolution option
10 years ago
Jannik Vogel
c52ea04cf5
Rasterizer: Allow all blend factors for alpha blend-func
10 years ago
Lioncash
c8c5cde430
debug_utils: use std::make_unique for initializing PicaTrace
10 years ago
bunnei
42045d12c2
shader_jit_x64: Rename RuntimeAssert to Compile_Assert.
10 years ago
bunnei
73c082b647
shader_jit_x64.cpp: Rename JitCompiler to JitShader.
10 years ago
bunnei
76f9651a3a
shader_jit_x64: Free memory that's no longer needed after compilation.
10 years ago
bunnei
b6e8a9e52c
shader_jit_x64: Use a sorted vector instead of a set for keeping track of return addresses.
10 years ago
bunnei
276e57fea6
shader_jit_x64: Use CALL/RET instead of JMP for subroutines.
10 years ago
bunnei
0f9796a63e
shader_jit_x64: Separate initialization and code generation for readability.
10 years ago
bunnei
aec7a517ea
shader_jit_x64: Get rid of unnecessary last_program_counter variable.
10 years ago
bunnei
5e6c1ccac7
shader_jit_x64: Execute certain asserts at runtime.
- This is because we compile the full shader code space, and therefore its common to compile malformed instructions.
10 years ago
bunnei
110725828a
shader: Remove unused 'state' argument from 'Setup' function.
10 years ago
bunnei
885208150d
shader_jit_x64: Specify shader main offset at runtime.
10 years ago
bunnei
13385606c3
shader_jit_x64: Allocate each program independently and persist for emu session.
10 years ago
bunnei
35f72f88ae
shader_jit_x64: Rewrite flow control to support arbitrary CALL and JMP instructions.
10 years ago