diff options
Diffstat (limited to 'src/amd/vulkan/radv_image.c')
-rw-r--r-- | src/amd/vulkan/radv_image.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index 9a2f32bec76..91c7e5ff79f 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -499,7 +499,8 @@ si_make_texture_descriptor(struct radv_device *device, S_008F20_PITCH_GFX6(image->fmask.pitch_in_pixels - 1); fmask_state[5] |= S_008F24_LAST_ARRAY(last_layer); } - } + } else if (fmask_state) + memset(fmask_state, 0, 8 * 4); } static void |