diff options
author | Brian Paul <brianp@vmware.com> | 2009-09-27 20:24:59 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-09-27 20:24:59 -0600 |
commit | 9fbb8884f034e0d691fed0e099d4d796f3b42848 (patch) | |
tree | ba0555d8abd2864234f9770e0e99fe97533c9526 /src/mesa/drivers/dri/sis | |
parent | e0bc4533ebccbfb844522e2b6ddd171b97d693e8 (diff) |
mesa/drivers: use _mesa_get_format_bytes()
Diffstat (limited to 'src/mesa/drivers/dri/sis')
-rw-r--r-- | src/mesa/drivers/dri/sis/sis_tex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/sis/sis_tex.c b/src/mesa/drivers/dri/sis/sis_tex.c index f40a873209..38a309d41f 100644 --- a/src/mesa/drivers/dri/sis/sis_tex.c +++ b/src/mesa/drivers/dri/sis/sis_tex.c @@ -107,7 +107,7 @@ sisAllocTexImage( sisContextPtr smesa, sisTexObjPtr t, int level, } assert(t->format == image->_BaseFormat); - texel_size = image->TexFormat->TexelBytes; + texel_size = _mesa_get_format_bytes(image->TexFormat->MesaFormat); size = image->Width * image->Height * texel_size + TEXTURE_HW_PLUS; addr = sisAllocFB( smesa, size, &t->image[level].handle ); |