diff options
author | Erik Faye-Lund <[email protected]> | 2018-08-20 12:46:32 +0100 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2018-08-28 14:13:43 +0200 |
commit | a4e60ccb56f339d3a20463b14ae4b3e124771f1a (patch) | |
tree | 0bc7f44ab495c4c441d4451cb84b1fb901e205fd /src/gallium/drivers/virgl/virgl_encode.c | |
parent | 4ab06cc56e66118c4834ed8bbeed05e727bc34f7 (diff) |
virgl: add debug-switch to output TGSI
This is quite useful for debugging shader-transpiling issues in
virglrenderer.
Signed-off-by: Erik Faye-Lund <[email protected]>
Reviewed-By: Gert Wollny <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_encode.c')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_encode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_encode.c b/src/gallium/drivers/virgl/virgl_encode.c index a13c3982ec3..bcb14d8939a 100644 --- a/src/gallium/drivers/virgl/virgl_encode.c +++ b/src/gallium/drivers/virgl/virgl_encode.c @@ -274,6 +274,9 @@ 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); + shader_len = strlen(str) + 1; left_bytes = shader_len; |