<bitfield name="CLIP_DISABLE" pos="0" type="boolean"/>
<bitfield name="ZNEAR_CLIP_DISABLE" pos="1" type="boolean"/>
<bitfield name="ZFAR_CLIP_DISABLE" pos="2" type="boolean"/>
- <!-- set with depthClampEnable, not clear what it does -->
- <bitfield name="UNK5" pos="5" type="boolean"/>
+ <bitfield name="Z_CLAMP_ENABLE" pos="5" type="boolean"/>
<!-- controls near z clip behavior (set for vulkan) -->
<bitfield name="ZERO_GB_SCALE_Z" pos="6" type="boolean"/>
<!-- guess based on a3xx and meaning of bits 8 and 9
A6XX_GRAS_CL_CNTL(
.znear_clip_disable = builder->depth_clip_disable,
.zfar_clip_disable = builder->depth_clip_disable,
- /* TODO should this be depth_clip_disable instead? */
- .unk5 = rast_info->depthClampEnable,
+ .z_clamp_enable = rast_info->depthClampEnable,
.zero_gb_scale_z = pipeline->viewport.z_negative_one_to_one ? 0 : 1,
.vp_clip_code_ignore = 1));
OUT_REG(ring, A6XX_GRAS_CL_CNTL(.znear_clip_disable = !cso->depth_clip_near,
.zfar_clip_disable = !cso->depth_clip_far,
- .unk5 = !cso->depth_clip_near ||
- !cso->depth_clip_far,
+ .z_clamp_enable = cso->depth_clamp,
.vp_clip_code_ignore = 1,
.zero_gb_scale_z = cso->clip_halfz));