freedreno/a4xx: wire up ucp support
authorRob Clark <robclark@freedesktop.org>
Sat, 12 Sep 2015 15:15:32 +0000 (11:15 -0400)
committerRob Clark <robclark@freedesktop.org>
Thu, 17 Sep 2015 23:57:52 +0000 (19:57 -0400)
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a4xx/fd4_draw.c

index 2bd2ca23d54c73407f18a6bf7cc851aaad084c9c..025753c037e062de8076d3ddf01fef7aa43c0d42 100644 (file)
@@ -123,6 +123,7 @@ fd4_draw_vbo(struct fd_context *ctx, const struct pipe_draw_info *info)
                        // TODO set .half_precision based on render target format,
                        // ie. float16 and smaller use half, float32 use full..
                        .half_precision = !!(fd_mesa_debug & FD_DBG_FRAGHALF),
+                       .ucp_enables = ctx->rasterizer ? ctx->rasterizer->clip_plane_enable : 0,
                        .has_per_samp = (fd4_ctx->fsaturate || fd4_ctx->vsaturate),
                        .vsaturate_s = fd4_ctx->vsaturate_s,
                        .vsaturate_t = fd4_ctx->vsaturate_t,