Mesa (master): u_vbuf: add some const qualifiers

Brian Paul brianp at kemper.freedesktop.org
Wed Nov 4 19:07:55 UTC 2015


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

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Oct 28 19:02:38 2015 -0600

u_vbuf: add some const qualifiers

Trivial.

---

 src/gallium/auxiliary/util/u_vbuf.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_vbuf.c b/src/gallium/auxiliary/util/u_vbuf.c
index b31ada1..9ddd922 100644
--- a/src/gallium/auxiliary/util/u_vbuf.c
+++ b/src/gallium/auxiliary/util/u_vbuf.c
@@ -998,7 +998,7 @@ u_vbuf_upload_buffers(struct u_vbuf *mgr,
    return PIPE_OK;
 }
 
-static boolean u_vbuf_need_minmax_index(struct u_vbuf *mgr)
+static boolean u_vbuf_need_minmax_index(const struct u_vbuf *mgr)
 {
    /* See if there are any per-vertex attribs which will be uploaded or
     * translated. Use bitmasks to get the info instead of looping over vertex
@@ -1009,7 +1009,7 @@ static boolean u_vbuf_need_minmax_index(struct u_vbuf *mgr)
             mgr->ve->noninstance_vb_mask_any & mgr->nonzero_stride_vb_mask)) != 0;
 }
 
-static boolean u_vbuf_mapping_vertex_buffer_blocks(struct u_vbuf *mgr)
+static boolean u_vbuf_mapping_vertex_buffer_blocks(const struct u_vbuf *mgr)
 {
    /* Return true if there are hw buffers which don't need to be translated.
     *




More information about the mesa-commit mailing list