radv: prepare fmask surface creation
authorDave Airlie <airlied@redhat.com>
Sun, 14 May 2017 23:43:25 +0000 (09:43 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 5 Jun 2017 00:44:24 +0000 (10:44 +1000)
commit607e61c40e42ec548edd6b65fa480f8fa8472412
tree87250a3c2d6ea30b88b84dc8b2f882deab211f80
parent8354f287db9fb1038ff2b889a9c46176527004a9
radv: prepare fmask surface creation

The old code copied over all the surface info from the image
surface, we only want some bits of it, and to modify the flags.

This prevents a regression in dEQP-VK.api.copy_and_blit.resolve_image.*
and others in the subsequent switch to ac_compute_surface.

v2:
- also disable opt4Space in radv_amdgpu_surface, so that we can
  apply this patch separately *before* switching to ac_compute_surface
  and hopefully avoid intermittent regressions (Nicolai)

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/amd/vulkan/radv_image.c
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_surface.c