diff options
author | Juan A. Suarez Romero <[email protected]> | 2019-07-02 19:36:56 +0200 |
---|---|---|
committer | Juan A. Suarez Romero <[email protected]> | 2019-07-03 10:14:54 +0200 |
commit | e06bc0b16671b78032e06d9ddd547bb091501129 (patch) | |
tree | 4a04f638d5d665b5818e5d0effa305bea74bc24f | |
parent | a7b6a869a78724c55a6699969fe1d776713ae7ec (diff) |
intel: fix wrong format usage
Do not use the view format when filling the surface state.
Fixes dEQP-VK.image.texel_view_compatible.compute.extended.texture.*
Fixes: fb1350c76f1 ("intel: Add and use helpers for level0 extent")
Reviewed-by: Nanley Chery <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
-rw-r--r-- | src/intel/vulkan/anv_image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 9af7f7b66cc..4adefb979b7 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -1388,10 +1388,10 @@ anv_image_fill_surface_state(struct anv_device *device, */ const struct isl_format_layout *fmtl = isl_format_get_layout(surface->isl.format); - tmp_surf.format = view.format; tmp_surf.logical_level0_px = isl_surf_get_logical_level0_el(&tmp_surf); tmp_surf.phys_level0_sa = isl_surf_get_phys_level0_el(&tmp_surf); + tmp_surf.format = view.format; tile_x_sa /= fmtl->bw; tile_y_sa /= fmtl->bh; |