iris: Store internal_format when getting resource from handle.
authorRafael Antognolli <rafael.antognolli@intel.com>
Wed, 13 Feb 2019 21:07:51 +0000 (13:07 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:12 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_resource.c

index ca8832c5b345d0afd1eda6686f845849ad819f89..7302f2ec604d234b5b19e6a98d6b09f0c3a1a523 100644 (file)
@@ -469,6 +469,7 @@ iris_resource_from_handle(struct pipe_screen *pscreen,
 
    const struct iris_format_info fmt =
       iris_format_for_usage(devinfo, templ->format, isl_usage);
+   res->internal_format = templ->format;
 
    if (templ->target == PIPE_BUFFER) {
       res->surf.tiling = ISL_TILING_LINEAR;