summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/intel
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2009-11-04 17:31:01 -0800
committerEric Anholt <[email protected]>2009-11-06 11:37:32 -0800
commit1166294d1dd253da63620235100a11f1981aa86d (patch)
treee3c268df097ccfb183cc8ac97a4bcdf5fcd26362 /src/mesa/drivers/dri/intel
parent75bdbdd90b15c8704d87ca195a364ff6a42edbb1 (diff)
intel: Finish removing the fallback code for bug #16697.
I fixed it properly as of 7216679c1998b49ff5b08e6b43f8d5779415bf54.
Diffstat (limited to 'src/mesa/drivers/dri/intel')
-rw-r--r--src/mesa/drivers/dri/intel/intel_mipmap_tree.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
index e082ebc799c..abb3024bfbb 100644
--- a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
@@ -321,12 +321,8 @@ intel_miptree_match_image(struct intel_mipmap_tree *mt,
struct intel_texture_image *intelImage = intel_texture_image(image);
GLuint level = intelImage->level;
- /* Images with borders are never pulled into mipmap trees.
- */
- if (image->Border ||
- ((image->_BaseFormat == GL_DEPTH_COMPONENT) &&
- ((image->TexObject->WrapS == GL_CLAMP_TO_BORDER) ||
- (image->TexObject->WrapT == GL_CLAMP_TO_BORDER))))
+ /* Images with borders are never pulled into mipmap trees. */
+ if (image->Border)
return GL_FALSE;
if (image->InternalFormat != mt->internal_format ||