Mesa (master): r300g: fix warnings by using the const qualifier

Marek Olšák mareko at kemper.freedesktop.org
Mon Apr 26 18:32:49 UTC 2010


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

Author: Marek Olšák <maraeo at gmail.com>
Date:   Mon Apr 26 20:16:44 2010 +0200

r300g: fix warnings by using the const qualifier

See also the libdrm commit af98ccf4dd5dcb1b904ec32b9bd1521e6bf7dda5.

---

 src/gallium/drivers/r300/r300_winsys.h      |    2 +-
 src/gallium/winsys/radeon/drm/radeon_r300.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_winsys.h b/src/gallium/drivers/r300/r300_winsys.h
index 60c4d18..1642981 100644
--- a/src/gallium/drivers/r300/r300_winsys.h
+++ b/src/gallium/drivers/r300/r300_winsys.h
@@ -121,7 +121,7 @@ struct r300_winsys_screen {
 
     /* Write a table of dwords to the command buffer. */
     void (*write_cs_table)(struct r300_winsys_screen* winsys,
-                           void *dwords, unsigned count);
+                           const void *dwords, unsigned count);
 
     /* Write a relocated dword to the command buffer. */
     void (*write_cs_reloc)(struct r300_winsys_screen *winsys,
diff --git a/src/gallium/winsys/radeon/drm/radeon_r300.c b/src/gallium/winsys/radeon/drm/radeon_r300.c
index cab41db..80923de 100644
--- a/src/gallium/winsys/radeon/drm/radeon_r300.c
+++ b/src/gallium/winsys/radeon/drm/radeon_r300.c
@@ -202,7 +202,7 @@ static void radeon_write_cs_dword(struct r300_winsys_screen *rws,
 }
 
 static void radeon_write_cs_table(struct r300_winsys_screen *rws,
-                                  void *table, unsigned count)
+                                  const void *table, unsigned count)
 {
     struct radeon_libdrm_winsys *ws = radeon_winsys_screen(rws);
     radeon_cs_write_table(ws->cs, table, count);




More information about the mesa-commit mailing list