llvmpipe: Silence uninitialized variable warning about "scissor"

nr_planes is only > 3 when scissor is enabled, but gcc doesn't see it.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3867>
This commit is contained in:
Eric Anholt 2019-12-16 20:56:14 -08:00
parent dc8c5af99b
commit 81225e1f03

View file

@ -273,7 +273,7 @@ do_triangle_ccw(struct lp_setup_context *setup,
const struct lp_setup_variant_key *key = &setup->setup.variant->key;
struct lp_rast_triangle *tri;
struct lp_rast_plane *plane;
const struct u_rect *scissor;
const struct u_rect *scissor = NULL;
struct u_rect bbox, bboxpos;
boolean s_planes[4];
unsigned tri_bytes;