From 07fd52711437f412b51319d94520efcaf0b4f89a Mon Sep 17 00:00:00 2001 From: Markus Fritsche Date: Sat, 25 Apr 2026 22:25:36 +0000 Subject: [PATCH] WIP: more entry-point tracing (CreateConfig, GetConfigAttributes, QuerySurfaceAttributes, QueryConfigEntrypoints) Co-Authored-By: Claude Opus 4.7 (1M context) --- src/config.c | 8 ++++++++ src/surface.c | 3 +++ 2 files changed, 11 insertions(+) diff --git a/src/config.c b/src/config.c index bca08ee..4fe54f7 100644 --- a/src/config.c +++ b/src/config.c @@ -53,6 +53,9 @@ VAStatus RequestCreateConfig(VADriverContextP context, VAProfile profile, VAConfigID id; int i, index; + request_log("CreateConfig: profile=%d entrypoint=%d attrs=%d\n", + profile, entrypoint, attributes_count); + switch (profile) { case VAProfileMPEG2Simple: case VAProfileMPEG2Main: @@ -162,6 +165,8 @@ VAStatus RequestQueryConfigEntrypoints(VADriverContextP context, VAEntrypoint *entrypoints, int *entrypoints_count) { + request_log("QueryConfigEntrypoints: profile=%d\n", profile); + switch (profile) { case VAProfileMPEG2Simple: case VAProfileMPEG2Main: @@ -221,6 +226,9 @@ VAStatus RequestGetConfigAttributes(VADriverContextP context, VAProfile profile, { unsigned int i; + request_log("GetConfigAttributes: profile=%d entrypoint=%d count=%d\n", + profile, entrypoint, attributes_count); + for (i = 0; i < attributes_count; i++) { switch (attributes[i].type) { case VAConfigAttribRTFormat: diff --git a/src/surface.c b/src/surface.c index a141762..9396701 100644 --- a/src/surface.c +++ b/src/surface.c @@ -361,6 +361,9 @@ VAStatus RequestQuerySurfaceAttributes(VADriverContextP context, int memory_types; unsigned int i = 0; + request_log("QuerySurfaceAttributes: config=%u attrs=%p count=%p\n", + config, attributes, attributes_count); + attributes_list = malloc(attributes_list_size); memset(attributes_list, 0, attributes_list_size);