Suppress spammy libplacebo messages

Streaming 10-bit content on Nvidia GPUs spams the log with the following for every rendered frame:
Masking `blit_src` from wrapped texture because the corresponding format 'rx10' does not support PL_FMT_CAP_BLITTABLE
Masking `blit_src` from wrapped texture because the corresponding format 'rxgx10' does not support PL_FMT_CAP_BLITTABLE
This commit is contained in:
Cameron Gutman 2024-09-15 22:01:39 -05:00
parent c5ec8c0fdb
commit 4838a75c58

View file

@ -62,6 +62,9 @@ static void pl_log_cb(void*, enum pl_log_level level, const char *msg)
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "libplacebo: %s", msg);
break;
case PL_LOG_WARN:
if (strncmp(msg, "Masking `", 9) == 0) {
return;
}
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION, "libplacebo: %s", msg);
break;
case PL_LOG_INFO: