From 254730d8916e5c1f8d961c728a413b50ae5689db Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sun, 17 Oct 2021 13:40:47 +0200 Subject: 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. --- video/out/gpu/video.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'video/out') 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); } -- cgit v1.2.3