Lines Matching refs:clip

44                         sizeof(*vp), 32, &brw->clip.vp_offset);
60 struct brw_clip_unit_state *clip;
69 clip = brw_state_batch(brw, AUB_TRACE_CLIP_STATE,
70 sizeof(*clip), 32, &brw->clip.state_offset);
71 memset(clip, 0, sizeof(*clip));
74 clip->thread0.grf_reg_count = (ALIGN(brw->clip.prog_data->total_grf, 16) /
76 clip->thread0.kernel_start_pointer =
78 brw->clip.state_offset +
80 brw->clip.prog_offset +
81 (clip->thread0.grf_reg_count << 1)) >> 6;
83 clip->thread1.floating_point_mode = BRW_FLOATING_POINT_NON_IEEE_754;
84 clip->thread1.single_program_flow = 1;
86 clip->thread3.urb_entry_read_length = brw->clip.prog_data->urb_read_length;
87 clip->thread3.const_urb_entry_read_length =
88 brw->clip.prog_data->curb_read_length;
91 clip->thread3.const_urb_entry_read_offset = brw->curbe.clip_start * 2;
92 clip->thread3.dispatch_grf_start_reg = 1;
93 clip->thread3.urb_entry_read_offset = 0;
96 clip->thread4.nr_urb_entries = brw->urb.nr_clip_entries;
97 clip->thread4.urb_entry_allocation_size = brw->urb.vsize - 1;
98 /* If we have enough clip URB entries to run two threads, do so.
110 clip->thread4.max_threads = 16 - 1;
112 clip->thread4.max_threads = 2 - 1;
115 clip->thread4.max_threads = 1 - 1;
119 clip->thread4.stats_enable = 1;
123 clip->clip5.userclip_enable_flags = ctx->Transform.ClipPlanesEnabled;
125 /* Up to 6 actual clip flags, plus the 7th for negative RHW workaround. */
126 clip->clip5.userclip_enable_flags = (ctx->Transform.ClipPlanesEnabled & 0x3f) | 0x40;
128 clip->clip5.userclip_must_clip = 1;
136 clip->clip5.guard_band_enable = 1;
137 clip->clip6.clipper_viewport_state_ptr =
138 (brw->batch.bo->offset64 + brw->clip.vp_offset) >> 5;
140 /* emit clip viewport relocation */
142 (brw->clip.state_offset +
144 brw->batch.bo, brw->clip.vp_offset,
150 clip->clip5.viewport_z_clip_enable = 1;
151 clip->clip5.viewport_xy_clip_enable = 1;
152 clip->clip5.vertex_position_space = BRW_CLIP_NDCSPACE;
154 clip->clip5.api_mode = BRW_CLIP_API_DX;
156 clip->clip5.api_mode = BRW_CLIP_API_OGL;
157 clip->clip5.clip_mode = brw->clip.prog_data->clip_mode;
160 clip->clip5.negative_w_clip_test = 1;
162 clip->viewport_xmin = -1;
163 clip->viewport_xmax = 1;
164 clip->viewport_ymin = -1;
165 clip->viewport_ymax = 1;