gallivm/draw: calloc prim id toavoid undef
authorDave Airlie <airlied@redhat.com>
Wed, 8 Apr 2020 05:43:47 +0000 (15:43 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 15 Apr 2020 04:26:11 +0000 (14:26 +1000)
commitccc6a48ec5be0a748d77d56168ba90e2784b0a33
tree4ea0593236287c7b18aeab1e0857383e5116199e
parente20b3b37202eb775009c7a62d98515f49cda6e61
gallivm/draw: calloc prim id toavoid undef

Otherwise masked off channels can access random bad memory

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4560>
src/gallium/auxiliary/draw/draw_gs.c