summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2021-10-17 13:40:47 +0200
committerNiklas Haas <github-daiK1o@haasn.dev>2021-10-22 19:08:13 +0200
commit254730d8916e5c1f8d961c728a413b50ae5689db (patch)
treeda2061e83bebc85dd0ec04f1183548e277c8f9d8
parenta76527772eb52084c61241b89cfb42ce59f6f6a4 (diff)
downloadmpv-254730d8916e5c1f8d961c728a413b50ae5689db.tar.bz2
mpv-254730d8916e5c1f8d961c728a413b50ae5689db.tar.xz
vo_gpu: fix rotated compute shader vertex simulation
Upon re-examination I have no idea why this code was ever written or what problem it was trying to solve. But, getting rid of it fixes #9291. It might be a remnant from before 2af2fa7a27. Who knows. This code will be replaced soon(tm) anyways.
-rw-r--r--video/out/gpu/video.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c
index 2e0cfbd19b..e4c4ee9290 100644
--- a/video/out/gpu/video.c
+++ b/video/out/gpu/video.c
@@ -1193,16 +1193,8 @@ static void dispatch_compute(struct gl_video *p, int w, int h,
if (!s->tex)
continue;
- // We need to rescale the coordinates to the true texture size
- char *tex_scale = mp_tprintf(32, "tex_scale%d", n);
- gl_sc_uniform_vec2(p->sc, tex_scale, (float[2]){
- (float)s->w / s->tex->params.w,
- (float)s->h / s->tex->params.h,
- });
-
- PRELUDE("#define texmap%d_raw(id) (tex_scale%d * outcoord(id))\n", n, n);
- PRELUDE("#define texmap%d(id) (texture_rot%d * texmap%d_raw(id) + "
- "pixel_size%d * texture_off%d)\n", n, n, n, n, n);
+ PRELUDE("#define texmap%d(id) (texture_rot%d * outcoord(id) + "
+ "pixel_size%d * texture_off%d)\n", n, n, n, n);
PRELUDE("#define texcoord%d texmap%d(gl_GlobalInvocationID)\n", n, n);
}