From 296e26eec84a36a7c512eb333a1a98248fe0da25 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 8 Feb 2022 09:41:05 -0500 Subject: [PATCH] aux/trace: dump clear colors as uints dumping as float is nice if the clear color is a float, but if it isn't then the value is useless Reviewed-by: Adam Jackson Part-of: --- src/gallium/auxiliary/driver_trace/tr_context.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gallium/auxiliary/driver_trace/tr_context.c b/src/gallium/auxiliary/driver_trace/tr_context.c index 6bbfb2a..75036e8 100644 --- a/src/gallium/auxiliary/driver_trace/tr_context.c +++ b/src/gallium/auxiliary/driver_trace/tr_context.c @@ -1411,12 +1411,10 @@ trace_context_clear(struct pipe_context *_pipe, trace_dump_arg_begin("scissor_state"); trace_dump_scissor_state(scissor_state); trace_dump_arg_end(); - trace_dump_arg_begin("color"); if (color) - trace_dump_array(float, color->f, 4); + trace_dump_arg_array(uint, color->ui, 4); else trace_dump_null(); - trace_dump_arg_end(); trace_dump_arg(float, depth); trace_dump_arg(uint, stencil); @@ -1443,7 +1441,7 @@ trace_context_clear_render_target(struct pipe_context *_pipe, trace_dump_arg(ptr, pipe); trace_dump_arg(ptr, dst); - trace_dump_arg_array(float, color->f, 4); + trace_dump_arg_array(uint, color->ui, 4); trace_dump_arg(uint, dstx); trace_dump_arg(uint, dsty); trace_dump_arg(uint, width); -- 2.7.4