swr: set halfz rasterizer setting
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 9 Nov 2016 06:19:34 +0000 (01:19 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 10 Nov 2016 01:11:10 +0000 (20:11 -0500)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/swr_state.cpp

index 01cadcebbc4cd13ad88d6f96e8c493fb85c45aa0..d19acfbb347ba4026e92ab6b405b08a8a6c9b0b7 100644 (file)
@@ -921,6 +921,7 @@ swr_update_derived(struct pipe_context *pipe,
          rastState->depthFormat = swr_resource(zb->texture)->swr.format;
 
       rastState->depthClipEnable = rasterizer->depth_clip;
+      rastState->clipHalfZ = rasterizer->clip_halfz;
 
       rastState->clipDistanceMask =
          ctx->vs->info.base.num_written_clipdistance ?