diff options
author | José Fonseca <[email protected]> | 2008-09-04 09:34:04 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-09-04 09:38:23 +0900 |
commit | 34cc7f5f1990e8e84628c24677a6bc715aeaf661 (patch) | |
tree | 128088d9c0c25c09caa5a48df723d29ef2c04fe7 /src/gallium/drivers/i915simple/i915_screen.c | |
parent | 65a094101f8463cd0d26104a25a77f24bc2f6949 (diff) |
i915: Use pipe_buffer_* inlines as much as possible.
Diffstat (limited to 'src/gallium/drivers/i915simple/i915_screen.c')
-rw-r--r-- | src/gallium/drivers/i915simple/i915_screen.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/i915simple/i915_screen.c b/src/gallium/drivers/i915simple/i915_screen.c index e9e40c3f0b2..1c976082df7 100644 --- a/src/gallium/drivers/i915simple/i915_screen.c +++ b/src/gallium/drivers/i915simple/i915_screen.c @@ -28,6 +28,7 @@ #include "util/u_memory.h" #include "pipe/p_winsys.h" +#include "pipe/p_inlines.h" #include "util/u_string.h" #include "i915_reg.h" @@ -207,7 +208,7 @@ i915_surface_map( struct pipe_screen *screen, struct pipe_surface *surface, unsigned flags ) { - char *map = screen->winsys->buffer_map( screen->winsys, surface->buffer, flags ); + char *map = pipe_buffer_map( screen, surface->buffer, flags ); if (map == NULL) return NULL; @@ -226,7 +227,7 @@ static void i915_surface_unmap(struct pipe_screen *screen, struct pipe_surface *surface) { - screen->winsys->buffer_unmap( screen->winsys, surface->buffer ); + pipe_buffer_unmap( screen, surface->buffer ); } |