r300g: fix warnings by using the const qualifier

See also the libdrm commit af98ccf4dd5dcb1b904ec32b9bd1521e6bf7dda5.
This commit is contained in:
Marek Olšák 2010-04-26 20:16:44 +02:00
parent 30c9bca502
commit 7d164fc359
2 changed files with 2 additions and 2 deletions

View 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,

View 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);