summaryrefslogtreecommitdiffstats
path: root/video/out/gpu/ra.h
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-09-29 14:41:52 +0200
committerMartin Herkt <652892+lachs0r@users.noreply.github.com>2017-12-25 00:47:53 +0100
commita42b8b1142fd26e82ca0e8b0ea7ab6cafd78776d (patch)
treeae1aa6ea2fd2f91831e5fe671a9be2e018779389 /video/out/gpu/ra.h
parent80540be211adbc9e19c6cb95a1ddfddd890847a9 (diff)
downloadmpv-a42b8b1142fd26e82ca0e8b0ea7ab6cafd78776d.tar.bz2
mpv-a42b8b1142fd26e82ca0e8b0ea7ab6cafd78776d.tar.xz
vo_gpu: attempt re-using the FBO format for p->output_tex
This allows RAs with support for non-opaque FBO formats to use a more appropriate FBO format for the output tex, possibly enabling a more efficient blit operation. This requires distinguishing between real formats (which can be used to create textures) and fake formats (e.g. ra_gl's FBO hack).
Diffstat (limited to 'video/out/gpu/ra.h')
-rw-r--r--video/out/gpu/ra.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/gpu/ra.h b/video/out/gpu/ra.h
index 08ccdaee70..34f3fb9b5c 100644
--- a/video/out/gpu/ra.h
+++ b/video/out/gpu/ra.h
@@ -85,6 +85,8 @@ struct ra_format {
// only applies to 2-component textures
bool linear_filter; // linear filtering available from shader
bool renderable; // can be used for render targets
+ bool dummy_format; // is not a real ra_format but a fake one (e.g. FBO).
+ // dummy formats cannot be used to create textures
// If not 0, the format represents some sort of packed fringe format, whose
// shader representation is given by the special_imgfmt_desc pointer.