Mesa (gallium-resources): util: noop implementation of transfer_flush_region

Keith Whitwell keithw at kemper.freedesktop.org
Sun Mar 14 11:32:59 UTC 2010


Module: Mesa
Branch: gallium-resources
Commit: a0543b13c042e3c1142522d9d136f16fd4cabf78
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a0543b13c042e3c1142522d9d136f16fd4cabf78

Author: Keith Whitwell <keithw at vmware.com>
Date:   Sun Mar 14 11:32:13 2010 +0000

util: noop implementation of transfer_flush_region

---

 src/gallium/auxiliary/util/u_transfer.c |    8 ++++++++
 src/gallium/auxiliary/util/u_transfer.h |    4 ++++
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_transfer.c b/src/gallium/auxiliary/util/u_transfer.c
index d0ea89f..f82b031 100644
--- a/src/gallium/auxiliary/util/u_transfer.c
+++ b/src/gallium/auxiliary/util/u_transfer.c
@@ -96,3 +96,11 @@ out:
       pipe_transfer_destroy(pipe, transfer);
 }
 
+
+void u_transfer_flush_region_noop( struct pipe_context *pipe,
+				   struct pipe_transfer *transfer,
+				   const struct pipe_box *box)
+{
+   /* This is a no-op implementation, nothing to do.
+    */
+}
diff --git a/src/gallium/auxiliary/util/u_transfer.h b/src/gallium/auxiliary/util/u_transfer.h
index eeef88d..2e1ad31 100644
--- a/src/gallium/auxiliary/util/u_transfer.h
+++ b/src/gallium/auxiliary/util/u_transfer.h
@@ -22,4 +22,8 @@ void u_transfer_inline_read( struct pipe_context *pipe,
 			      enum pipe_transfer_usage usage,
 			      const struct pipe_box *box,
 			     void *data );
+
+void u_transfer_flush_region_noop( struct pipe_context *pipe,
+				   struct pipe_transfer *transfer,
+				   const struct pipe_box *box);
 #endif




More information about the mesa-commit mailing list