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-04 10:35:16 +0200 |
commit | 202eb29e5522b7480c33937f9fd5db43774ad381 (patch) | |
tree | a448a33ceacbe191991a7ae377faa925d74e50b1 /src/intel/vulkan | |
parent | 95cfcc3b4370b1fbdfdd1a8ceb7cf2cf672ad63c (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]>
(cherry picked from commit e06bc0b16671b78032e06d9ddd547bb091501129)
Diffstat (limited to 'src/intel/vulkan')
-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 0572bd5708f..10885d8451d 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -1359,10 +1359,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; |