gallium/i965: remove UsesDepth, UsesKill - use tgsi_shader_info instead

This commit is contained in:
Brian 2008-02-27 16:09:17 -07:00
parent ea7e86dd4d
commit bad54d0b4d
3 changed files with 4 additions and 6 deletions

View 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;
};

View 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)

View 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;