Commit Graph

775 Commits

Author SHA1 Message Date
aliaspider 1465cf1ffc (3DS) allow setting a start offset in the texture 2016-04-17 15:30:44 +01:00
aliaspider a609a748db (3DS) move shaders to a subdirectory. 2016-04-17 13:27:55 +01:00
aliaspider 27fc306b19 (3DS) refactor shaders. 2016-04-17 13:23:56 +01:00
twinaphex 6579b5f3c8 Add XMB shader compilation to shader_gl_cg.c 2016-04-17 05:52:26 +02:00
twinaphex 30ade96fc0 Add Cg conversions of XMB ribbon/Zahnrad 2016-04-17 05:48:06 +02:00
twinaphex 9386fb2fa0 Move D3D9 HLSL font shader to file 2016-04-17 04:13:23 +02:00
twinaphex b3220cf53e Move zahnrad shaders to separate files 2016-04-17 02:36:07 +02:00
Twinaphex 8616b21e1f Merge pull request #2869 from aliaspider/master
(3DS) change shader format/assembler
2016-04-17 00:18:00 +02:00
twinaphex e9d16655f0 Create d3d_shaders 2016-04-17 00:16:32 +02:00
twinaphex 02e0be55a8 Move GL stock shader to gfx/drivers/gl_shaders 2016-04-17 00:11:52 +02:00
twinaphex f0f60901ff Move all shader files to header files (gfx/drivers/gl_shaders) 2016-04-17 00:08:45 +02:00
twinaphex 8b6abde2f9 Start moving GL shaders to gfx/drivers/gl_shaders 2016-04-16 23:57:37 +02:00
aliaspider ad0d73d8f0 (3DS) refactor shaders. simplify texture combiner usage. 2016-04-16 22:38:13 +01:00
aliaspider c370afd861 (3DS) start porting shaders to the picasso format. 2016-04-16 20:26:05 +01:00
twinaphex 92faefbccc (GL) Cleanups - gl_set_shader 2016-04-16 07:19:21 +02:00
twinaphex dfe723c727 gl_shader_init - cleanup 2016-04-16 07:16:32 +02:00
twinaphex 4e041ff3d0 (GL) gl_shader_init - Cleanups 2016-04-16 05:36:09 +02:00
twinaphex 7b88378952 Add params to video_shader_ctx_init 2016-04-16 05:14:39 +02:00
twinaphex 8a90e2777c Rename GL_SHADER_STOCK_BLEND to VIDEO_SHADER_STOCK_BLEND 2016-04-16 01:50:20 +02:00
twinaphex 9d85afd358 Refactor SHADER_CTL_USE 2016-04-15 07:37:06 +02:00
Hans-Kristian Arntzen c7b96b75b8 Vulkan: Add more error logging. 2016-03-29 17:36:13 +02:00
Hans-Kristian Arntzen 38a305bb6e Vulkan: Add proc address query functions to HW interface.
Allows cores to avoid linking directly against any extra library.
Update HW interface version to 2 to signal ABI change.

Note that the interface is still experimental and can change at any time.
2016-03-29 16:35:31 +02:00
Hans-Kristian Arntzen 1ff4445ba0 Remove dead code with full_x/full_y.
Very confusing and no longer serves any purpose anyways.
2016-03-29 15:28:13 +02:00
Hans-Kristian Arntzen 82db5a4950 Vulkan: Use single UBO for all passes and sync indices.
Significantly reduces number of allocations.
2016-03-26 19:39:51 +01:00
Hans-Kristian Arntzen 3838b3c045 Vulkan: Add frame count suport. 2016-03-25 22:06:31 +01:00
Hans-Kristian Arntzen 83ab0d799f Vulkan: Begin implementing history and feedback. 2016-03-25 14:51:37 +01:00
twinaphex 1b289c0f05 (libretro-common) Update 2016-03-24 04:23:17 +01:00
twinaphex e41127459e Rename 'filestream' functions 2016-03-24 04:09:25 +01:00
twinaphex 870bce981d (gl.c) Indenting nits 2016-03-24 03:32:00 +01:00
twinaphex e1c47a68fe Take prototype declaration out of video_driver.h 2016-03-23 06:57:29 +01:00
Hans-Kristian Arntzen f1a5725f66 Vulkan: Host writes are implicitly flushed on submit.
Use TOP_OF_PIPE/0 access instead to work
around spammy asserts on Anvil.

