OSDN Git Service

intel: Fix SGIS_generate_mipmap after a miptree had been validated.
authorEric Anholt <eric@anholt.net>
Thu, 21 Aug 2008 05:55:47 +0000 (22:55 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 21 Aug 2008 06:18:02 +0000 (23:18 -0700)
commit495c02262eaaa68f2df23c2265362da51851c57a
tree9e59f8665e2e32209e318c1acf6139548cddfc5f
parent8f1d5ca086e16a82d7d7eb5500df9ad74f0a703f
intel: Fix SGIS_generate_mipmap after a miptree had been validated.

Previously, the updated images would be ignored because the miptree in the
image matched the miptree in the object, even though Mesa core had just attached
updated contents in ->Data.  Additionally, Mesa core could have tried to
free inside our miptree if it had already been validated.

Fixes bug #17077.
src/mesa/drivers/dri/intel/intel_tex.c
src/mesa/drivers/dri/intel/intel_tex.h
src/mesa/drivers/dri/intel/intel_tex_validate.c