llvmpipe: pass mask store into interp for centroid interpolation
authorDave Airlie <airlied@redhat.com>
Fri, 20 Mar 2020 20:50:48 +0000 (06:50 +1000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 6 May 2020 06:20:38 +0000 (06:20 +0000)
This enables centroid interpolation to work, using the current
coverage masks.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4122>

src/gallium/drivers/llvmpipe/lp_state_fs.c

index 8c3fc05fa0449b126240d0e124abf29d1ea30182..f09c49a1ff37fd9acbe9195ccb2aeab2b63ae5cc 100644 (file)
@@ -625,7 +625,7 @@ generate_fs_loop(struct gallivm_state *gallivm,
    }
    system_values.sample_pos = sample_pos_array;
 
-   lp_build_interp_soa_update_inputs_dyn(interp, gallivm, loop_state.counter, NULL, NULL);
+   lp_build_interp_soa_update_inputs_dyn(interp, gallivm, loop_state.counter, mask_store, NULL);
 
    struct lp_build_tgsi_params params;
    memset(&params, 0, sizeof(params));