From d9e3bad500e69508ad904205a8ddf234abd3c874 Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Wed, 18 Oct 2017 23:40:23 +1100 Subject: 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. --- video/out/gpu/video.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'video/out/gpu') 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; -- cgit v1.2.3