summaryrefslogtreecommitdiffstats
path: root/src/intel/isl/isl_surface_state.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-04-15 16:53:31 -0700
committerJason Ekstrand <[email protected]>2016-04-21 20:44:27 -0700
commit90576ac96303941ffefe50e56aad15ba09459aa8 (patch)
treeb8ee5adadf3e014c499c801ca1d12af1cf1668be /src/intel/isl/isl_surface_state.c
parent37f6f21b1f65d13c706a5de00e531608fea9ea66 (diff)
isl: Take a devinfo in lower_storage_image_format instead of an isl_device
We want to call this function from the shader compiler and having a full isl_device available at that point isn't practical. Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/intel/isl/isl_surface_state.c')
-rw-r--r--src/intel/isl/isl_surface_state.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/intel/isl/isl_surface_state.c b/src/intel/isl/isl_surface_state.c
index cac59fab78e..dd885313aed 100644
--- a/src/intel/isl/isl_surface_state.c
+++ b/src/intel/isl/isl_surface_state.c
@@ -308,7 +308,8 @@ isl_genX(surf_fill_state_s)(const struct isl_device *dev, void *state,
}
if (info->view->usage & ISL_SURF_USAGE_STORAGE_BIT) {
- s.SurfaceFormat = isl_lower_storage_image_format(dev, info->view->format);
+ s.SurfaceFormat =
+ isl_lower_storage_image_format(dev->info, info->view->format);
} else {
s.SurfaceFormat = info->view->format;
}