2018-01-17 18:37:34 -06:00
|
|
|
add_library(video_core STATIC
|
2019-07-19 09:50:40 -05:00
|
|
|
buffer_cache/buffer_block.h
|
|
|
|
buffer_cache/buffer_cache.h
|
|
|
|
buffer_cache/map_interval.h
|
2020-02-20 22:56:00 -06:00
|
|
|
dirty_flags.cpp
|
2019-12-26 19:14:10 -06:00
|
|
|
dirty_flags.h
|
2018-11-23 22:20:56 -06:00
|
|
|
dma_pusher.cpp
|
|
|
|
dma_pusher.h
|
2019-09-23 13:02:02 -05:00
|
|
|
engines/const_buffer_engine_interface.h
|
2019-05-31 15:33:21 -05:00
|
|
|
engines/const_buffer_info.h
|
2019-04-22 17:50:56 -05:00
|
|
|
engines/engine_upload.cpp
|
|
|
|
engines/engine_upload.h
|
2018-02-11 20:34:20 -06:00
|
|
|
engines/fermi_2d.cpp
|
|
|
|
engines/fermi_2d.h
|
2019-01-22 17:49:31 -06:00
|
|
|
engines/kepler_compute.cpp
|
|
|
|
engines/kepler_compute.h
|
2018-09-08 15:58:20 -05:00
|
|
|
engines/kepler_memory.cpp
|
|
|
|
engines/kepler_memory.h
|
2018-02-11 20:34:20 -06:00
|
|
|
engines/maxwell_3d.cpp
|
|
|
|
engines/maxwell_3d.h
|
2018-06-10 17:02:33 -05:00
|
|
|
engines/maxwell_dma.cpp
|
|
|
|
engines/maxwell_dma.h
|
2018-04-04 20:43:40 -05:00
|
|
|
engines/shader_bytecode.h
|
2018-09-10 20:00:55 -05:00
|
|
|
engines/shader_header.h
|
2019-11-18 15:35:21 -06:00
|
|
|
engines/shader_type.h
|
2018-03-18 15:15:05 -05:00
|
|
|
gpu.cpp
|
2018-02-11 22:44:12 -06:00
|
|
|
gpu.h
|
2019-02-08 22:21:53 -06:00
|
|
|
gpu_asynch.cpp
|
|
|
|
gpu_asynch.h
|
|
|
|
gpu_synch.cpp
|
|
|
|
gpu_synch.h
|
2019-01-23 21:17:55 -06:00
|
|
|
gpu_thread.cpp
|
|
|
|
gpu_thread.h
|
2020-01-03 14:16:29 -06:00
|
|
|
guest_driver.cpp
|
|
|
|
guest_driver.h
|
2018-03-28 15:14:47 -05:00
|
|
|
macro_interpreter.cpp
|
|
|
|
macro_interpreter.h
|
2018-02-11 22:44:12 -06:00
|
|
|
memory_manager.cpp
|
|
|
|
memory_manager.h
|
2018-11-24 20:53:17 -06:00
|
|
|
morton.cpp
|
|
|
|
morton.h
|
2020-02-11 13:02:41 -06:00
|
|
|
query_cache.h
|
2019-10-27 01:40:08 -05:00
|
|
|
rasterizer_accelerated.cpp
|
|
|
|
rasterizer_accelerated.h
|
2018-11-07 23:31:35 -06:00
|
|
|
rasterizer_cache.cpp
|
2018-08-23 14:38:57 -05:00
|
|
|
rasterizer_cache.h
|
2018-03-19 22:00:59 -05:00
|
|
|
rasterizer_interface.h
|
2018-01-17 18:37:34 -06:00
|
|
|
renderer_base.cpp
|
|
|
|
renderer_base.h
|
2018-08-28 17:27:03 -05:00
|
|
|
renderer_opengl/gl_buffer_cache.cpp
|
2018-09-06 13:49:49 -05:00
|
|
|
renderer_opengl/gl_buffer_cache.h
|
2019-04-10 13:56:12 -05:00
|
|
|
renderer_opengl/gl_device.cpp
|
|
|
|
renderer_opengl/gl_device.h
|
2019-05-11 01:15:49 -05:00
|
|
|
renderer_opengl/gl_framebuffer_cache.cpp
|
|
|
|
renderer_opengl/gl_framebuffer_cache.h
|
2018-03-19 22:00:59 -05:00
|
|
|
renderer_opengl/gl_rasterizer.cpp
|
|
|
|
renderer_opengl/gl_rasterizer.h
|
2018-11-06 03:40:49 -06:00
|
|
|
renderer_opengl/gl_resource_manager.cpp
|
2018-01-17 18:37:34 -06:00
|
|
|
renderer_opengl/gl_resource_manager.h
|
2019-04-02 14:58:08 -05:00
|
|
|
renderer_opengl/gl_sampler_cache.cpp
|
|
|
|
renderer_opengl/gl_sampler_cache.h
|
2018-08-23 16:30:27 -05:00
|
|
|
renderer_opengl/gl_shader_cache.cpp
|
|
|
|
renderer_opengl/gl_shader_cache.h
|
2018-12-25 22:57:14 -06:00
|
|
|
renderer_opengl/gl_shader_decompiler.cpp
|
|
|
|
renderer_opengl/gl_shader_decompiler.h
|
2019-01-13 19:36:52 -06:00
|
|
|
renderer_opengl/gl_shader_disk_cache.cpp
|
|
|
|
renderer_opengl/gl_shader_disk_cache.h
|
2018-04-07 04:12:38 -05:00
|
|
|
renderer_opengl/gl_shader_manager.cpp
|
|
|
|
renderer_opengl/gl_shader_manager.h
|
2018-01-17 18:37:34 -06:00
|
|
|
renderer_opengl/gl_shader_util.cpp
|
|
|
|
renderer_opengl/gl_shader_util.h
|
2019-12-25 14:02:17 -06:00
|
|
|
renderer_opengl/gl_state_tracker.cpp
|
|
|
|
renderer_opengl/gl_state_tracker.h
|
2018-03-19 16:10:59 -05:00
|
|
|
renderer_opengl/gl_stream_buffer.cpp
|
|
|
|
renderer_opengl/gl_stream_buffer.h
|
2019-04-11 15:14:55 -05:00
|
|
|
renderer_opengl/gl_texture_cache.cpp
|
|
|
|
renderer_opengl/gl_texture_cache.h
|
2019-07-27 17:40:10 -05:00
|
|
|
renderer_opengl/gl_query_cache.cpp
|
|
|
|
renderer_opengl/gl_query_cache.h
|
2018-03-24 20:09:30 -05:00
|
|
|
renderer_opengl/maxwell_to_gl.h
|
2018-01-17 18:37:34 -06:00
|
|
|
renderer_opengl/renderer_opengl.cpp
|
|
|
|
renderer_opengl/renderer_opengl.h
|
2018-10-28 19:54:08 -05:00
|
|
|
renderer_opengl/utils.cpp
|
|
|
|
renderer_opengl/utils.h
|
2019-04-02 13:54:11 -05:00
|
|
|
sampler_cache.cpp
|
|
|
|
sampler_cache.h
|
2018-12-20 16:09:21 -06:00
|
|
|
shader/decode/arithmetic.cpp
|
|
|
|
shader/decode/arithmetic_immediate.cpp
|
|
|
|
shader/decode/bfe.cpp
|
|
|
|
shader/decode/bfi.cpp
|
|
|
|
shader/decode/shift.cpp
|
|
|
|
shader/decode/arithmetic_integer.cpp
|
|
|
|
shader/decode/arithmetic_integer_immediate.cpp
|
|
|
|
shader/decode/arithmetic_half.cpp
|
|
|
|
shader/decode/arithmetic_half_immediate.cpp
|
|
|
|
shader/decode/ffma.cpp
|
|
|
|
shader/decode/hfma2.cpp
|
|
|
|
shader/decode/conversion.cpp
|
|
|
|
shader/decode/memory.cpp
|
2019-02-21 23:19:45 -06:00
|
|
|
shader/decode/texture.cpp
|
2019-04-27 00:07:18 -05:00
|
|
|
shader/decode/image.cpp
|
2018-12-20 16:09:21 -06:00
|
|
|
shader/decode/float_set_predicate.cpp
|
|
|
|
shader/decode/integer_set_predicate.cpp
|
|
|
|
shader/decode/half_set_predicate.cpp
|
|
|
|
shader/decode/predicate_set_register.cpp
|
|
|
|
shader/decode/predicate_set_predicate.cpp
|
|
|
|
shader/decode/register_set_predicate.cpp
|
|
|
|
shader/decode/float_set.cpp
|
|
|
|
shader/decode/integer_set.cpp
|
|
|
|
shader/decode/half_set.cpp
|
2018-12-23 22:23:00 -06:00
|
|
|
shader/decode/video.cpp
|
2019-08-09 21:50:21 -05:00
|
|
|
shader/decode/warp.cpp
|
2018-12-20 16:09:21 -06:00
|
|
|
shader/decode/xmad.cpp
|
|
|
|
shader/decode/other.cpp
|
2019-06-26 23:39:40 -05:00
|
|
|
shader/ast.cpp
|
|
|
|
shader/ast.h
|
2019-08-16 15:25:02 -05:00
|
|
|
shader/compiler_settings.cpp
|
|
|
|
shader/compiler_settings.h
|
2019-09-23 13:02:02 -05:00
|
|
|
shader/control_flow.cpp
|
|
|
|
shader/control_flow.h
|
2018-12-20 16:09:21 -06:00
|
|
|
shader/decode.cpp
|
2019-06-28 19:54:21 -05:00
|
|
|
shader/expr.cpp
|
2019-06-26 23:39:40 -05:00
|
|
|
shader/expr.h
|
2019-06-04 20:44:06 -05:00
|
|
|
shader/node_helper.cpp
|
|
|
|
shader/node_helper.h
|
2019-06-06 17:31:14 -05:00
|
|
|
shader/node.h
|
2020-02-28 17:53:10 -06:00
|
|
|
shader/registry.cpp
|
|
|
|
shader/registry.h
|
2018-12-20 16:09:21 -06:00
|
|
|
shader/shader_ir.cpp
|
|
|
|
shader/shader_ir.h
|
2018-12-28 23:44:54 -06:00
|
|
|
shader/track.cpp
|
2020-03-02 15:54:08 -06:00
|
|
|
shader/transform_feedback.cpp
|
|
|
|
shader/transform_feedback.h
|
2018-10-28 20:14:25 -05:00
|
|
|
surface.cpp
|
|
|
|
surface.h
|
2019-11-09 00:26:30 -06:00
|
|
|
texture_cache/format_lookup_table.cpp
|
|
|
|
texture_cache/format_lookup_table.h
|
2019-04-24 14:35:54 -05:00
|
|
|
texture_cache/surface_base.cpp
|
|
|
|
texture_cache/surface_base.h
|
|
|
|
texture_cache/surface_params.cpp
|
|
|
|
texture_cache/surface_params.h
|
|
|
|
texture_cache/surface_view.cpp
|
|
|
|
texture_cache/surface_view.h
|
|
|
|
texture_cache/texture_cache.h
|
2018-06-17 22:50:44 -05:00
|
|
|
textures/astc.cpp
|
|
|
|
textures/astc.h
|
2019-02-23 19:45:47 -06:00
|
|
|
textures/convert.cpp
|
|
|
|
textures/convert.h
|
2018-03-19 18:00:29 -05:00
|
|
|
textures/decoders.cpp
|
|
|
|
textures/decoders.h
|
|
|
|
textures/texture.h
|
2018-01-17 18:37:34 -06:00
|
|
|
video_core.cpp
|
|
|
|
video_core.h
|
|
|
|
)
|
2014-04-05 15:04:25 -05:00
|
|
|
|
2019-02-12 15:01:40 -06:00
|
|
|
if (ENABLE_VULKAN)
|
2019-02-12 15:28:05 -06:00
|
|
|
target_sources(video_core PRIVATE
|
|
|
|
renderer_vulkan/declarations.h
|
2019-12-22 19:48:43 -06:00
|
|
|
renderer_vulkan/fixed_pipeline_state.cpp
|
|
|
|
renderer_vulkan/fixed_pipeline_state.h
|
2019-03-02 15:34:11 -06:00
|
|
|
renderer_vulkan/maxwell_to_vk.cpp
|
|
|
|
renderer_vulkan/maxwell_to_vk.h
|
2020-01-16 19:54:15 -06:00
|
|
|
renderer_vulkan/renderer_vulkan.h
|
2020-01-21 13:40:53 -06:00
|
|
|
renderer_vulkan/renderer_vulkan.cpp
|
2020-01-19 18:05:10 -06:00
|
|
|
renderer_vulkan/vk_blit_screen.cpp
|
|
|
|
renderer_vulkan/vk_blit_screen.h
|
2019-02-27 21:49:28 -06:00
|
|
|
renderer_vulkan/vk_buffer_cache.cpp
|
|
|
|
renderer_vulkan/vk_buffer_cache.h
|
2020-01-08 16:24:26 -06:00
|
|
|
renderer_vulkan/vk_compute_pass.cpp
|
|
|
|
renderer_vulkan/vk_compute_pass.h
|
2020-01-06 18:25:14 -06:00
|
|
|
renderer_vulkan/vk_compute_pipeline.cpp
|
|
|
|
renderer_vulkan/vk_compute_pipeline.h
|
2020-01-01 13:44:06 -06:00
|
|
|
renderer_vulkan/vk_descriptor_pool.cpp
|
|
|
|
renderer_vulkan/vk_descriptor_pool.h
|
2019-02-12 15:28:05 -06:00
|
|
|
renderer_vulkan/vk_device.cpp
|
2019-02-14 09:52:46 -06:00
|
|
|
renderer_vulkan/vk_device.h
|
2020-01-06 18:29:13 -06:00
|
|
|
renderer_vulkan/vk_graphics_pipeline.cpp
|
|
|
|
renderer_vulkan/vk_graphics_pipeline.h
|
2019-12-25 15:00:16 -06:00
|
|
|
renderer_vulkan/vk_image.cpp
|
|
|
|
renderer_vulkan/vk_image.h
|
2019-02-18 21:46:06 -06:00
|
|
|
renderer_vulkan/vk_memory_manager.cpp
|
|
|
|
renderer_vulkan/vk_memory_manager.h
|
2020-01-06 18:18:38 -06:00
|
|
|
renderer_vulkan/vk_pipeline_cache.cpp
|
|
|
|
renderer_vulkan/vk_pipeline_cache.h
|
2020-02-11 15:59:44 -06:00
|
|
|
renderer_vulkan/vk_query_cache.cpp
|
|
|
|
renderer_vulkan/vk_query_cache.h
|
2020-01-16 19:55:23 -06:00
|
|
|
renderer_vulkan/vk_rasterizer.cpp
|
2020-01-06 18:10:56 -06:00
|
|
|
renderer_vulkan/vk_rasterizer.h
|
2020-01-05 14:32:08 -06:00
|
|
|
renderer_vulkan/vk_renderpass_cache.cpp
|
|
|
|
renderer_vulkan/vk_renderpass_cache.h
|
2019-02-14 09:52:46 -06:00
|
|
|
renderer_vulkan/vk_resource_manager.cpp
|
2019-02-21 22:27:25 -06:00
|
|
|
renderer_vulkan/vk_resource_manager.h
|
2019-03-12 14:57:03 -05:00
|
|
|
renderer_vulkan/vk_sampler_cache.cpp
|
|
|
|
renderer_vulkan/vk_sampler_cache.h
|
2019-02-21 22:27:25 -06:00
|
|
|
renderer_vulkan/vk_scheduler.cpp
|
2019-02-24 01:22:33 -06:00
|
|
|
renderer_vulkan/vk_scheduler.h
|
2019-03-14 00:19:02 -05:00
|
|
|
renderer_vulkan/vk_shader_decompiler.cpp
|
|
|
|
renderer_vulkan/vk_shader_decompiler.h
|
2020-01-08 16:22:20 -06:00
|
|
|
renderer_vulkan/vk_shader_util.cpp
|
|
|
|
renderer_vulkan/vk_shader_util.h
|
2019-12-25 15:12:17 -06:00
|
|
|
renderer_vulkan/vk_staging_buffer_pool.cpp
|
|
|
|
renderer_vulkan/vk_staging_buffer_pool.h
|
2020-02-20 17:35:53 -06:00
|
|
|
renderer_vulkan/vk_state_tracker.cpp
|
|
|
|
renderer_vulkan/vk_state_tracker.h
|
2019-02-24 01:22:33 -06:00
|
|
|
renderer_vulkan/vk_stream_buffer.cpp
|
2019-03-28 21:58:43 -05:00
|
|
|
renderer_vulkan/vk_stream_buffer.h
|
|
|
|
renderer_vulkan/vk_swapchain.cpp
|
2020-01-05 14:26:04 -06:00
|
|
|
renderer_vulkan/vk_swapchain.h
|
2020-01-13 17:36:03 -06:00
|
|
|
renderer_vulkan/vk_texture_cache.cpp
|
|
|
|
renderer_vulkan/vk_texture_cache.h
|
2020-01-05 14:26:04 -06:00
|
|
|
renderer_vulkan/vk_update_descriptor.cpp
|
2020-01-13 17:36:03 -06:00
|
|
|
renderer_vulkan/vk_update_descriptor.h
|
|
|
|
)
|
2019-02-12 15:01:40 -06:00
|
|
|
|
2019-03-14 00:17:19 -05:00
|
|
|
target_include_directories(video_core PRIVATE sirit ../../externals/Vulkan-Headers/include)
|
2019-02-12 15:01:40 -06:00
|
|
|
target_compile_definitions(video_core PRIVATE HAS_VULKAN)
|
|
|
|
endif()
|
|
|
|
|
2018-01-17 18:37:34 -06:00
|
|
|
create_target_directory_groups(video_core)
|
2014-08-23 20:22:05 -05:00
|
|
|
|
2017-05-27 20:26:55 -05:00
|
|
|
target_link_libraries(video_core PUBLIC common core)
|
2019-02-07 11:28:06 -06:00
|
|
|
target_link_libraries(video_core PRIVATE glad)
|
2019-03-14 00:17:19 -05:00
|
|
|
if (ENABLE_VULKAN)
|
|
|
|
target_link_libraries(video_core PRIVATE sirit)
|
|
|
|
endif()
|
2019-11-08 14:14:21 -06:00
|
|
|
|
|
|
|
if (MSVC)
|
|
|
|
target_compile_options(video_core PRIVATE /we4267)
|
|
|
|
else()
|
2019-11-11 15:00:37 -06:00
|
|
|
target_compile_options(video_core PRIVATE -Werror=conversion -Wno-error=sign-conversion)
|
2019-11-08 14:14:21 -06:00
|
|
|
endif()
|