diff options
author | Niklas Haas <git@haasn.dev> | 2023-09-20 18:18:59 +0200 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2023-09-25 12:45:17 +0200 |
commit | 44cf6288c73b71d22a98870cb08b1daf9da5e048 (patch) | |
tree | be248ec9298a0c7be787f64e215834aee45d4a01 /video/out/gpu/video_shaders.c | |
parent | 57fad2d5f96e4629dab9cb9a4fefb2fba1111662 (diff) | |
download | mpv-44cf6288c73b71d22a98870cb08b1daf9da5e048.tar.bz2 mpv-44cf6288c73b71d22a98870cb08b1daf9da5e048.tar.xz |
vo_gpu: remove --scaler-lut-size
Pointless bloat option, hard-coded as 256 now in libplacebo and no
reason not to also hard-code in mpv.
See-Also: haasn/libplacebo@64d7c5aab06766a9492d3cfffd35333792052cd9
Diffstat (limited to 'video/out/gpu/video_shaders.c')
-rw-r--r-- | video/out/gpu/video_shaders.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/gpu/video_shaders.c b/video/out/gpu/video_shaders.c index 3a33d3cfc8..6c49967238 100644 --- a/video/out/gpu/video_shaders.c +++ b/video/out/gpu/video_shaders.c @@ -41,7 +41,7 @@ static void pass_sample_separated_get_weights(struct gl_shader_cache *sc, struct scaler *scaler) { gl_sc_uniform_texture(sc, "lut", scaler->lut); - GLSLF("float ypos = LUT_POS(fcoord, %d.0);\n", scaler->lut_size); + GLSLF("float ypos = LUT_POS(fcoord, %d.0);\n", scaler->lut->params.h); int N = scaler->kernel->size; int width = (N + 3) / 4; // round up @@ -123,10 +123,10 @@ static void polar_sample(struct gl_shader_cache *sc, struct scaler *scaler, // get the weight for this pixel if (scaler->lut->params.dimensions == 1) { GLSLF("w = tex1D(lut, LUT_POS(d * 1.0/%f, %d.0)).r;\n", - radius, scaler->lut_size); + radius, scaler->lut->params.w); } else { GLSLF("w = texture(lut, vec2(0.5, LUT_POS(d * 1.0/%f, %d.0))).r;\n", - radius, scaler->lut_size); + radius, scaler->lut->params.h); } GLSL(wsum += w;) |