Mesa (master): trace: Match pipe_context::clear prototype.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Wed Apr 8 08:26:11 PDT 2009


Module: Mesa
Branch: master
Commit: 7000b9d74a4b9690c236ee40ddbeba1f24df1ab4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7000b9d74a4b9690c236ee40ddbeba1f24df1ab4

Author: José Fonseca <jfonseca at vmware.com>
Date:   Wed Apr  8 15:23:48 2009 +0100

trace: Match pipe_context::clear prototype.

---

 src/gallium/drivers/trace/tr_context.c |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/src/gallium/drivers/trace/tr_context.c b/src/gallium/drivers/trace/tr_context.c
index 6e86a5d..d50d872 100644
--- a/src/gallium/drivers/trace/tr_context.c
+++ b/src/gallium/drivers/trace/tr_context.c
@@ -973,7 +973,7 @@ trace_context_surface_fill(struct pipe_context *_pipe,
 
 static INLINE void
 trace_context_clear(struct pipe_context *_pipe,
-                    unsigned surfaces,
+                    unsigned buffers,
                     const float *rgba,
                     double depth,
                     unsigned stencil)
@@ -984,15 +984,12 @@ trace_context_clear(struct pipe_context *_pipe,
    trace_dump_call_begin("pipe_context", "clear");
 
    trace_dump_arg(ptr, pipe);
-   trace_dump_arg(uint, surfaces);
-   trace_dump_arg(float, rgba[0]);
-   trace_dump_arg(float, rgba[1]);
-   trace_dump_arg(float, rgba[2]);
-   trace_dump_arg(float, rgba[3]);
+   trace_dump_arg(uint, buffers);
+   trace_dump_arg_array(float, rgba, 4);
    trace_dump_arg(float, depth);
    trace_dump_arg(uint, stencil);
 
-   pipe->clear(pipe, surfaces, rgba, depth, stencil);
+   pipe->clear(pipe, buffers, rgba, depth, stencil);
 
    trace_dump_call_end();
 }



More information about the mesa-commit mailing list