diff options
author | Rafael Antognolli <[email protected]> | 2019-02-13 13:07:51 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:12 -0800 |
commit | 455c959689ea709a8572cd34f13139887748fff8 (patch) | |
tree | 1c312f20df5fad619d8c8f04a705d07f06bb9906 | |
parent | 973f01d55a2fff699f28816e3946c15f138a4c39 (diff) |
iris: Store internal_format when getting resource from handle.
-rw-r--r-- | src/gallium/drivers/iris/iris_resource.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c index ca8832c5b34..7302f2ec604 100644 --- a/src/gallium/drivers/iris/iris_resource.c +++ b/src/gallium/drivers/iris/iris_resource.c @@ -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; |