We still have to invalidate the caches however.
2016-03-21 16:57:04 +01:00
Hans-Kristian Arntzen 7899d449e6 Vulkan: Also invalidate fragment uniform buffer 2016-03-21 11:49:27 +01:00
Hans-Kristian Arntzen a21687b5d7 Vulkan: Ensure vertex caches are invalidated. 2016-03-21 10:10:29 +01:00
Hans-Kristian Arntzen 84923a0465 Vulkan: Tighten up pipeline barrier usage.
Lots of memory barriers used with TOP_OF_PIPE which is not valid.
2016-03-21 10:02:00 +01:00
Hans-Kristian Arntzen 07524fe433 Vulkan: Log about format use. 2016-03-21 09:29:41 +01:00
twinaphex 3720cf87e7 Rename retro_file to file_stream 2016-03-20 16:29:14 +01:00
twinaphex 93b7dc1bdd (libretro-common) move 'lists' files to lists/ 2016-03-20 14:53:54 +01:00
twinaphex 70bb4c69f3 CXX_BUILD - silence some warnings 2016-03-20 05:26:16 +01:00
twinaphex 8b4a41155d C89_BUILD buildfixes 2016-03-20 05:24:05 +01:00
Alwin Garside 97b60b1e20 Fixed emscripten build 2016-03-13 15:30:30 +01:00
Hans-Kristian Arntzen f02faeea27 Vulkan: Fix segfault on nVidia. 2016-03-06 12:33:46 +01:00
Hans-Kristian Arntzen c00d32f30f Vulkan: Get correct window mode size. 2016-03-06 12:18:11 +01:00
Hans-Kristian Arntzen 6cde59a8ad Vulkan: Add more detailed counters. 2016-03-06 12:11:44 +01:00
twinaphex eebcde721b Rename video_coord_array 2016-03-05 07:28:02 +01:00
twinaphex 64a77af881 Use RARCH_DISPLAY_CTL_HW_CONTEXT_GET directly instead of
going through video_driver_callback
2016-03-04 20:49:55 +01:00
twinaphex 414c63b59a (VG) Silence some warnings
(Libretro-common) Add some headers
2016-03-02 23:09:31 +01:00
twinaphex 6f80e09ce1 Change MIN/MAX to upper-case 2016-03-02 00:07:31 +01:00
twinaphex 86a8899b0f (Android) Start preparing Android JNI Makefiles for Android 2016-03-01 18:46:40 +01:00
Themaister bce0d55a43 Vulkan: Allocate correct number of descriptors.
Have to allocate for entire pool, not per set.
2016-03-01 09:44:18 +01:00
twinaphex b79edb6095 Reimplement function pointers 2016-03-01 02:21:53 +01:00
twinaphex 937230564d move more code to vksym.h 2016-03-01 01:53:48 +01:00
twinaphex 4a1a623099 (Vulkan) Add more funcptrs 2016-02-29 23:09:05 +01:00
twinaphex 0e60d20705 Add Command Function pointers 2016-02-29 23:04:17 +01:00
twinaphex 67ea4e1d6b (Vulkan) Pipeline function pointers 2016-02-29 22:55:31 +01:00
twinaphex 1fbac78e35 (Vulkan) Go through function pointer for vkDestroyPipelineCache 2016-02-29 22:38:58 +01:00
twinaphex 1b85ee442f Go through funcptr for vkAllocateCommandBuffers 2016-02-29 22:23:35 +01:00
twinaphex 83dc7db6c7 (Vulkan) Add descriptor set layout function callbacks 2016-02-29 22:04:23 +01:00
twinaphex caed6c61cb (Vulkan) Function pointer for vkFreeCommandBuffers 2016-02-29 21:58:10 +01:00
twinaphex 1e407079e4 Add function pointers for image view functions 2016-02-29 21:55:54 +01:00
twinaphex a6eb40b3d2 Add funcptr for vkAllocateCommandBuffers 2016-02-29 21:51:42 +01:00
twinaphex 4771c45ed3 Add render pass command function pointers 2016-02-29 21:43:04 +01:00
twinaphex 7f5d0f2763 (Vulkan) More function pointers for command buffer functions 2016-02-29 21:37:35 +01:00
twinaphex 860ffff3c9 (Vulkan) Go through funcptr for vkEndCommandBuffer 2016-02-29 21:31:51 +01:00
twinaphex eae652d6a5 Go through funcptr for vkDestroyCommandPool 2016-02-29 21:17:21 +01:00
twinaphex 8232135922 Cleanups 2016-02-29 20:08:56 +01:00
twinaphex e669f92399 (Vulkan) Cleanups 2016-02-29 20:07:11 +01:00
twinaphex 8a06e27c22 (Vulkan) Cleanups 2016-02-29 19:44:46 +01:00
twinaphex 59ad8fcfde (Vulkan) Cleanups 2016-02-29 19:43:54 +01:00
twinaphex f0458495f4 Go through funcptr for vkDestroyPipeline 2016-02-29 19:41:25 +01:00
twinaphex d45f0e0946 Some cleanups 2016-02-29 19:39:49 +01:00
twinaphex 670eede306 Go through function pointer for vkCmdClearAttachments 2016-02-29 19:34:40 +01:00
twinaphex fc7a972466 Go through function pointers for vkMapMemory/vkUnmapMemory 2016-02-29 19:20:42 +01:00
twinaphex 28d5ca6a86 (Vulkan) Style nits 2016-02-29 19:16:21 +01:00
twinaphex b660fb8878 Create sampler function pointers 2016-02-29 19:11:09 +01:00
twinaphex 0e91bb6852 Go through more function pointers 2016-02-29 19:03:18 +01:00
twinaphex 1d96e80b05 (Vulkan) More funcptrs 2016-02-29 18:40:30 +01:00
twinaphex 5863996d83 Go through VKFUNC 2016-02-29 17:06:41 +01:00
twinaphex 6c9e8041c6 Add function pointer for vkCreateCommandPool 2016-02-29 16:41:49 +01:00
twinaphex 6dce80ea07 Add function pointers for vkCreatePipelineCache and vkCreatePipelineLayout 2016-02-29 16:37:15 +01:00
twinaphex 778b50fc28 Add funcptr for vkCreateFramebuffer 2016-02-29 16:32:34 +01:00
twinaphex 361cce328d vkCreateRenderPass - add funcptr 2016-02-29 16:30:45 +01:00
twinaphex 4248e244a8 Go through funcptr for vkCmdCopyImage 2016-02-29 06:52:08 +01:00
twinaphex 01f5a7ad84 Go through vkQueueWaitIdle function pointer 2016-02-29 06:31:55 +01:00
twinaphex 09f2b64c1f gl_render_overlay -add early return 2016-02-29 01:43:40 +01:00
twinaphex 34f3963e4e Simplify RUNLOOP_CTL_IS_SLOWMOTION 2016-02-29 01:33:14 +01:00
twinaphex 6fbad68561 (gl.c) Cleanup 2016-02-29 01:29:49 +01:00
twinaphex 7d346d627f Robustness fixes 2016-02-29 01:22:39 +01:00
twinaphex ca497533db Fix C89_BUILD warning 2016-02-28 22:47:46 +01:00
Monroe88 a669039523 Add option for menu linear filter 2016-02-27 17:30:12 -06:00
twinaphex ac3cb48302 (VG) Style nits 2016-02-26 17:36:39 +01:00
twinaphex d9b86c4f6b Remove stub xshm video driver for now 2016-02-26 17:29:35 +01:00
twinaphex 2746bf0cb1 (xvideo.c) Cleanups 2016-02-26 17:26:26 +01:00
twinaphex 94b8e8820e (xvideo.c) Style nits 2016-02-26 17:24:36 +01:00
FIX94 1ed54b8683 Merge branch 'master' of https://github.com/FIX94/RetroArch 2016-02-23 03:40:40 +01:00
FIX94 4f48e61b98 (GX) allow all resolutions to use aspect ratio settings and allow custom viewport x and y to use as much of the screen as possible while making sure to keep the system screen position in mind 2016-02-23 03:40:14 +01:00
twinaphex ef1feca097 Some C89_BUILD fixes 2016-02-22 12:25:41 +01:00
Hans-Kristian Arntzen cece4e5ae2 Vulkan: Add workaround for broken VkImageView swizzling.
Certain early drivers fail to apply swizzle mask.
2016-02-21 13:52:30 +01:00
Hans-Kristian Arntzen f09338b1b8 Set alphaBlendOp correctly. 2016-02-21 13:40:19 +01:00
Hans-Kristian Arntzen 0dddd671f8 Vulkan: Use more approriate barrier 2016-02-21 12:59:11 +01:00
Hans-Kristian Arntzen 4259ea3d06 Merge branch 'master' of git://github.com/libretro/RetroArch 2016-02-21 12:45:26 +01:00
Hans-Kristian Arntzen 36eb07e067 Vulkan: Use copy paths if needed. 2016-02-21 12:33:16 +01:00
twinaphex fbc7eaf287 (vulkan.c) Style nits 2016-02-20 20:29:52 +01:00
twinaphex 1426cf7fb2 (vulkan.c) Style nits 2016-02-20 20:15:46 +01:00
Hans-Kristian Arntzen fa449646e9 Bug fixes for Vulkan readback.
We were getting weird and inconsistent viewport sizes back.
2016-02-20 14:04:33 +01:00
Hans-Kristian Arntzen bcac4a204f Vulkan: Set initial viewport after keep_aspect is correct.
Fixes fullscreen recording.
2016-02-20 13:46:20 +01:00
Hans-Kristian Arntzen 5542427246 Try to use cached memory for readbacks.
Speeds up nVidia readbacks by order of magnitude.
2016-02-20 12:04:53 +01:00
Hans-Kristian Arntzen 459c55989a Use vkCmdCopyImage for readbacks.
Blits often imply render targets.
2016-02-20 11:21:39 +01:00
Hans-Kristian Arntzen c74c7ae053 Vulkan: Work around broken push constants on Ivy Bridge.
Use UBOs instead, should be more compatible with early drivers.
2016-02-18 18:36:49 +01:00
Hans-Kristian Arntzen a1ae86a808 Remove obsolete shaders. 2016-02-18 18:36:49 +01:00
Hans-Kristian Arntzen adbf9fed16 Vulkan implementation. 2016-02-16 20:42:02 +01:00
twinaphex 954ac39b91 Create SHADER_CTL_GET_PREV_TEXTURES 2016-02-14 22:22:40 +01:00
twinaphex e790b503d9 Add SHADER_CTL_GET_IDENT 2016-02-14 22:17:00 +01:00
twinaphex 38034abce6 Add SHADER_CTL_DIRECT_GET_CURRENT_SHADER 2016-02-14 21:55:19 +01:00
twinaphex 46b963619a Create SHADER_CTL_WRAP_TYPE 2016-02-14 21:41:16 +01:00
twinaphex bd74390cde Add SHADER_CTL_USE 2016-02-14 20:01:39 +01:00
twinaphex b4dcbb235f Add SHADER_CTL_FILTER_TYPE 2016-02-14 19:51:32 +01:00
twinaphex 37c2b47915 Add SHADER_CTL_SET_MVP 2016-02-14 19:43:47 +01:00
twinaphex 02ec7830d9 Create SHADER_CTL_INFO 2016-02-14 19:30:48 +01:00
twinaphex cdd6684bb9 Create SHADER_CTL_SCALE 2016-02-14 19:21:54 +01:00
twinaphex 6c1b96f50d Add SHADER_CTL_SET_COORDS 2016-02-14 18:59:42 +01:00
twinaphex 20441299e1 Add SHADER_CTL_MIPMAP_INPUT 2016-02-14 18:48:17 +01:00
twinaphex fab6903522 Create SHADER_CTL_INIT 2016-02-14 18:41:45 +01:00
twinaphex 678cabc48c Add SHADER_CTL_DEINIT 2016-02-14 18:22:38 +01:00
twinaphex 7c4b372208 Add SHADER_CTL_GET_FEEDBACK_PASS 2016-02-14 18:19:48 +01:00
twinaphex fe3c3f5203 Create SHADER_CTL_INIT_FIRST 2016-02-14 18:17:43 +01:00
twinaphex f906e828ba Add SHADER_CTL_SET_PARAMS 2016-02-14 18:14:51 +01:00
twinaphex f9824dd53e Simplify video_shader_driver_set_params 2016-02-14 18:09:12 +01:00
twinaphex 5e1f289cd4 80-char width limit, style nits 2016-02-14 17:02:55 +01:00
twinaphex 57c4db4338 Style nits 2016-02-14 16:59:21 +01:00
twinaphex 5b581e70ba 80-char width limit style nits 2016-02-14 16:27:29 +01:00
twinaphex c2d7b330aa vg.c - buildfix 2016-02-14 16:15:01 +01:00
twinaphex 68969d1363 Add GFX_CTL_GET_VIDEO_SIZE 2016-02-14 02:26:20 +01:00
twinaphex bcaf08ad2d Add GFX_CTL_SET_RESIZE 2016-02-14 02:15:43 +01:00
twinaphex 5516ff05b5 Create GFX_CTL_SET_VIDEO_MODE 2016-02-14 02:12:18 +01:00
twinaphex 6413449944 (Android/EGL Images) Buildfixes 2016-02-14 02:00:14 +01:00
twinaphex 154f85c6fa Add GFX_CTL_SUPPRESS_SCREENSAVER 2016-02-13 23:39:12 +01:00
twinaphex f6afe72a1e Add GFX_CTL_IMAGE_BUFFER_WRITE 2016-02-13 23:35:47 +01:00
twinaphex 0a9787ec49 Create GFX_CTL_INPUT_DRIVER 2016-02-13 23:26:33 +01:00
twinaphex ce41c5bbca Create GFX_CTL_TRANSLATE_ASPECT 2016-02-13 22:07:56 +01:00
twinaphex f94e9c532e Create GFX_CTL_PROC_ADDRESS_GET 2016-02-13 22:02:49 +01:00
twinaphex 254d2d1fff Avoid crash in gl_frame 2016-02-13 21:15:18 +01:00
twinaphex 9e186b4587 Create GFX_CTL_SWAP_INTERVAL 2016-02-13 20:45:45 +01:00
twinaphex 46c9ff36ef Create GFX_CTL_CHECK_WINDOW 2016-02-13 19:53:14 +01:00
twinaphex b9a5c326cd Create GFX_CTX_GET_VIDEO_OUTPUT_SIZE 2016-02-13 19:36:02 +01:00
twinaphex 7c28ddbfc5 Add GFX_CTL_IMAGE_BUFFER_INIT 2016-02-13 18:51:16 +01:00
twinaphex ef6ef13143 Add GFX_CTL_GET_VIDEO_OUTPUT_PREV/GFX_CTL_GET_VIDEO_OUTPUT_NEXT 2016-02-13 18:47:38 +01:00
twinaphex 00e4793bed Add GFX_CTL_BIND_HW_RENDER 2016-02-13 18:36:23 +01:00
twinaphex b7c41c9fcd Remove gfx_ctx_show_mouse 2016-02-13 18:29:07 +01:00
twinaphex 8721c857e9 Add GFX_CTL_SET 2016-02-13 18:27:05 +01:00
twinaphex 6a697ef2e1 GFX_CTL_SHOW_MOUSE added 2016-02-13 17:48:25 +01:00