summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/intel/intel_tex.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-08-20 22:55:47 -0700
committerEric Anholt <eric@anholt.net>2008-08-20 23:18:02 -0700
commit495c02262eaaa68f2df23c2265362da51851c57a (patch)
tree9e59f8665e2e32209e318c1acf6139548cddfc5f /src/mesa/drivers/dri/intel/intel_tex.h
parent8f1d5ca086e16a82d7d7eb5500df9ad74f0a703f (diff)
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.
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_tex.h')
-rw-r--r--src/mesa/drivers/dri/intel/intel_tex.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_tex.h b/src/mesa/drivers/dri/intel/intel_tex.h
index 60ab8203e5..fe7a8badf8 100644
--- a/src/mesa/drivers/dri/intel/intel_tex.h
+++ b/src/mesa/drivers/dri/intel/intel_tex.h
@@ -142,6 +142,14 @@ void intelSetTexBuffer(__DRIcontext *pDRICtx,
GLuint intel_finalize_mipmap_tree(struct intel_context *intel, GLuint unit);
+void intel_tex_map_level_images(struct intel_context *intel,
+ struct intel_texture_object *intelObj,
+ int level);
+
+void intel_tex_unmap_level_images(struct intel_context *intel,
+ struct intel_texture_object *intelObj,
+ int level);
+
void intel_tex_map_images(struct intel_context *intel,
struct intel_texture_object *intelObj);