diff options
author | Vasily Khoruzhick <[email protected]> | 2020-03-08 11:05:12 -0700 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-11 07:36:44 +0000 |
commit | bcbc2b61b53ba39df320777ede30117b249d9738 (patch) | |
tree | ba3c5272847d13f56b72eec7ed75797938fb6377 /src/gallium/drivers/lima | |
parent | 8f5543990e250d4a83467c8e9d6d663dc20d6d4b (diff) |
lima: print gp uniforms if gp debug is enabled
Since we keep other constants there as well it's useful for reading disassembly.
Reviewed-by: Andreas Baierl <[email protected]>
Signed-off-by: Vasily Khoruzhick <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4110>
Diffstat (limited to 'src/gallium/drivers/lima')
-rw-r--r-- | src/gallium/drivers/lima/lima_draw.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/drivers/lima/lima_draw.c b/src/gallium/drivers/lima/lima_draw.c index 637d5ec59d0..47f6d2bfbf5 100644 --- a/src/gallium/drivers/lima/lima_draw.c +++ b/src/gallium/drivers/lima/lima_draw.c @@ -825,6 +825,19 @@ lima_update_gp_uniform(struct lima_context *ctx) struct lima_job *job = lima_job_get(ctx); + if (lima_debug & LIMA_DEBUG_GP) { + float *vs_const_buff_f = vs_const_buff; + printf("gp uniforms:\n"); + for (int i = 0; i < (size / sizeof(float)); i++) { + if ((i % 4) == 0) + printf("%4d:", i / 4); + printf(" %8.4f", vs_const_buff_f[i]); + if ((i % 4) == 3) + printf("\n"); + } + printf("\n"); + } + lima_dump_command_stream_print( job->dump, vs_const_buff, size, true, "update gp uniform at va %x\n", |