iris: store modifier info in res

This commit is contained in:
Kenneth Graunke
2018-12-09 12:11:17 -08:00
parent 56f1fe3eac
commit bfc76d3525
2 changed files with 14 additions and 9 deletions

View File

@@ -112,6 +112,13 @@ struct iris_resource {
*/
enum isl_aux_state **state;
} aux;
/**
* For external surfaces, this is DRM format modifier that was used to
* create or import the surface. For internal surfaces, this will always
* be DRM_FORMAT_MOD_INVALID.
*/
const struct isl_drm_modifier_info *mod_info;
};
/**