summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_inlines.h
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-01-21 09:42:05 -0800
committerJosé Fonseca <jfonseca@vmware.com>2010-01-21 15:18:40 -0800
commit8410f7cde30cc1170ae266cf3a0eb7e0e37c454a (patch)
tree712433aea37b1abcd1a5e5965d48a9b40c6b9754 /src/mesa/state_tracker/st_inlines.h
parent37246f854b49101b5a112cd5a0bd93bab1b78f7a (diff)
mesa: Use pipe_buffer_write_nooverlap where appropriate.
Diffstat (limited to 'src/mesa/state_tracker/st_inlines.h')
-rw-r--r--src/mesa/state_tracker/st_inlines.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_inlines.h b/src/mesa/state_tracker/st_inlines.h
index a41cfeb96f..dccc46f12d 100644
--- a/src/mesa/state_tracker/st_inlines.h
+++ b/src/mesa/state_tracker/st_inlines.h
@@ -126,6 +126,16 @@ st_no_flush_pipe_buffer_write(struct st_context *st,
}
static INLINE void
+st_no_flush_pipe_buffer_write_nooverlap(struct st_context *st,
+ struct pipe_buffer *buf,
+ unsigned int offset,
+ unsigned int size,
+ const void * data)
+{
+ pipe_buffer_write_nooverlap(st->pipe->screen, buf, offset, size, data);
+}
+
+static INLINE void
st_cond_flush_pipe_buffer_read(struct st_context *st,
struct pipe_buffer *buf,
unsigned int offset,