summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/intel_tex_obj.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-08-30 13:03:52 -0700
committerEric Anholt <eric@anholt.net>2013-09-30 14:35:42 -0700
commit16060c5adcd4d809f97e874fcde763260c17ac18 (patch)
tree0aac97e8759c5639552c564df8d655c3f81c3b51 /src/mesa/drivers/dri/i965/intel_tex_obj.h
parent97bdb4c039bb33dbbcbb43d0fd0bb24106777ae9 (diff)
downloadexternal_mesa3d-16060c5adcd4d809f97e874fcde763260c17ac18.zip
external_mesa3d-16060c5adcd4d809f97e874fcde763260c17ac18.tar.gz
external_mesa3d-16060c5adcd4d809f97e874fcde763260c17ac18.tar.bz2
i965: Don't relayout a texture just for baselevel changes.
As long as the baselevel, maxlevel still sit inside the range we had previously validated, there's no need to reallocate the texture. I also hope this makes our texture validation logic much more obvious. It's taken me enough tries to write this change, that's for sure. Reduces miptree copy count on a piglit run by 1.3%, though the change in amount of data moved is much smaller. Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_tex_obj.h')
-rw-r--r--src/mesa/drivers/dri/i965/intel_tex_obj.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_tex_obj.h b/src/mesa/drivers/dri/i965/intel_tex_obj.h
index e30dd8a..2d783c3 100644
--- a/src/mesa/drivers/dri/i965/intel_tex_obj.h
+++ b/src/mesa/drivers/dri/i965/intel_tex_obj.h
@@ -41,6 +41,9 @@ struct intel_texture_object
*/
unsigned int _MaxLevel;
+ unsigned int validated_first_level;
+ unsigned int validated_last_level;
+
/* On validation any active images held in main memory or in other
* regions will be copied to this region and the old storage freed.
*/