r300g: fix warnings by using the const qualifier
authorMarek Olšák <maraeo@gmail.com>
Mon, 26 Apr 2010 18:16:44 +0000 (20:16 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 26 Apr 2010 18:31:17 +0000 (20:31 +0200)
See also the libdrm commit af98ccf4dd5dcb1b904ec32b9bd1521e6bf7dda5.

src/gallium/drivers/r300/r300_winsys.h
src/gallium/winsys/radeon/drm/radeon_r300.c

index 60c4d18e3a2f96d612759094bddaf567ae9e9d73..1642981eaa8328d11b077aa4697a1ed5c909d2f8 100644 (file)
@@ -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,
index cab41dba3d50bd70d52ba6ebd80284350fc6997f..80923de9373d23d7f2f13e42227debb0a3fe84d0 100644 (file)
@@ -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);