summaryrefslogtreecommitdiff
path: root/src/i830_memory.c
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyu.z.wang@intel.com>2008-03-13 23:58:56 +0800
committerZhenyu Wang <zhenyu.z.wang@intel.com>2008-03-13 23:58:56 +0800
commitf425181695b1b3864373e1919cf651229f19fa69 (patch)
treed7c2ffc9f757f80b002acd893a0ceb28fee4fe19 /src/i830_memory.c
parentf4cfc98ab038af4d5d52af12e4d60ded62cf4a6e (diff)
parent1c0e4958564588162bc22a980567436dfc9d1e56 (diff)
Merge branch 'master' into xvmc
Diffstat (limited to 'src/i830_memory.c')
-rw-r--r--src/i830_memory.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/i830_memory.c b/src/i830_memory.c
index ce6d7afe..9e23c3ca 100644
--- a/src/i830_memory.c
+++ b/src/i830_memory.c
@@ -543,7 +543,7 @@ static uint64_t
i830_get_gtt_physical(ScrnInfoPtr pScrn, unsigned long offset)
{
I830Ptr pI830 = I830PTR(pScrn);
- CARD32 gttentry;
+ uint32_t gttentry;
/* We don't have GTTBase set up on i830 yet. */
if (pI830->GTTBase == NULL)
@@ -730,10 +730,6 @@ i830_allocate_agp_memory(ScrnInfoPtr pScrn, i830_memory *mem, int flags)
return FALSE;
}
- if (!i830_bind_memory(pScrn, mem)) {
- return FALSE;
- }
-
return TRUE;
}
@@ -853,6 +849,11 @@ i830_allocate_memory(ScrnInfoPtr pScrn, const char *name,
i830_free_memory(pScrn, mem);
return NULL;
}
+
+ if (!i830_bind_memory(pScrn, mem)) {
+ i830_free_memory(pScrn, mem);
+ return NULL;
+ }
}
mem->tiling = TILE_NONE;
@@ -1712,8 +1713,8 @@ i830_set_tiling(ScrnInfoPtr pScrn, unsigned int offset,
enum tile_format tile_format)
{
I830Ptr pI830 = I830PTR(pScrn);
- CARD32 val;
- CARD32 fence_mask = 0;
+ uint32_t val;
+ uint32_t fence_mask = 0;
unsigned int fence_pitch;
unsigned int max_fence;
unsigned int fence_nr;