Skip to content
Commit ae5e793f authored by Faith Ekstrand's avatar Faith Ekstrand Committed by Emil Velikov
Browse files

anv/pipeline: Don't look at blend state unless we have an attachment



Without this, we may end up dereferencing blend before we check for
binding->index != UINT32_MAX.  However, Vulkan allows the blend state to
be NULL so long as you don't have any color attachments.  This fixes a
segfault when running The Talos Principal.

Fixes: 12f4e00b
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: default avatarAlex Smith <asmith@feralinteractive.com>
Reviewed-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
(cherry picked from commit c8949e24)
parent 0bc9182f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment