summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/unichrome/via_texmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri/unichrome/via_texmem.c')
-rw-r--r--src/mesa/drivers/dri/unichrome/via_texmem.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_texmem.c b/src/mesa/drivers/dri/unichrome/via_texmem.c
index f1f6b750ddd..2d8aecab4eb 100644
--- a/src/mesa/drivers/dri/unichrome/via_texmem.c
+++ b/src/mesa/drivers/dri/unichrome/via_texmem.c
@@ -441,14 +441,12 @@ void viaUploadTexImages(viaContextPtr vmesa, viaTextureObjectPtr t)
while (1) {
/*=* John Sheng [2003.5.31] agp tex *=*/
- via_alloc_texture(vmesa, t);
- /*via_alloc_texture_agp(vmesa, t);*/
-
- if (t->texMem.offset)
- break;
- else
- agpFullCount++;
+ if (via_alloc_texture_agp(vmesa, t))
+ break;
+ if (via_alloc_texture(vmesa, t))
+ break;
+ agpFullCount++;
if (vmesa->TexObjList.prev == vmesa->CurrentTexObj[0] ||
vmesa->TexObjList.prev == vmesa->CurrentTexObj[1]) {
#ifdef DEBUG