gallivm: fix perspective enable if usage_mask doesn't have 0 bit set
authorDave Airlie <airlied@redhat.com>
Tue, 3 Dec 2019 03:42:03 +0000 (13:42 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 11 Dec 2019 23:16:33 +0000 (09:16 +1000)
commit63b3d38a505d18e3aa1bea3ed4e8b994273b557e
treec1c79bc3f93f42f5d3edf43e53b6d473a4fa4676
parentbf2904010341e31d0d66954fcbd88da4da4e1cdd
gallivm: fix perspective enable if usage_mask doesn't have 0 bit set

The current code looks like a typo, and fails if the usage_mask
is for a y/z enabled input.

Fixes piglit ext_transform_feedback-immediate-reuse-index-buffer
with llvmpipe/nir

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/llvmpipe/lp_setup_point.c