mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
radv: set fmask state to all 0s when no fmask. (v2)
The shader reads the descriptor to decide if it should take the fmask value, however we weren't initing it always, which meant random crap, esp with MSAA depth textures. Fixes random hangs with: dEQP-VK.glsl.builtin_var.fragdepth.* v2: check fmask_state is not NULL Fixes:f4e499ec79"radv: add initial non-conformant radv vulkan driver" Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Signed-off-by: Dave Airlie <airlied@redhat.com> (cherry picked from commit51553c0bea) [Emil Velikov: resolve trivial conflicts] Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Conflicts: src/amd/vulkan/radv_image.c
This commit is contained in:
parent
18fd7249c5
commit
423dab9d32
1 changed files with 2 additions and 1 deletions
|
|
@ -382,7 +382,8 @@ si_make_texture_descriptor(struct radv_device *device,
|
|||
S_008F24_LAST_ARRAY(last_layer);
|
||||
fmask_state[6] = 0;
|
||||
fmask_state[7] = 0;
|
||||
}
|
||||
} else if (fmask_state)
|
||||
memset(fmask_state, 0, 8 * 4);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue