diff options
author | Niklas Haas <git@haasn.xyz> | 2017-09-29 14:41:52 +0200 |
---|---|---|
committer | Martin Herkt <652892+lachs0r@users.noreply.github.com> | 2017-12-25 00:47:53 +0100 |
commit | a42b8b1142fd26e82ca0e8b0ea7ab6cafd78776d (patch) | |
tree | ae1aa6ea2fd2f91831e5fe671a9be2e018779389 /video/out/vulkan | |
parent | 80540be211adbc9e19c6cb95a1ddfddd890847a9 (diff) | |
download | mpv-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/vulkan')
-rw-r--r-- | video/out/vulkan/ra_vk.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/vulkan/ra_vk.c b/video/out/vulkan/ra_vk.c index 1cfeb4a948..775fe7eaa5 100644 --- a/video/out/vulkan/ra_vk.c +++ b/video/out/vulkan/ra_vk.c @@ -511,6 +511,7 @@ static struct ra_tex *vk_tex_create(struct ra *ra, const struct ra_tex_params *params) { struct mpvk_ctx *vk = ra_vk_get(ra); + assert(!params->format->dummy_format); struct ra_tex *tex = talloc_zero(NULL, struct ra_tex); tex->params = *params; |