ReinUsesLisp
1fc1607e10
video_core/texture: Add a raw representation of TSCEntry
7 years ago
ReinUsesLisp
d949475417
gl_rasterizer: Encapsulate sampler queries into methods
7 years ago
ReinUsesLisp
75fa32b772
gl_rasterizer: Minor logger changes
7 years ago
ReinUsesLisp
81ff2a51ad
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
8e1dbd7c45
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
6f95564b38
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
bd263e75cc
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
01e509662d
gpu_thread: Fix deadlock with threading idle state check.
7 years ago
bunnei
4633fda5be
gpu_thread: (HACK) Ignore flush on FlushAndInvalidateRegion.
7 years ago
bunnei
fbcb9e6815
gpu: Always flush.
7 years ago
bunnei
83079031b3
gpu: Refactor a/synchronous implementations into their own classes.
7 years ago
bunnei
9d1ee628b2
gpu: Move command processing to another thread.
7 years ago
bunnei
edf09ff450
gpu: Refactor command and swap buffers interface for asynch.
7 years ago
bunnei
1e27162275
gpu: Refactor to take RendererBase instead of RasterizerInterface.
7 years ago
Lioncash
f596ce7887
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
e45b6f69ea
video_core/surface: Remove obsolete TODO in PixelFormatFromRenderTargetFormat()
This isn't needed anymore, according to Hexagon
7 years ago
Lioncash
7c12a4035e
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
6bd70e39c5
maxwell_to_vk: Initial implementation
7 years ago
ReinUsesLisp
4da24b3629
vk_buffer_cache: Fix clang-format
7 years ago
bunnei
2695a15e47
fuck git for ruining my day, I will learn but I will not forgive
7 years ago
ReinUsesLisp
d376a3fd11
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
c97a3d0eb4
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
6c8e8383af
gl_state: Fixup multibind bug
7 years ago
Fernando Sahmkow
6c290d747b
Devirtualize Register/Unregister and use a wrapper instead.
7 years ago
Fernando Sahmkow
5a6f9f7cd7
Corrections and redesign.
7 years ago
Fernando Sahmkow
e690d9e961
Fix linux compile error.
7 years ago
Fernando Sahmkow
b7678a6f39
Remove NotifyFrameBuffer as we are doing a texception pass every drawcall.
7 years ago
Fernando Sahmkow
27cad95c5b
Remove certain optimizations that caused texception to fail in certain scenarios.
7 years ago
Fernando Sahmkow
d9ca40fa90
Bug fixes and formatting
7 years ago
Fernando Sahmkow
3cb88587ea
rasterizer_cache_gl: Implement Texception Pass
7 years ago
Fernando Sahmkow
263c936e40
rasterizer_cache_gl: Implement Partial Reinterpretation of Surfaces.
7 years ago
Fernando Sahmkow
0c640275fa
rasterizer_cache: mark reinterpreted surfaces and add ability to reload marked surfaces on next use.
7 years ago
Fernando Sahmkow
785d97ac41
rasterizer_cache_gl: Notify on framebuffer change
7 years ago
Fernando Sahmkow
25d0fe7875
rasterizer_cache: Expose FlushObject to Child classes and allow redefining of Register and Unregister
7 years ago
ReinUsesLisp
cd0f137b61
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
3f0ed32450
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
4f0c52ce0b
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
2218f0e4ef
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
e59ae7210a
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
3989075e5f
gl_rasterizer_cache: Move format conversion to its own file
7 years ago
ReinUsesLisp
64612bf940
decoders: Minor style changes
7 years ago
ReinUsesLisp
87634bbdee
renderer_opengl: Update pixel format tracking
7 years ago
ReinUsesLisp
20d8c304f2
maxwell_3d: Use std::bitset to manage dirty flags
7 years ago
ReinUsesLisp
ef4cf27e2a
vk_stream_buffer: Remove copy code path
7 years ago
ReinUsesLisp
3b01587ca4
shader/decode: Remove extras from MetaTexture
7 years ago
ReinUsesLisp
8a7efd22ec
shader/decode: Split memory and texture instructions decoding
7 years ago
Lioncash
3e82ac10a5
shader/track: Resolve variable shadowing warnings
7 years ago
ReinUsesLisp
6f1b4741e9
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
901a4d6940
vk_resource_manager: Minor VKFenceWatch changes
7 years ago
ReinUsesLisp
4c44c72733
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