+ memset(&sr, 0, sizeof(sr));
+
+ if (ctx->DrawBuffer->Visual.depthBits > 0) {
+ if (ctx->Depth.Test) {
+ dsa->depth.enabled = 1;
+ dsa->depth.func = st_compare_func_to_pipe(ctx->Depth.Func);
+ if (dsa->depth.func != PIPE_FUNC_EQUAL)
+ dsa->depth.writemask = ctx->Depth.Mask;
+ }
+ if (ctx->Depth.BoundsTest) {
+ dsa->depth.bounds_test = 1;
+ dsa->depth.bounds_min = ctx->Depth.BoundsMin;
+ dsa->depth.bounds_max = ctx->Depth.BoundsMax;
+ }
+ }