summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/python/st_softpipe_winsys.c
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2009-12-18 09:08:26 +0100
committerMichal Krol <michal@vmware.com>2009-12-18 09:08:26 +0100
commit7855fcb63ba0594cdaee15f8579b66af651828e0 (patch)
tree4ec55e91e49cd9600f362c32acc539696a8b1b8b /src/gallium/state_trackers/python/st_softpipe_winsys.c
parent465333ab7078daf878ad34ab172ebb15f8a003b3 (diff)
parentb1ed72ebe2599ec178f51d86fd42f26486b9a19b (diff)
Merge branch 'pipe-format-simplify'
Diffstat (limited to 'src/gallium/state_trackers/python/st_softpipe_winsys.c')
-rw-r--r--src/gallium/state_trackers/python/st_softpipe_winsys.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/python/st_softpipe_winsys.c b/src/gallium/state_trackers/python/st_softpipe_winsys.c
index 43c61af1ff..a3294e877a 100644
--- a/src/gallium/state_trackers/python/st_softpipe_winsys.c
+++ b/src/gallium/state_trackers/python/st_softpipe_winsys.c
@@ -40,6 +40,7 @@
#include "pipe/p_format.h"
#include "pipe/p_context.h"
#include "pipe/p_inlines.h"
+#include "util/u_format.h"
#include "util/u_math.h"
#include "util/u_memory.h"
#include "softpipe/sp_winsys.h"
@@ -168,8 +169,8 @@ st_softpipe_surface_buffer_create(struct pipe_winsys *winsys,
const unsigned alignment = 64;
unsigned nblocksy;
- 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);
return winsys->buffer_create(winsys, alignment,
usage,