nouveau: make data argument of nouveau_context::push_data const
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 26 Aug 2011 20:59:19 +0000 (22:59 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 14 Sep 2011 14:19:51 +0000 (16:19 +0200)
src/gallium/drivers/nouveau/nouveau_context.h
src/gallium/drivers/nv50/nv50_context.h
src/gallium/drivers/nv50/nv50_transfer.c
src/gallium/drivers/nvc0/nvc0_context.h
src/gallium/drivers/nvc0/nvc0_transfer.c

index 19bf7c84ac7350fde934a24963f6966c4a64a956..7b5f3f1ec39e57a8a7bd4898c139c9272d3a922c 100644 (file)
@@ -14,7 +14,7 @@ struct nouveau_context {
                      struct nouveau_bo *src, unsigned, unsigned, unsigned);
    void (*push_data)(struct nouveau_context *,
                      struct nouveau_bo *dst, unsigned, unsigned,
-                     unsigned, void *);
+                     unsigned, const void *);
 };
 
 static INLINE struct nouveau_context *
index 384ca8fb4bc66e45f327d62b39a7ecdca3bb061f..77dbc823c7ac01678c189db5e1199e022703caa8 100644 (file)
@@ -198,7 +198,7 @@ nv50_m2mf_transfer_rect(struct pipe_screen *pscreen,
 void
 nv50_sifc_linear_u8(struct nouveau_context *pipe,
                     struct nouveau_bo *dst, unsigned offset, unsigned domain,
-                    unsigned size, void *data);
+                    unsigned size, const void *data);
 void
 nv50_m2mf_copy_linear(struct nouveau_context *pipe,
                       struct nouveau_bo *dst, unsigned dstoff, unsigned dstdom,
index 0ff79eb908a642e6d0684fd4e7b657cf33be5b4f..c86c417c071d69768c330a0a816382b10c525062 100644 (file)
@@ -140,7 +140,7 @@ nv50_m2mf_transfer_rect(struct pipe_screen *pscreen,
 void
 nv50_sifc_linear_u8(struct nouveau_context *nv,
                     struct nouveau_bo *dst, unsigned offset, unsigned domain,
-                    unsigned size, void *data)
+                    unsigned size, const void *data)
 {
    struct nouveau_channel *chan = nv->screen->channel;
    uint32_t *src = (uint32_t *)data;
index aa50df076b15c42583d0ae9ad0036e9f8242b0a1..353a5418dd5e3c17e71d1ae8a77794afa6109b32 100644 (file)
@@ -204,8 +204,8 @@ nvc0_m2mf_transfer_rect(struct pipe_screen *pscreen,
                         uint32_t nblocksx, uint32_t nblocksy);
 void
 nvc0_m2mf_push_linear(struct nouveau_context *nv,
-                     struct nouveau_bo *dst, unsigned offset, unsigned domain,
-                     unsigned size, void *data);
+                      struct nouveau_bo *dst, unsigned offset, unsigned domain,
+                      unsigned size, const void *data);
 void
 nvc0_m2mf_copy_linear(struct nouveau_context *nv,
                      struct nouveau_bo *dst, unsigned dstoff, unsigned dstdom,
index ecc9e213250849553c3140f399d5b444f464c32e..69d4a90ed3d57ceb4f18b78a54401ce1c6f521b1 100644 (file)
@@ -105,7 +105,7 @@ nvc0_m2mf_transfer_rect(struct pipe_screen *pscreen,
 void
 nvc0_m2mf_push_linear(struct nouveau_context *nv,
                       struct nouveau_bo *dst, unsigned offset, unsigned domain,
-                      unsigned size, void *data)
+                      unsigned size, const void *data)
 {
    struct nouveau_channel *chan = nv->screen->channel;
    uint32_t *src = (uint32_t *)data;