}
pan_pack(&so->stencil_misc, STENCIL_MASK_MISC, cfg) {
- cfg.depth_range_1 = cso->offset_tri;
- cfg.depth_range_2 = cso->offset_tri;
+ cfg.front_facing_depth_bias = cso->offset_tri;
+ cfg.back_facing_depth_bias = cso->offset_tri;
cfg.single_sampled_lines = !cso->multisample;
}
<field name="sRGB" size="1" start="24" type="bool"/>
<field name="Dither disable" size="1" start="25" type="bool"/>
<field name="Force seamless cubemaps" size="1" start="26" type="bool"/>
- <field name="Depth Range 1" size="1" start="28" type="bool"/>
- <field name="Depth Range 2" size="1" start="29" type="bool"/>
+ <field name="Front-facing depth bias" size="1" start="28" type="bool"/>
+ <field name="Back-facing depth bias" size="1" start="29" type="bool"/>
<field name="Single-sampled lines" size="1" start="30" type="bool"/>
<field name="Point snap" size="1" start="31" type="bool"/>
</struct>
<field name="Alpha-to-coverage Invert" size="1" start="18" type="bool"/>
<field name="Alpha test compare function" size="3" start="21" type="Func"/>
<field name="Force seamless cubemaps" size="1" start="26" type="bool"/>
- <field name="Depth Range 1" size="1" start="28" type="bool"/>
- <field name="Depth Range 2" size="1" start="29" type="bool"/>
+ <field name="Front-facing depth bias" size="1" start="28" type="bool"/>
+ <field name="Back-facing depth bias" size="1" start="29" type="bool"/>
<field name="Single-sampled lines" size="1" start="30" type="bool"/>
<field name="Point snap" size="1" start="31" type="bool"/>
</struct>
<field name="Alpha-to-coverage Invert" size="1" start="18" type="bool"/>
<field name="Alpha test compare function" size="3" start="21" type="Func"/>
<field name="Force seamless cubemaps" size="1" start="26" type="bool"/>
- <field name="Depth Range 1" size="1" start="28" type="bool"/>
- <field name="Depth Range 2" size="1" start="29" type="bool"/>
+ <field name="Front-facing depth bias" size="1" start="28" type="bool"/>
+ <field name="Back-facing depth bias" size="1" start="29" type="bool"/>
<field name="Single-sampled lines" size="1" start="30" type="bool"/>
<field name="Point snap" size="1" start="31" type="bool"/>
</struct>
<field name="Alpha-to-coverage Invert" size="1" start="18" type="bool"/>
<field name="Alpha test compare function" size="3" start="21" type="Func"/>
<field name="Force seamless cubemaps" size="1" start="26" type="bool"/>
- <field name="Depth Range 1" size="1" start="28" type="bool"/>
- <field name="Depth Range 2" size="1" start="29" type="bool"/>
+ <field name="Front-facing depth bias" size="1" start="28" type="bool"/>
+ <field name="Back-facing depth bias" size="1" start="29" type="bool"/>
<field name="Single-sampled lines" size="1" start="30" type="bool"/>
<field name="Point snap" size="1" start="31" type="bool"/>
</struct>
cfg.stencil_mask_misc.stencil_enable = pipeline->zs.s_test;
cfg.stencil_mask_misc.alpha_to_coverage = pipeline->ms.alpha_to_coverage;
cfg.stencil_mask_misc.alpha_test_compare_function = MALI_FUNC_ALWAYS;
- cfg.stencil_mask_misc.depth_range_1 = pipeline->rast.depth_bias.enable;
- cfg.stencil_mask_misc.depth_range_2 = pipeline->rast.depth_bias.enable;
+ cfg.stencil_mask_misc.front_facing_depth_bias = pipeline->rast.depth_bias.enable;
+ cfg.stencil_mask_misc.back_facing_depth_bias = pipeline->rast.depth_bias.enable;
cfg.stencil_mask_misc.single_sampled_lines = pipeline->ms.rast_samples <= 1;
if (!(pipeline->dynamic_state_mask & (1 << VK_DYNAMIC_STATE_DEPTH_BIAS))) {