<field name="swmask" start="0" end="7" type="uint"/>
</struct>
+ <!-- `REGION_CLIP{0,1}` `left`,`right`,`top`,`bottom`, are all 9 bits. -->
+ <define name="REGION_CLIP_MAX" value="0x1FF"/>
+
<struct name="REGION_CLIP0" length="1">
<field name="mode" start="31" end="31" type="REGION_CLIP_MODE"/>
<field name="left" start="16" end="24" type="uint"/>
template->config.pds_state = NULL;
template->config.region_clip0 = CS_HEADER(TA_REGION_CLIP0);
- template->config.region_clip0.mode = PVRX(TA_REGION_CLIP_MODE_NONE);
+ template->config.region_clip0.mode = PVRX(TA_REGION_CLIP_MODE_OUTSIDE);
+ template->config.region_clip0.left = 0;
+ template->config.region_clip0.right = PVRX(TA_REGION_CLIP_MAX);
template->config.region_clip1 = CS_HEADER(TA_REGION_CLIP1);
+ template->config.region_clip1.top = 0;
+ template->config.region_clip1.bottom = PVRX(TA_REGION_CLIP_MAX);
template->config.output_sel = CS_HEADER(TA_OUTPUT_SEL);
template->config.output_sel.vtxsize = 4;