mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
vk/image: Stop hardcoding SurfaceType of VkImageView
Instead, translate VkImageViewType to a gen SurfaceType.
This commit is contained in:
parent
7ea121687c
commit
99031aa0f3
1 changed files with 1 additions and 1 deletions
|
|
@ -270,7 +270,7 @@ anv_image_view_init(struct anv_surface_view *view,
|
|||
};
|
||||
|
||||
struct GEN8_RENDER_SURFACE_STATE surface_state = {
|
||||
.SurfaceType = SURFTYPE_2D,
|
||||
.SurfaceType = anv_surf_type_from_image_view_type[pCreateInfo->viewType],
|
||||
.SurfaceArray = false,
|
||||
.SurfaceFormat = format,
|
||||
.SurfaceVerticalAlignment = anv_valign[image->v_align],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue