From 771c2ae0afc485a63e4668f0eb7713ea161f1b97 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sat, 22 Feb 2014 07:15:59 +1300 Subject: 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 Reviewed-by: Kenneth Graunke Acked-by: Eric Anholt --- src/mesa/drivers/dri/i965/intel_tex_obj.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mesa/drivers/dri/i965/intel_tex_obj.h') 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; }; -- cgit v1.1