diff options
author | Keith Whitwell <[email protected]> | 2008-05-01 18:13:46 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-05-02 11:11:27 +0100 |
commit | 731e7b961cd081ac6a64b636937716ce3a623c2c (patch) | |
tree | 16457f762c90edfe6059f8221368e96020bb8a7c /src/gallium/drivers/softpipe/sp_surface.c | |
parent | 251db95945c6b484a093336e7bf12aed6091de54 (diff) |
re-add pipe_surface map/unmap inlines
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_surface.c')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_surface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/softpipe/sp_surface.c b/src/gallium/drivers/softpipe/sp_surface.c index b82b1a8f37d..29a1e92416e 100644 --- a/src/gallium/drivers/softpipe/sp_surface.c +++ b/src/gallium/drivers/softpipe/sp_surface.c @@ -46,7 +46,6 @@ sp_surface_copy(struct pipe_context *pipe, struct pipe_surface *src, unsigned srcx, unsigned srcy, unsigned width, unsigned height) { - assert( dst->cpp == src->cpp ); void *dst_map = pipe->screen->surface_map( pipe->screen, dst, PIPE_BUFFER_USAGE_CPU_WRITE ); @@ -55,6 +54,7 @@ sp_surface_copy(struct pipe_context *pipe, src, PIPE_BUFFER_USAGE_CPU_READ ); + assert( dst->cpp == src->cpp ); assert(src_map && dst_map); pipe_copy_rect(dst_map, |