u_vbuf: add some const qualifiers
authorBrian Paul <brianp@vmware.com>
Thu, 29 Oct 2015 01:02:38 +0000 (19:02 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 4 Nov 2015 18:51:40 +0000 (11:51 -0700)
Trivial.

src/gallium/auxiliary/util/u_vbuf.c

index b31ada1..9ddd922 100644 (file)
@@ -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.
     *