Lines Matching defs:pDevice

63 ResolveState(Device *pDevice)
65 if (pDevice->bound_empty_gs && pDevice->bound_vs &&
66 pDevice->bound_vs->state.tokens) {
67 Shader *gs = pDevice->bound_empty_gs;
68 Shader *vs = pDevice->bound_vs;
70 struct pipe_context *pipe = pDevice->pipe;
132 Device *pDevice = CastDevice(hDevice);
134 ResolveState(pDevice);
136 assert(pDevice->primitive < PIPE_PRIM_MAX);
137 util_draw_arrays(pDevice->pipe,
138 pDevice->primitive,
162 Device *pDevice = CastDevice(hDevice);
166 unsigned restart_index = pDevice->restart_index;
167 unsigned index_size = pDevice->index_size;
168 unsigned ib_offset = pDevice->ib_offset;
170 assert(pDevice->primitive < PIPE_PRIM_MAX);
173 if (!pDevice->index_buffer) {
175 create_null_index_buffer(pDevice->pipe,
180 ResolveState(pDevice);
184 info.mode = pDevice->primitive;
187 info.index.resource = null_ib ? null_ib : pDevice->index_buffer;
192 pDevice->pipe->draw_vbo(pDevice->pipe, &info, 0, NULL, &draw, 1);
220 Device *pDevice = CastDevice(hDevice);
226 ResolveState(pDevice);
228 assert(pDevice->primitive < PIPE_PRIM_MAX);
229 util_draw_arrays_instanced(pDevice->pipe,
230 pDevice->primitive,
259 Device *pDevice = CastDevice(hDevice);
263 unsigned restart_index = pDevice->restart_index;
264 unsigned index_size = pDevice->index_size;
265 unsigned ib_offset = pDevice->ib_offset;
267 assert(pDevice->primitive < PIPE_PRIM_MAX);
274 if (!pDevice->index_buffer) {
276 create_null_index_buffer(pDevice->pipe,
281 ResolveState(pDevice);
285 info.mode = pDevice->primitive;
288 info.index.resource = null_ib ? null_ib : pDevice->index_buffer;
295 pDevice->pipe->draw_vbo(pDevice->pipe, &info, 0, NULL, &draw, 1);
323 Device *pDevice = CastDevice(hDevice);
328 if (!pDevice->draw_so_target) {
333 assert(pDevice->primitive < PIPE_PRIM_MAX);
335 ResolveState(pDevice);
338 info.mode = pDevice->primitive;
340 indirect.count_from_stream_output = pDevice->draw_so_target;
342 pDevice->pipe->draw_vbo(pDevice->pipe, &info, 0, &indirect, NULL, 1);