summaryrefslogtreecommitdiffstats
path: root/video/out/gpu
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-08-18 02:03:50 +0200
committerMartin Herkt <652892+lachs0r@users.noreply.github.com>2017-12-25 00:47:53 +0100
commit6186cc79e6b95a52f5d2ec6075416cbc58c7539f (patch)
tree65122d8c1ca7eec5c72a4e957567f78693698b2b /video/out/gpu
parentfb1c7bde42b835bfc41bc785905c050cef9f6f99 (diff)
downloadmpv-6186cc79e6b95a52f5d2ec6075416cbc58c7539f.tar.bz2
mpv-6186cc79e6b95a52f5d2ec6075416cbc58c7539f.tar.xz
vo_gpu: allow invalidating FBO in renderpass_run
This is especially interesting for vulkan since it allows completely skipping the layout transition as part of the renderpass. Unfortunately, that also means it needs to be put into renderpass_params, as opposed to renderpass_run_params (unlike #4777). Closes #4777.
Diffstat (limited to 'video/out/gpu')
-rw-r--r--video/out/gpu/ra.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/gpu/ra.h b/video/out/gpu/ra.h
index 934e5db844..ffb010960a 100644
--- a/video/out/gpu/ra.h
+++ b/video/out/gpu/ra.h
@@ -285,6 +285,9 @@ struct ra_renderpass_params {
enum ra_blend blend_src_alpha;
enum ra_blend blend_dst_alpha;
+ // If true, the contents of `target` not written to will become undefined
+ bool invalidate_target;
+
// --- type==RA_RENDERPASS_TYPE_COMPUTE only
// Shader text, like vertex_shader/frag_shader.