summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-11-02 18:42:34 +0100
committerLuc Verhaegen <libv@skynet.be>2009-11-18 09:52:33 +0100
commitef0be37d374609e7cf3e754640af23c0cb0db4c2 (patch)
tree71d5f7cba36103a132337e02717ec4d1d50fa99b
parentf9dd9c38e363aec6f0f50888b0046a872e2a2528 (diff)
DRI: mesa: remove gl_texture_image::IsCompressed field
Use _mesa_is_format_compressed() instead. Original SHA-ID: b6bdafdf2cf1110b4a5ca7cf9e1c3dcb124b800f
-rw-r--r--dri/via_tex.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dri/via_tex.c b/dri/via_tex.c
index b6be06d..a4cf546 100644
--- a/dri/via_tex.c
+++ b/dri/via_tex.c
@@ -696,7 +696,6 @@ static void viaTexImage(GLcontext *ctx,
if (texelBytes == 0) {
/* compressed format */
- texImage->IsCompressed = GL_TRUE;
texImage->CompressedSize =
ctx->Driver.CompressedTextureSize(ctx, texImage->Width,
texImage->Height, texImage->Depth,
@@ -713,7 +712,7 @@ static void viaTexImage(GLcontext *ctx,
viaImage->pitchLog2 = logbase2(postConvWidth * texelBytes);
/* allocate memory */
- if (texImage->IsCompressed)
+ if (_mesa_is_format_compressed(texImage->TexFormat))
sizeInBytes = texImage->CompressedSize;
else
sizeInBytes = postConvWidth * postConvHeight * texelBytes;
@@ -793,7 +792,7 @@ static void viaTexImage(GLcontext *ctx,
GLint dstRowStride;
GLboolean success;
- if (texImage->IsCompressed) {
+ if (_mesa_is_format_compressed(texImage->TexFormat)) {
dstRowStride = _mesa_compressed_row_stride(texImage->TexFormat, width);
}
else {