aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/virgl/virgl_context.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_context.c')
-rw-r--r--src/gallium/drivers/virgl/virgl_context.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_context.c b/src/gallium/drivers/virgl/virgl_context.c
index f68ac815f15..bbb5247c86f 100644
--- a/src/gallium/drivers/virgl/virgl_context.c
+++ b/src/gallium/drivers/virgl/virgl_context.c
@@ -464,6 +464,9 @@ static void *virgl_create_rasterizer_state(struct pipe_context *ctx,
vrs->rs = *rs_state;
vrs->handle = virgl_object_assign_handle();
+ assert(rs_state->depth_clip_near ||
+ virgl_screen(ctx->screen)->caps.caps.v1.bset.depth_clip_disable);
+
virgl_encode_rasterizer_state(vctx, vrs->handle, rs_state);
return (void *)vrs;
}