summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/intel_tex_obj.h
diff options
context:
space:
mode:
authorChris Forbes <chrisf@ijw.co.nz>2014-02-22 07:15:59 +1300
committerChris Forbes <chrisf@ijw.co.nz>2014-04-10 18:27:41 +1200
commit771c2ae0afc485a63e4668f0eb7713ea161f1b97 (patch)
tree954e4abf674b6b65a6eae9c5317f3b4ba8263b39 /src/mesa/drivers/dri/i965/intel_tex_obj.h
parentb7f011fdc9007c35921f6271b983ef4ccc6799e4 (diff)
downloadexternal_mesa3d-771c2ae0afc485a63e4668f0eb7713ea161f1b97.zip
external_mesa3d-771c2ae0afc485a63e4668f0eb7713ea161f1b97.tar.gz
external_mesa3d-771c2ae0afc485a63e4668f0eb7713ea161f1b97.tar.bz2
i965: Add _Format to intel_texobj.
This is the actual mesa_format to use. In non-view cases this is always the same as the mt's format. V4: Comment style Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Acked-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_tex_obj.h')
-rw-r--r--src/mesa/drivers/dri/i965/intel_tex_obj.h6
1 files changed, 6 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 78a0990..2d2211b 100644
--- a/src/mesa/drivers/dri/i965/intel_tex_obj.h
+++ b/src/mesa/drivers/dri/i965/intel_tex_obj.h
@@ -54,6 +54,12 @@ struct intel_texture_object
* might not all be the mipmap tree above.
*/
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.
+ */
+ mesa_format _Format;
};