summaryrefslogtreecommitdiffstats
path: root/video/out/gpu/utils.c
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-09-22 16:33:25 +0200
committerNiklas Haas <git@haasn.xyz>2017-09-22 16:33:25 +0200
commit2af2fa7a27586f6938f4db8f45e316212e18e442 (patch)
tree134a5cbf5707afecc09434257ffb1054204f8703 /video/out/gpu/utils.c
parentfab0448c5ebb163daf5a116eef6eb4c8596071d7 (diff)
downloadmpv-2af2fa7a27586f6938f4db8f45e316212e18e442.tar.bz2
mpv-2af2fa7a27586f6938f4db8f45e316212e18e442.tar.xz
vo_gpu: kill off FBOTEX_FUZZY
I've observed the garbage pixels in more scenarios. They also were never really needed to begin with, originally being a discovered work-around for bug that we fixed since then anyway. Doesn't really seem to even help resizing, since the OpenGL drivers are all smart enough to pool resources internally anyway. Fixes #1814
Diffstat (limited to 'video/out/gpu/utils.c')
-rw-r--r--video/out/gpu/utils.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/video/out/gpu/utils.c b/video/out/gpu/utils.c
index f8dcbaac60..38d1e9b7cd 100644
--- a/video/out/gpu/utils.c
+++ b/video/out/gpu/utils.c
@@ -170,10 +170,8 @@ struct ra_layout std430_layout(struct ra_renderpass_input *inp)
// Create a texture and a FBO using the texture as color attachments.
// fmt: texture internal format
// If the parameters are the same as the previous call, do not touch it.
-// flags can be 0, or a combination of FBOTEX_FUZZY_W and FBOTEX_FUZZY_H.
-// Enabling FUZZY for W or H means the w or h does not need to be exact.
bool fbotex_change(struct fbotex *fbo, struct ra *ra, struct mp_log *log,
- int w, int h, const struct ra_format *fmt, int flags)
+ int w, int h, const struct ra_format *fmt)
{
int lw = w, lh = h;
@@ -181,20 +179,10 @@ bool fbotex_change(struct fbotex *fbo, struct ra *ra, struct mp_log *log,
int cw = w, ch = h;
int rw = fbo->tex->params.w, rh = fbo->tex->params.h;
- if ((flags & FBOTEX_FUZZY_W) && cw < rw)
- cw = rw;
- if ((flags & FBOTEX_FUZZY_H) && ch < rh)
- ch = rh;
-
if (rw == cw && rh == ch && fbo->tex->params.format == fmt)
goto done;
}
- if (flags & FBOTEX_FUZZY_W)
- w = MP_ALIGN_UP(w, 256);
- if (flags & FBOTEX_FUZZY_H)
- h = MP_ALIGN_UP(h, 256);
-
mp_verbose(log, "Create FBO: %dx%d (%dx%d)\n", lw, lh, w, h);
if (!fmt || !fmt->renderable || !fmt->linear_filter) {