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>
(cherry picked from commit 7adece7ce0)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41540>
This commit is contained in:
Lionel Landwerlin 2026-04-13 15:17:56 +03:00 committed by Eric Engestrom
parent 4086191ee2
commit 5042e8eecf
2 changed files with 4 additions and 2 deletions

View file

@ -2214,7 +2214,7 @@
"description": "anv: fixup null address check",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

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