Lines Matching defs:clip

378    /* Need to flush before changing clip max threads for errata. */
655 uint32_t clip[GENX(3DSTATE_CLIP_length)];
873 * regs for clip.
899 fprintf(stderr, "curbe wm %d+%d clip %d+%d vs %d+%d\n",
2102 crocus_pack_command(GENX(3DSTATE_CLIP), cso->clip, cl) {
3317 * negative number and thus not clip anything. Instead, just provide
6013 crocus_pack_state(GENX(CLIP_VIEWPORT), clip_map, clip) {
6014 clip.XMinClipGuardband = gb_xmin;
6015 clip.XMaxClipGuardband = gb_xmax;
6016 clip.YMinClipGuardband = gb_ymin;
6017 clip.YMaxClipGuardband = gb_ymax;
6650 _crocus_pack_state(batch, GENX(CLIP_STATE), clip_ptr, clip) {
6651 clip.KernelStartPointer = KSP(ice, ice->shaders.clip_prog);
6652 clip.FloatingPointMode = FLOATING_POINT_MODE_Alternate;
6653 clip.SingleProgramFlow = true;
6654 clip.GRFRegisterCount = DIV_ROUND_UP(clip_prog_data->total_grf, 16) - 1;
6656 clip.VertexURBEntryReadLength = clip_prog_data->urb_read_length;
6657 clip.ConstantURBEntryReadLength = clip_prog_data->curb_read_length;
6659 clip.DispatchGRFStartRegisterForURBData = 1;
6660 clip.VertexURBEntryReadOffset = 0;
6661 clip.ConstantURBEntryReadOffset = ice->curbe.clip_start * 2;
6663 clip.NumberofURBEntries = batch->ice->urb.nr_clip_entries;
6664 clip.URBEntryAllocationSize = batch->ice->urb.vsize - 1;
6675 clip.MaximumNumberofThreads = (GFX_VER == 5 ? 16 : 2) - 1;
6678 clip.MaximumNumberofThreads = 1 - 1;
6680 clip.VertexPositionSpace = VPOS_NDCSPACE;
6681 clip.UserClipFlagsMustClipEnable = true;
6682 clip.GuardbandClipTestEnable = true;
6684 clip.ClipperViewportStatePointer = ro_bo(batch->state.bo, ice->state.clip_vp_address);
6685 clip.ScreenSpaceViewportXMin = -1.0;
6686 clip.ScreenSpaceViewportXMax = 1.0;
6687 clip.ScreenSpaceViewportYMin = -1.0;
6688 clip.ScreenSpaceViewportYMax = 1.0;
6689 clip.ViewportXYClipTestEnable = true;
6690 clip.ViewportZClipTestEnable = (cso_state->depth_clip_near || cso_state->depth_clip_far);
6693 clip.UserClipDistanceClipTestEnableBitmask = cso_state->clip_plane_enable;
6695 /* Up to 6 actual clip flags, plus the 7th for the negative RHW
6698 clip.UserClipDistanceClipTestEnableBitmask = (cso_state->clip_plane_enable & 0x3f) | 0x40;
6701 clip.APIMode = cso_state->clip_halfz ? APIMODE_D3D : APIMODE_OGL;
6702 clip.GuardbandClipTestEnable = true;
6704 clip.ClipMode = clip_prog_data->clip_mode;
6706 clip.NegativeWClipTestEnable = true;
6740 crocus_emit_merge(batch, cso_rast->clip, dynamic_clip,
6741 ARRAY_SIZE(cso_rast->clip));