Skip to content

Commit 1f3aaa0

Browse files
committed
vdisp/sdl3: param to unblacklist p010 for d3d
1 parent a1c6196 commit 1f3aaa0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/video_display/sdl3.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,9 @@ get_supported_pfs(const struct fmt_data *supp_fmts, codec_t *codecs)
632632
return count;
633633
}
634634

635+
#define NO_BLACKLIST_D3D_P010 "sdl3-no-blacklist-d3d-p010"
636+
ADD_TO_PARAM(NO_BLACKLIST_D3D_P010, "* "NO_BLACKLIST_D3D_P010 "\n"
637+
" Do not blacklist P010 format for Direct3D 11/12.\n");
635638
static void
636639
query_renderer_supported_fmts(SDL_Renderer *renderer,
637640
struct fmt_data *supp_fmts, bool blacklist_p010)
@@ -648,6 +651,10 @@ query_renderer_supported_fmts(SDL_Renderer *renderer,
648651
return;
649652
}
650653

654+
if (get_commandline_param(NO_BLACKLIST_D3D_P010)) {
655+
blacklist_p010 = false;
656+
}
657+
651658
if (log_level >= LOG_LEVEL_VERBOSE) {
652659
const SDL_PixelFormat *it = fmts;
653660
MSG(VERBOSE, "Supported pixel formats:\n");

0 commit comments

Comments
 (0)