ac/surface: only adjust pitch if surf_pitch was modified

Modifying pitch for all LINEAR surface isn't correct;
the original change that modified surf_pitch was only
intended for YUV textures.

This fixes vkGetImageSubresourceLayout rowPitch return value

Fixes: fcc499d5 (ac/surface: adjust gfx9.pitch[*] based on surf->blk_w)

v2: add check for UYVY format (Pierre-Eric)
v3: move blk_w division to above if check (Pierre-Eric)

Reviewed-by: Pierre-Eric Pelloux-Prayer <>
Reviewed-by: Bas Nieuwenhuizen <>
Part-of: <>
(cherry picked from commit 347a5b79f974a99874e12ad1806850295995c823)
2 files changed