Commit e06bc0b1 authored by Juan Suárez Romero's avatar Juan Suárez Romero

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: fb1350c7 ("intel: Add and use helpers for level0 extent")
Reviewed-by: Nanley Chery's avatarNanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Lionel Landwerlin's avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
parent a7b6a869
Pipeline #46288 passed with stages
in 18 minutes and 50 seconds
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment