mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
gallium/i965: remove UsesDepth, UsesKill - use tgsi_shader_info instead
This commit is contained in:
parent
ea7e86dd4d
commit
bad54d0b4d
3 changed files with 4 additions and 6 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue