anv: fixup null address check

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40387>
This commit is contained in:
Lionel Landwerlin 2026-04-13 15:17:56 +03:00 committed by Marge Bot
parent 3ffca66b3c
commit 7adece7ce0

View file

@ -60,7 +60,9 @@ static void
emit_base_vertex_instance_bo(struct anv_cmd_buffer *cmd_buffer,
struct anv_address addr)
{
emit_vertex_bo(cmd_buffer, addr, addr.bo ? 8 : 0, ANV_SVGS_VB_INDEX);
emit_vertex_bo(cmd_buffer, addr,
anv_address_is_null(addr) ? 0 : 8,
ANV_SVGS_VB_INDEX);
}
static void