diff options
author | Michal Krol <[email protected]> | 2009-12-18 09:08:26 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-12-18 09:08:26 +0100 |
commit | 7855fcb63ba0594cdaee15f8579b66af651828e0 (patch) | |
tree | 4ec55e91e49cd9600f362c32acc539696a8b1b8b /src/gallium/winsys/drm/radeon | |
parent | 465333ab7078daf878ad34ab172ebb15f8a003b3 (diff) | |
parent | b1ed72ebe2599ec178f51d86fd42f26486b9a19b (diff) |
Merge branch 'pipe-format-simplify'
Diffstat (limited to 'src/gallium/winsys/drm/radeon')
-rw-r--r-- | src/gallium/winsys/drm/radeon/core/radeon_buffer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/winsys/drm/radeon/core/radeon_buffer.c b/src/gallium/winsys/drm/radeon/core/radeon_buffer.c index cb8d2c2cf24..b8be059ce86 100644 --- a/src/gallium/winsys/drm/radeon/core/radeon_buffer.c +++ b/src/gallium/winsys/drm/radeon/core/radeon_buffer.c @@ -35,6 +35,7 @@ #include "radeon_bo_gem.h" #include "softpipe/sp_texture.h" #include "r300_context.h" +#include "util/u_format.h" #include "util/u_math.h" #include <X11/Xutil.h> @@ -121,8 +122,8 @@ static struct pipe_buffer *radeon_surface_buffer_create(struct pipe_winsys *ws, const unsigned alignment = 64; unsigned nblocksy, size; - nblocksy = pf_get_nblocksy(format, height); - *stride = align(pf_get_stride(format, width), alignment); + nblocksy = util_format_get_nblocksy(format, height); + *stride = align(util_format_get_stride(format, width), alignment); size = *stride * nblocksy; return radeon_buffer_create(ws, 64, usage, size); |