diff options
author | Dave Airlie <[email protected]> | 2018-05-01 12:32:02 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2018-05-02 06:01:42 +1000 |
commit | e66f64c2855604c6148e8e865a65411ff0c3ba02 (patch) | |
tree | 518dda4209fbe2136f6de9ec93c56214b3d73608 /src/amd | |
parent | f298ed93d9ded6ef355cf6381b49a845c76084b0 (diff) |
radv: set fmask_surf_index on fmask surfaces.
This is needed for gfx9 and later for all fmask surface index.
(Mentioned by Marek on irc)
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/vulkan/radv_image.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index a6f3628c8f8..bfe497caa30 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 |