summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossy@jrg.systems>2017-10-18 23:40:23 +1100
committerJames Ross-Gowan <rossy@jrg.systems>2017-10-18 23:55:13 +1100
commitd9e3bad500e69508ad904205a8ddf234abd3c874 (patch)
tree710df88561fb54d2e7c956e648f39d136c368f2f /video
parent872c2403a48a02ad29b4b35926e184865c3dfe74 (diff)
downloadmpv-d9e3bad500e69508ad904205a8ddf234abd3c874.tar.bz2
mpv-d9e3bad500e69508ad904205a8ddf234abd3c874.tar.xz
vo_gpu: add rgba16hf to the list of FBO formats
This should be functionally identical to rgba16f, since the formats only differ in their representation on the CPU, but it could be useful for RA backends that don't expose rgba16f, like Vulkan. It's definitely useful for the WIP D3D11 backend.
Diffstat (limited to 'video')
-rw-r--r--video/out/gpu/video.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c
index 89da4ed19f..2ec5e91207 100644
--- a/video/out/gpu/video.c
+++ b/video/out/gpu/video.c
@@ -3364,7 +3364,8 @@ static void check_gl_features(struct gl_video *p)
bool have_compute = ra->caps & RA_CAP_COMPUTE;
bool have_ssbo = ra->caps & RA_CAP_BUF_RW;
- const char *auto_fbo_fmts[] = {"rgba16", "rgba16f", "rgb10_a2", "rgba8", 0};
+ const char *auto_fbo_fmts[] = {"rgba16", "rgba16f", "rgba16hf",
+ "rgb10_a2", "rgba8", 0};
const char *user_fbo_fmts[] = {p->opts.fbo_format, 0};
const char **fbo_fmts = user_fbo_fmts[0] && strcmp(user_fbo_fmts[0], "auto")
? user_fbo_fmts : auto_fbo_fmts;