mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
isl/state: Put surface format setup at the top
This is purely cosmetic, but it makes things look a bit more readable.
Reviewed-by: Chad Versace <chad.versace@intel.com>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit e66e70ef47)
This commit is contained in:
parent
8b3333d1df
commit
29b24d75eb
1 changed files with 7 additions and 7 deletions
|
|
@ -206,6 +206,13 @@ isl_genX(surf_fill_state_s)(const struct isl_device *dev, void *state,
|
|||
|
||||
s.SurfaceType = get_surftype(info->surf->dim, info->view->usage);
|
||||
|
||||
if (info->view->usage & ISL_SURF_USAGE_STORAGE_BIT) {
|
||||
s.SurfaceFormat =
|
||||
isl_lower_storage_image_format(dev->info, info->view->format);
|
||||
} else {
|
||||
s.SurfaceFormat = info->view->format;
|
||||
}
|
||||
|
||||
s.SurfaceArray = info->surf->phys_level0_sa.array_len > 1;
|
||||
s.SurfaceVerticalAlignment = valign;
|
||||
s.SurfaceHorizontalAlignment = halign;
|
||||
|
|
@ -291,13 +298,6 @@ isl_genX(surf_fill_state_s)(const struct isl_device *dev, void *state,
|
|||
s.SurfacePitch = info->surf->row_pitch - 1;
|
||||
}
|
||||
|
||||
if (info->view->usage & ISL_SURF_USAGE_STORAGE_BIT) {
|
||||
s.SurfaceFormat =
|
||||
isl_lower_storage_image_format(dev->info, info->view->format);
|
||||
} else {
|
||||
s.SurfaceFormat = info->view->format;
|
||||
}
|
||||
|
||||
switch (s.SurfaceType) {
|
||||
case SURFTYPE_1D:
|
||||
case SURFTYPE_2D:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue