Home | History | Annotate | Download | only in ddebug

Lines Matching defs:dctx

128    struct dd_context *dctx = dd_context(_pipe);
129 struct pipe_context *pipe = dctx->pipe;
137 struct dd_context *dctx = dd_context(_pipe);
138 struct pipe_context *pipe = dctx->pipe;
166 struct dd_context *dctx = dd_context(_pipe);
167 struct pipe_context *pipe = dctx->pipe;
168 struct dd_draw_state *dstate = &dctx->draw_state;
200 struct dd_context *dctx = dd_context(_pipe); \
201 struct pipe_context *pipe = dctx->pipe; \
204 dctx->draw_state.shortname = hstate; \
212 struct dd_context *dctx = dd_context(_pipe); \
213 struct pipe_context *pipe = dctx->pipe; \
237 struct dd_context *dctx = dd_context(_pipe);
238 struct pipe_context *pipe = dctx->pipe;
240 memcpy(&dctx->draw_state.sampler_states[shader][start], states,
286 struct dd_context *dctx = dd_context(_pipe); \
287 struct pipe_context *pipe = dctx->pipe; \
290 dctx->draw_state.shaders[PIPE_SHADER_##NAME] = hstate; \
297 struct dd_context *dctx = dd_context(_pipe); \
298 struct pipe_context *pipe = dctx->pipe; \
357 struct dd_context *dctx = dd_context(_pipe); \
358 struct pipe_context *pipe = dctx->pipe; \
360 dctx->draw_state.name = deref; \
377 struct dd_context *dctx = dd_context(_pipe);
378 struct pipe_context *pipe = dctx->pipe;
380 safe_memcpy(&dctx->draw_state.constant_buffers[shader][index],
390 struct dd_context *dctx = dd_context(_pipe);
391 struct pipe_context *pipe = dctx->pipe;
393 safe_memcpy(&dctx->draw_state.scissors[start_slot], states,
403 struct dd_context *dctx = dd_context(_pipe);
404 struct pipe_context *pipe = dctx->pipe;
406 safe_memcpy(&dctx->draw_state.viewports[start_slot], states,
415 struct dd_context *dctx = dd_context(_pipe);
416 struct pipe_context *pipe = dctx->pipe;
418 memcpy(dctx->draw_state.tess_default_levels, default_outer_level,
420 memcpy(dctx->draw_state.tess_default_levels+4, default_inner_level,
515 struct dd_context *dctx = dd_context(_pipe);
516 struct pipe_context *pipe = dctx->pipe;
518 safe_memcpy(&dctx->draw_state.sampler_views[shader][start], views,
529 struct dd_context *dctx = dd_context(_pipe);
530 struct pipe_context *pipe = dctx->pipe;
532 safe_memcpy(&dctx->draw_state.shader_images[shader][start], views,
542 struct dd_context *dctx = dd_context(_pipe);
543 struct pipe_context *pipe = dctx->pipe;
545 safe_memcpy(&dctx->draw_state.shader_buffers[shader][start], buffers,
555 struct dd_context *dctx = dd_context(_pipe);
556 struct pipe_context *pipe = dctx->pipe;
558 safe_memcpy(&dctx->draw_state.vertex_buffers[start], buffers,
567 struct dd_context *dctx = dd_context(_pipe);
568 struct pipe_context *pipe = dctx->pipe;
570 safe_memcpy(&dctx->draw_state.index_buffer, ib, sizeof(*ib));
580 struct dd_context *dctx = dd_context(_pipe);
581 struct pipe_context *pipe = dctx->pipe;
582 struct dd_draw_state *dstate = &dctx->draw_state;
593 struct dd_context *dctx = dd_context(_pipe);
594 struct pipe_context *pipe = dctx->pipe;
596 if (dctx->thread) {
597 pipe_mutex_lock(dctx->mutex);
598 dctx->kill_thread = 1;
599 pipe_mutex_unlock(dctx->mutex);
600 pipe_thread_wait(dctx->thread);
601 pipe_mutex_destroy(dctx->mutex);
602 assert(!dctx->records);
605 if (dctx->fence) {
606 pipe->transfer_unmap(pipe, dctx->fence_transfer);
607 pipe_resource_reference(&dctx->fence, NULL);
610 FREE(dctx);
735 struct dd_context *dctx = dd_context(_pipe);
736 struct pipe_context *pipe = dctx->pipe;
739 dd_parse_apitrace_marker(string, len, &dctx->draw_state.apitrace_call_number);
754 struct dd_context *dctx;
759 dctx = CALLOC_STRUCT(dd_context);
760 if (!dctx)
763 dctx->pipe = pipe;
764 dctx->base.priv = pipe->priv; /* expose wrapped priv data */
765 dctx->base.screen = &dscreen->base;
767 dctx->base.destroy = dd_context_destroy;
851 dd_init_draw_functions(dctx);
853 dctx->draw_state.sample_mask = ~0;
856 dctx->fence = pipe_buffer_create(dscreen->screen, PIPE_BIND_CUSTOM,
858 if (!dctx->fence)
861 dctx->mapped_fence = pipe_buffer_map(pipe, dctx->fence,
865 &dctx->fence_transfer);
866 if (!dctx->mapped_fence)
869 *dctx->mapped_fence = 0;
871 pipe_mutex_init(dctx->mutex);
872 dctx->thread = pipe_thread_create(dd_thread_pipelined_hang_detect, dctx);
873 if (!dctx->thread) {
874 pipe_mutex_destroy(dctx->mutex);
879 return &dctx->base;
882 if (dctx) {
883 if (dctx->mapped_fence)
884 pipe_transfer_unmap(pipe, dctx->fence_transfer);
885 pipe_resource_reference(&dctx->fence, NULL);
886 FREE(dctx);