From 39826a2036315ccf8190b9e4c8c40d58bfdbfee9 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Mon, 14 Jun 2010 02:26:02 +0200 Subject: r300g: simplify reloc macros --- src/gallium/drivers/r300/r300_screen_buffer.h | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'src/gallium/drivers/r300/r300_screen_buffer.h') diff --git a/src/gallium/drivers/r300/r300_screen_buffer.h b/src/gallium/drivers/r300/r300_screen_buffer.h index 87b42b9412..ff35585870 100644 --- a/src/gallium/drivers/r300/r300_screen_buffer.h +++ b/src/gallium/drivers/r300/r300_screen_buffer.h @@ -116,25 +116,4 @@ static INLINE boolean r300_add_texture(struct r300_winsys_screen *rws, return rws->add_buffer(rws, tex->buffer, rd, wr); } -static INLINE void r300_buffer_write_reloc(struct r300_winsys_screen *rws, - struct r300_buffer *buf, - enum r300_buffer_domain rd, - enum r300_buffer_domain wd, - uint32_t flags) -{ - if (!buf->buf) - return; - - rws->write_cs_reloc(rws, buf->buf, rd, wd, flags); -} - -static INLINE void r300_texture_write_reloc(struct r300_winsys_screen *rws, - struct r300_texture *texture, - enum r300_buffer_domain rd, - enum r300_buffer_domain wd, - uint32_t flags) -{ - rws->write_cs_reloc(rws, texture->buffer, rd, wd, flags); -} - #endif -- cgit v1.2.3