aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/intel_tex_obj.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-10-23 15:06:11 -0700
committerJason Ekstrand <[email protected]>2018-02-21 18:18:16 -0800
commit344b57b10b85c9e466367d83dcfc5b578e73efca (patch)
treedd9e08ff6482f8509c19692335fb1d91c8f2babd /src/mesa/drivers/dri/i965/intel_tex_obj.h
parent5b1b710e6f5321bed06b8c28524d8360412545f7 (diff)
i965/miptree: Loosen the format check in miptree_match_image
This function is used to determine when we need to re-allocate a miptree. Since we do nothing different in miptree allocation for sRGB vs. linear, loosening this should be safe and may lead to less copying and reallocating in some odd cases. Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_tex_obj.h')
-rw-r--r--src/mesa/drivers/dri/i965/intel_tex_obj.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_tex_obj.h b/src/mesa/drivers/dri/i965/intel_tex_obj.h
index 27c18b7c3ce..526f5ceb478 100644
--- a/src/mesa/drivers/dri/i965/intel_tex_obj.h
+++ b/src/mesa/drivers/dri/i965/intel_tex_obj.h
@@ -57,8 +57,8 @@ struct intel_texture_object
bool needs_validate;
/* Mesa format for the validated texture object. For non-views this
- * will always be the same as mt->format. For views, it may differ
- * since the mt is shared across views with differing formats.
+ * will always be the same as texObj->Image[0][0].TexFormat. For views, it
+ * may differ since the mt is shared across views with differing formats.
*/
mesa_format _Format;