virgl: Fix VIRGL_DEBUG=tgsi to work on debugoptimized builds.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37313>
This commit is contained in:
Emma Anholt
2025-10-13 10:46:38 -07:00
committed by Marge Bot
parent 762be5eae1
commit c76b52ae00

View File

@@ -785,8 +785,10 @@ int virgl_encode_shader_state(struct virgl_context *ctx,
if (bret == false)
return -1;
if (virgl_debug & VIRGL_DEBUG_TGSI)
debug_printf("TGSI:\n---8<---\n%s\n---8<---\n", str);
if (virgl_debug & VIRGL_DEBUG_TGSI) {
mesa_logi("TGSI:");
mesa_log_multiline(MESA_LOG_INFO, str);
}
/* virglrenderer before addbd9c5058dcc9d561b20ab747aed58c53499da mis-counts
* the tokens needed for a BARRIER, so ask it to allocate some more space.