From 8d27bc351f6f043d628138891dfa7855d055c007 Mon Sep 17 00:00:00 2001 From: Icenowy Zheng Date: Thu, 11 Apr 2019 15:24:01 +0800 Subject: [PATCH] lima: add dummy set_sample_mask function The set_sample_mask function is required in util_blitter. Add a dummy one to make util_blitter work. Signed-off-by: Icenowy Zheng Reviewed-by: Qiang Yu --- src/gallium/drivers/lima/lima_state.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gallium/drivers/lima/lima_state.c b/src/gallium/drivers/lima/lima_state.c index 3691dd9b58d..b5598017acf 100644 --- a/src/gallium/drivers/lima/lima_state.c +++ b/src/gallium/drivers/lima/lima_state.c @@ -455,6 +455,12 @@ lima_set_damage_region(struct pipe_context *pctx, unsigned num_rects, int *rects return true; } +static void +lima_set_sample_mask(struct pipe_context *pctx, + unsigned sample_mask) +{ +} + void lima_state_init(struct lima_context *ctx) { @@ -491,6 +497,8 @@ lima_state_init(struct lima_context *ctx) ctx->base.create_sampler_view = lima_create_sampler_view; ctx->base.sampler_view_destroy = lima_sampler_view_destroy; ctx->base.set_sampler_views = lima_set_sampler_views; + + ctx->base.set_sample_mask = lima_set_sample_mask; } void -- 2.30.2