gallium/i965: remove UsesDepth, UsesKill - use tgsi_shader_info instead
authorBrian <brian@i915.localnet.net>
Wed, 27 Feb 2008 23:09:17 +0000 (16:09 -0700)
committerBrian <brian@i915.localnet.net>
Wed, 27 Feb 2008 23:09:17 +0000 (16:09 -0700)
src/gallium/drivers/i965simple/brw_context.h
src/gallium/drivers/i965simple/brw_wm.c
src/gallium/drivers/i965simple/brw_wm_state.c

index fbc89c8..170d50c 100644 (file)
@@ -218,8 +218,6 @@ struct brw_fragment_program {
    struct brw_shader_info info2;  /* XXX get rid of this */
    
    boolean UsesDepth;
-   boolean UsesKill;
-   boolean ComputesDepth;
    int id;
 };
 
index 539b170..1c4b5b5 100644 (file)
@@ -94,11 +94,11 @@ static void brw_wm_populate_key( struct brw_context *brw,
    /* Build the index for table lookup
     */
    /* BRW_NEW_DEPTH_STENCIL */
-   if (fp->UsesKill ||
+   if (fp->info.uses_kill ||
        brw->attribs.DepthStencil->alpha.enabled)
       lookup |= IZ_PS_KILL_ALPHATEST_BIT;
 
-   if (fp->ComputesDepth)
+   if (fp->info.writes_z)
       lookup |= IZ_PS_COMPUTES_DEPTH_BIT;
 
    if (brw->attribs.DepthStencil->depth.enabled)
index 5ccd488..f3aa36b 100644 (file)
@@ -117,11 +117,11 @@ static void upload_wm_unit(struct brw_context *brw )
       if (fp->UsesDepth)
         wm.wm5.program_uses_depth = 1; /* as far as we can tell */
 
-      if (fp->ComputesDepth)
+      if (fp->info.writes_z)
         wm.wm5.program_computes_depth = 1;
 
       /* BRW_NEW_ALPHA_TEST */
-      if (fp->UsesKill ||
+      if (fp->info.uses_kill ||
          brw->attribs.DepthStencil->alpha.enabled)
         wm.wm5.program_uses_killpixel = 1;