ReinUsesLisp
a0be7b3b92
gl_rasterizer: Encapsulate sampler queries into methods
7 years ago
ReinUsesLisp
6ee0ba64c8
gl_rasterizer: Minor logger changes
7 years ago
ReinUsesLisp
e7ac5a6adf
dma_pusher: Store command_list_header by copy
Instead of holding a reference that will get invalidated by
dma_pushbuffer.pop(), hold it as a copy. This doesn't have any
performance cost since CommandListHeader is 8 bytes long.
7 years ago
Lioncash
c2d4c8b95e
video_core/gpu_thread: Remove unimplemented WaitForIdle function prototype
This function didn't have a definition, so we can remove it to prevent
accidentally attempting to use it.
7 years ago
Lioncash
48a461a629
video_core/gpu_thread: Amend constructor initializer list order
Moves the data members to satisfy the order they're declared as in the
constructor initializer list.
Silences a -Wreorder warning.
7 years ago
Lioncash
24e2e601d5
video_core/gpu: Make GPU's destructor virtual
Because of the recent separation of GPU functionality into sync/async
variants, we need to mark the destructor virtual to provide proper
destruction behavior, given we use the base class within the System
class.
Prior to this, it was undefined behavior whether or not the destructor
in the derived classes would ever execute.
7 years ago
bunnei
84ad81ee67
gpu_thread: Fix deadlock with threading idle state check.
7 years ago
bunnei
63aa08acbe
gpu_thread: (HACK) Ignore flush on FlushAndInvalidateRegion.
7 years ago
bunnei
3f1b4fb23a
gpu: Always flush.
7 years ago
bunnei
aaa373585c
gpu: Refactor a/synchronous implementations into their own classes.
7 years ago
bunnei
7b574f406b
gpu: Move command processing to another thread.
7 years ago
bunnei
ac51d048a9
gpu: Refactor command and swap buffers interface for asynch.
7 years ago
bunnei
4483089d70
gpu: Refactor to take RendererBase instead of RasterizerInterface.
7 years ago
Lioncash
f9ee0dc7ee
video_core/engines: Remove unnecessary includes
Removes a few unnecessary dependencies on core-related machinery, such
as the core.h and memory.h, which reduces the amount of rebuilding
necessary if those files change.
This also uncovered some indirect dependencies within other source
files. This also fixes those.
7 years ago
Lioncash
42085ff110
video_core/surface: Remove obsolete TODO in PixelFormatFromRenderTargetFormat()
This isn't needed anymore, according to Hexagon
7 years ago
Lioncash
90febaf717
video_core/renderer_opengl: Replace direct usage of global system object accessors
We already pass a reference to the system object to the constructor of the renderer,
so we can just use that instead of using the global accessor functions.
7 years ago
ReinUsesLisp
1f6571b3de
maxwell_to_vk: Initial implementation
7 years ago
ReinUsesLisp
8e84e81e74
vk_buffer_cache: Fix clang-format
7 years ago
bunnei
ab70c2583d
fuck git for ruining my day, I will learn but I will not forgive
7 years ago
ReinUsesLisp
35c105a108
vk_buffer_cache: Implement a buffer cache
This buffer cache is just like OpenGL's buffer cache with some minor
style changes. It uses VKStreamBuffer.
7 years ago
ReinUsesLisp
e85066dac7
gl_rasterizer: Remove texture unbinding after dispatching a draw call
Unbinding was required when OpenGL delete operations didn't unbind a
resource if it was bound. This is no longer needed and can be removed.
7 years ago
ReinUsesLisp
bb3ab7d66c
gl_state: Fixup multibind bug
7 years ago
Fernando Sahmkow
7ea097e5c2
Devirtualize Register/Unregister and use a wrapper instead.
7 years ago
Fernando Sahmkow
5a9204dbd7
Corrections and redesign.
7 years ago
Fernando Sahmkow
d6b9b51606
Fix linux compile error.
7 years ago
Fernando Sahmkow
e64fa4d2ea
Remove NotifyFrameBuffer as we are doing a texception pass every drawcall.
7 years ago
Fernando Sahmkow
3558c88442
Remove certain optimizations that caused texception to fail in certain scenarios.
7 years ago
Fernando Sahmkow
e9d84ef22c
Bug fixes and formatting
7 years ago
Fernando Sahmkow
5bc82d124c
rasterizer_cache_gl: Implement Texception Pass
7 years ago
Fernando Sahmkow
8932001610
rasterizer_cache_gl: Implement Partial Reinterpretation of Surfaces.
7 years ago
Fernando Sahmkow
44ea2810e4
rasterizer_cache: mark reinterpreted surfaces and add ability to reload marked surfaces on next use.
7 years ago
Fernando Sahmkow
d583fc1e97
rasterizer_cache_gl: Notify on framebuffer change
7 years ago
Fernando Sahmkow
45b6d2d349
rasterizer_cache: Expose FlushObject to Child classes and allow redefining of Register and Unregister
7 years ago
ReinUsesLisp
27ddbeb01c
gl_rasterizer_cache: Create texture views for array discrepancies
When a texture is sampled in a shader with a different array mode than
the cached state, create a texture view and bind that to the shader
instead.
7 years ago
Lioncash
16ea93c11e
vk_memory_manager: Reorder constructor initializer list in terms of member declaration order
Reorders members in the order that they would actually be initialized
in. Silences a -Wreorder warning.
7 years ago
Lioncash
a6a783b3dc
gl_rasterizer: Reorder constructor initializer list in terms of member declaration order
Orders the members in the order they would actually be initialized in.
Silences a -Wreorder warning.
7 years ago
Lioncash
e7eff72e83
gl_shader_disk_cache: Remove #pragma once from cpp file
This is only necessary in headers. Silences a warning with clang.
7 years ago
Lioncash
b9238edd0d
common/math_util: Move contents into the Common namespace
These types are within the common library, so they should be within the
Common namespace.
7 years ago
ReinUsesLisp
0ad3c031f4
gl_rasterizer_cache: Move format conversion to its own file
7 years ago
ReinUsesLisp
0ccd490fcd
decoders: Minor style changes
7 years ago
ReinUsesLisp
d91e35a50a
renderer_opengl: Update pixel format tracking
7 years ago
ReinUsesLisp
5219edd715
maxwell_3d: Use std::bitset to manage dirty flags
7 years ago
ReinUsesLisp
730eb1dad7
vk_stream_buffer: Remove copy code path
7 years ago
ReinUsesLisp
5ca63d0675
shader/decode: Remove extras from MetaTexture
7 years ago
ReinUsesLisp
48e6f77c03
shader/decode: Split memory and texture instructions decoding
7 years ago
Lioncash
c1b2e35625
shader/track: Resolve variable shadowing warnings
7 years ago
ReinUsesLisp
33a0597603
vk_stream_buffer: Implement a stream buffer
This manages two kinds of streaming buffers: one for unified memory
models and one for dedicated GPUs. The first one skips the copy from the
staging buffer to the real buffer, since it creates an unified buffer.
This implementation waits for all fences to finish their operation
before "invalidating". This is suboptimal since it should allocate
another buffer or start searching from the beginning. There is room for
improvement here.
This could also handle AMD's "pinned" memory (a heap with 256 MiB) that
seems to be designed for buffer streaming.
7 years ago
ReinUsesLisp
281a8bf259
vk_resource_manager: Minor VKFenceWatch changes
7 years ago
ReinUsesLisp
92050c4d86
vk_memory_manager: Fixup commit interval allocation
VKMemoryCommitImpl was using as the end of its interval "begin + end".
That ended up wasting memory.
7 years ago
ReinUsesLisp
abef11a540
gl_rasterizer_cache: Fixup parameter order in layered swizzle
7 years ago