gallivm: initialize texture_unit_offset in emit_size_query

this fixes a crash, suggested by Dave Airlie

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17692>
This commit is contained in:
Marek Olšák 2022-08-03 17:19:42 -04:00 committed by Marge Bot
parent 60272d7db4
commit fd7a968c36

View file

@ -2654,6 +2654,7 @@ emit_size_query( struct lp_build_tgsi_soa_context *bld,
params.int_type = bld->bld_base.int_bld.type;
params.texture_unit = unit;
params.texture_unit_offset = NULL;
params.target = pipe_target;
params.context_ptr = bld->context_ptr;
params.is_sviewinfo = TRUE;