llvmpipe: remove incorrect depth test check
authorBrian Paul <brianp@vmware.com>
Wed, 17 Mar 2010 21:09:35 +0000 (15:09 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 17 Mar 2010 22:29:34 +0000 (16:29 -0600)
src/gallium/drivers/llvmpipe/lp_state_fs.c

index a40302697046456602244866b6c0bae4e5e34cc6..b38e0f393dc89a4080cc1f146e2ec5c7e66191e5 100644 (file)
@@ -138,7 +138,7 @@ generate_pos0(LLVMBuilderRef builder,
 
 
 /**
- * Generate the depth test.
+ * Generate the depth /stencil test code.
  */
 static void
 generate_depth_stencil(LLVMBuilderRef builder,
@@ -152,9 +152,6 @@ generate_depth_stencil(LLVMBuilderRef builder,
    const struct util_format_description *format_desc;
    struct lp_type dst_type;
 
-   if(!key->depth.enabled)
-      return;
-
    format_desc = util_format_description(key->zsbuf_format);
    assert(format_desc);