Commit 1a1c5570 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜 Committed by Marge Bot
Browse files

pan/bit: Make run more useful



..by printing some output.
Signed-off-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <mesa/mesa!4458>
parent 50476efb
...@@ -231,11 +231,11 @@ bit_vertex(struct panfrost_device *dev, panfrost_program prog, ...@@ -231,11 +231,11 @@ bit_vertex(struct panfrost_device *dev, panfrost_program prog,
/* Check the output varyings */ /* Check the output varyings */
if (sz_expected) { uint32_t *output = (uint32_t *) (var->cpu + 1024);
uint32_t *output = (uint32_t *) (var->cpu + 1024); float *foutput = (float *) output;
float *foutput = (float *) output; float *fexpected = (float *) expected;
float *fexpected = (float *) expected;
if (sz_expected) {
unsigned comp = memcmp(output, expected, sz_expected); unsigned comp = memcmp(output, expected, sz_expected);
succ &= (comp == 0); succ &= (comp == 0);
...@@ -252,6 +252,13 @@ bit_vertex(struct panfrost_device *dev, panfrost_program prog, ...@@ -252,6 +252,13 @@ bit_vertex(struct panfrost_device *dev, panfrost_program prog,
fprintf(stderr, "\n"); fprintf(stderr, "\n");
} }
} else if (debug == BIT_DEBUG_ALL) {
fprintf(stderr, "got [");
for (unsigned i = 0; i < 4; ++i)
fprintf(stderr, "%08X /* %f */ ", output[i], foutput[i]);
fprintf(stderr, "\n");
} }
return succ; return succ;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment