From: Icenowy Zheng Date: Thu, 11 Apr 2019 07:24:01 +0000 (+0800) Subject: lima: add dummy set_sample_mask function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d27bc351f6f043d628138891dfa7855d055c007;p=mesa.git 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 --- 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