diff options
author | Thomas Hellström <thomas@tungstengraphics.com> | 2005-11-16 19:24:00 +0000 |
---|---|---|
committer | Thomas Hellström <thomas@tungstengraphics.com> | 2005-11-16 19:24:00 +0000 |
commit | 154cc16d08c5de175f8bdf83c685991a8b2cd71b (patch) | |
tree | bbf437f9b8b9537556a51650dcaccd91f23eeafb /src/mesa/drivers/dri/unichrome/via_fb.c | |
parent | 0ba7be0a5028ad3e6547eb0351967eb6083b7900 (diff) | |
download | external_mesa3d-154cc16d08c5de175f8bdf83c685991a8b2cd71b.zip external_mesa3d-154cc16d08c5de175f8bdf83c685991a8b2cd71b.tar.gz external_mesa3d-154cc16d08c5de175f8bdf83c685991a8b2cd71b.tar.bz2 |
Fixes for x86_64 Unichrome.
Diffstat (limited to 'src/mesa/drivers/dri/unichrome/via_fb.c')
-rw-r--r-- | src/mesa/drivers/dri/unichrome/via_fb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_fb.c b/src/mesa/drivers/dri/unichrome/via_fb.c index 5b6ed9b..48c7ed4 100644 --- a/src/mesa/drivers/dri/unichrome/via_fb.c +++ b/src/mesa/drivers/dri/unichrome/via_fb.c @@ -142,12 +142,12 @@ via_alloc_texture(struct via_context *vmesa, t->index = fb.index; if (t->memType == VIA_MEM_AGP) { - t->bufAddr = (GLubyte *)((GLuint)vmesa->viaScreen->agpLinearStart + + t->bufAddr = (GLubyte *)((unsigned long)vmesa->viaScreen->agpLinearStart + fb.offset); - t->texBase = (GLuint)vmesa->agpBase + fb.offset; + t->texBase = vmesa->agpBase + fb.offset; } else { - t->bufAddr = (GLubyte *)(fb.offset + (GLuint)vmesa->driScreen->pFB); + t->bufAddr = (GLubyte *)((unsigned long)vmesa->driScreen->pFB + fb.offset); t->texBase = fb.offset; } |