diff options
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_encode.c')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_encode.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_encode.c b/src/gallium/drivers/virgl/virgl_encode.c index 6b800d3d077..c7c6b1e7d34 100644 --- a/src/gallium/drivers/virgl/virgl_encode.c +++ b/src/gallium/drivers/virgl/virgl_encode.c @@ -726,6 +726,13 @@ void virgl_encoder_set_sample_mask(struct virgl_context *ctx, virgl_encoder_write_dword(ctx->cbuf, sample_mask); } +void virgl_encoder_set_min_samples(struct virgl_context *ctx, + unsigned min_samples) +{ + virgl_encoder_write_cmd_dword(ctx, VIRGL_CMD0(VIRGL_CCMD_SET_MIN_SAMPLES, 0, VIRGL_SET_MIN_SAMPLES_SIZE)); + virgl_encoder_write_dword(ctx->cbuf, min_samples); +} + void virgl_encoder_set_clip_state(struct virgl_context *ctx, const struct pipe_clip_state *clip) { |