Reviewed-by: Samuel Pitoiset <samuel.pitoi...@gmail.com>

On 05/01/2018 04:33 AM, Dave Airlie wrote:
From: Dave Airlie <airl...@redhat.com>

This is needed for gfx9 and later for all fmask surface index.

(Mentioned by Marek on irc)
---
  src/amd/vulkan/radv_image.c | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
index 0d0080ca889..ad480901eed 100644
--- a/src/amd/vulkan/radv_image.c
+++ b/src/amd/vulkan/radv_image.c
@@ -742,8 +742,10 @@ radv_image_get_fmask_info(struct radv_device *device,
        info.samples = 1;
        fmask.flags = image->surface.flags | RADEON_SURF_FMASK;
- if (!image->shareable)
+       if (!image->shareable) {
+               info.fmask_surf_index = &device->fmask_mrt_offset_counter;
                info.surf_index = &device->fmask_mrt_offset_counter;
+       }
/* Force 2D tiling if it wasn't set. This may occur when creating
         * FMASK for MSAA resolve on R6xx. On R6xx, the single-sample

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to