Lines Matching defs:pctx
72 struct pipe_context *pctx;
210 state->pctx->flush(state->pctx, &handle, 0);
212 state->pctx->screen->fence_finish(state->pctx->screen,
215 state->pctx->screen->fence_reference(state->pctx->screen,
261 state->pctx->set_constant_buffer(state->pctx, pstage, 0, true, &cbuf);
309 uint8_t *map = state->pctx->buffer_map(state->pctx, pres, 0, PIPE_MAP_READ, &box, &xfer);
314 state->pctx->buffer_unmap(state->pctx, xfer);
333 state->pctx->bind_vs_state(state->pctx, shader_state);
336 state->pctx->bind_tcs_state(state->pctx, shader_state);
339 state->pctx->bind_tes_state(state->pctx, shader_state);
342 state->pctx->bind_gs_state(state->pctx, shader_state);
345 state->pctx->bind_fs_state(state->pctx, shader_state);
348 state->pctx->bind_compute_state(state->pctx, shader_state);
357 state->pctx->set_shader_images(state->pctx, PIPE_SHADER_COMPUTE,
370 state->pctx->set_constant_buffer(state->pctx, PIPE_SHADER_COMPUTE,
379 state->pctx->set_shader_buffers(state->pctx, PIPE_SHADER_COMPUTE,
386 state->pctx->set_sampler_views(state->pctx, PIPE_SHADER_COMPUTE, 0, state->num_sampler_views[PIPE_SHADER_COMPUTE],
394 state->pctx->delete_sampler_state(state->pctx, state->ss_cso[PIPE_SHADER_COMPUTE][i]);
395 state->ss_cso[PIPE_SHADER_COMPUTE][i] = state->pctx->create_sampler_state(state->pctx, &state->ss[PIPE_SHADER_COMPUTE][i]);
397 state->pctx->bind_sampler_states(state->pctx, PIPE_SHADER_COMPUTE, 0, state->num_sampler_states[PIPE_SHADER_COMPUTE], state->ss_cso[PIPE_SHADER_COMPUTE]);
464 state->pctx->set_blend_color(state->pctx, &state->blend_color);
489 state->pctx->set_constant_buffer(state->pctx, sh,
508 state->pctx->set_shader_buffers(state->pctx, sh,
516 state->pctx->set_shader_images(state->pctx, sh,
527 state->pctx->set_sampler_views(state->pctx, sh, 0, state->num_sampler_views[sh],
540 state->pctx->set_viewport_states(state->pctx, 0, state->num_viewports, state->viewports);
545 state->pctx->set_scissor_states(state->pctx, 0, state->num_scissors, state->scissors);
575 state->pctx->bind_compute_state(state->pctx, pipeline->shader_cso[PIPE_SHADER_COMPUTE]);
644 state->pctx->bind_gs_state(state->pctx, NULL);
645 if (state->pctx->bind_tcs_state)
646 state->pctx->bind_tcs_state(state->pctx, NULL);
647 if (state->pctx->bind_tes_state)
648 state->pctx->bind_tes_state(state->pctx, NULL);
657 state->pctx->bind_fs_state(state->pctx, pipeline->shader_cso[PIPE_SHADER_FRAGMENT]);
663 state->pctx->bind_vs_state(state->pctx, pipeline->shader_cso[PIPE_SHADER_VERTEX]);
669 state->pctx->bind_gs_state(state->pctx, pipeline->shader_cso[PIPE_SHADER_GEOMETRY]);
676 state->pctx->bind_tcs_state(state->pctx, pipeline->shader_cso[PIPE_SHADER_TESS_CTRL]);
682 state->pctx->bind_tes_state(state->pctx, pipeline->shader_cso[PIPE_SHADER_TESS_EVAL]);
694 state->pctx->bind_fs_state(state->pctx, pipeline->shader_cso[PIPE_SHADER_FRAGMENT]);
695 if (state->pctx->bind_gs_state && !has_stage[PIPE_SHADER_GEOMETRY])
696 state->pctx->bind_gs_state(state->pctx, NULL);
697 if (state->pctx->bind_tcs_state && !has_stage[PIPE_SHADER_TESS_CTRL])
698 state->pctx->bind_tcs_state(state->pctx, NULL);
699 if (state->pctx->bind_tes_state && !has_stage[PIPE_SHADER_TESS_EVAL])
700 state->pctx->bind_tes_state(state->pctx, NULL);
973 state->pctx->set_framebuffer_state(state->pctx, &state->framebuffer);
1163 state->sv[p_stage][sv_idx] = state->pctx->create_sampler_view(state->pctx, iv->image->bo, &templ);
1203 templ.context = state->pctx;
1204 state->sv[p_stage][sv_idx] = state->pctx->create_sampler_view(state->pctx, bv->buffer->bo, &templ);
1536 return state->pctx->create_surface(state->pctx,
1603 state->pctx->clear_depth_stencil(state->pctx,
1611 state->pctx->clear_render_target(state->pctx, clear_surf,
1617 state->pctx->surface_destroy(state->pctx, clear_surf);
1641 state->pctx->clear_render_target(state->pctx,
1671 state->pctx->clear_depth_stencil(state->pctx,
1735 state->pctx->clear(state->pctx, buffers,
1819 state->pctx->blit(state->pctx, &info);
1859 state->pctx->blit(state->pctx, &info);
1891 state->pctx->resource_copy_region(state->pctx, dst->image->bo, level, 0, 0, 0, src->image->bo, level, &box);
1904 image->bo = state->pctx->screen->resource_create(state->pctx->screen, &templ);
1908 multi->surface = state->pctx->create_surface(state->pctx, image->bo, imgv->surface);
2031 state->pctx->set_framebuffer_state(state->pctx,
2058 state->pctx->set_patch_vertices(state->pctx, state->patch_vertices);
2059 state->pctx->draw_vbo(state->pctx, &state->info, 0, NULL, &draw, 1);
2081 state->pctx->set_patch_vertices(state->pctx, state->patch_vertices);
2084 state->pctx->draw_vbo(state->pctx, &state->info, 0, NULL, draws, cmd->u.draw_multi_ext.draw_count);
2359 src_data = state->pctx->texture_map(state->pctx,
2372 dst_data = state->pctx->buffer_map(state->pctx,
2410 state->pctx->texture_unmap(state->pctx, src_t);
2411 state->pctx->buffer_unmap(state->pctx, dst_t);
2433 src_data = state->pctx->buffer_map(state->pctx,
2448 dst_data = state->pctx->texture_map(state->pctx,
2490 state->pctx->buffer_unmap(state->pctx, src_t);
2491 state->pctx->texture_unmap(state->pctx, dst_t);
2520 state->pctx->resource_copy_region(state->pctx, dst_image->bo,
2540 state->pctx->resource_copy_region(state->pctx, lvp_buffer_from_handle(copycmd->dstBuffer)->bo, 0,
2628 state->pctx->blit(state->pctx, &info);
2643 state->pctx->clear_buffer(state->pctx,
2660 dst = state->pctx->buffer_map(state->pctx,
2668 state->pctx->buffer_unmap(state->pctx, dst_t);
2693 state->pctx->set_patch_vertices(state->pctx, state->patch_vertices);
2694 state->pctx->draw_vbo(state->pctx, &state->info, 0, NULL, &draw, 1);
2729 state->pctx->set_patch_vertices(state->pctx, state->patch_vertices);
2732 state->pctx->draw_vbo(state->pctx, &state->info, 0, NULL, draws, cmd->u.draw_multi_indexed_ext.draw_count);
2755 state->pctx->set_patch_vertices(state->pctx, state->patch_vertices);
2756 state->pctx->draw_vbo(state->pctx, &state->info, 0, &state->indirect_info, &draw, 1);
2795 state->pctx->launch_grid(state->pctx, &state->dispatch_info);
2808 state->pctx->launch_grid(state->pctx, &state->dispatch_info);
2816 state->pctx->launch_grid(state->pctx, &state->dispatch_info);
2866 state->pctx->flush(state->pctx, NULL, 0);
2876 state->pctx->flush(state->pctx, NULL, 0);
2911 pool->queries[qcmd->query] = state->pctx->create_query(state->pctx,
2915 state->pctx->begin_query(state->pctx, pool->queries[qcmd->query]);
2925 state->pctx->end_query(state->pctx, pool->queries[qcmd->query]);
2943 pool->queries[qcmd->query] = state->pctx->create_query(state->pctx,
2947 state->pctx->begin_query(state->pctx, pool->queries[qcmd->query]);
2957 state->pctx->end_query(state->pctx, pool->queries[qcmd->query]);
2967 state->pctx->destroy_query(state->pctx, pool->queries[i]);
2979 pool->queries[qcmd->query] = state->pctx->create_query(state->pctx,
2984 state->pctx->flush(state->pctx, NULL, 0);
2985 state->pctx->end_query(state->pctx, pool->queries[qcmd->query]);
3008 state->pctx->get_query_result_resource(state->pctx,
3019 state->pctx->get_query_result_resource(state->pctx,
3027 state->pctx->get_query_result_resource(state->pctx,
3046 map = state->pctx->buffer_map(state->pctx,
3051 state->pctx->buffer_unmap(state->pctx, src_t);
3087 state->pctx->clear_texture(state->pctx, image->bo,
3123 state->pctx->clear_depth_stencil(state->pctx,
3130 state->pctx->surface_destroy(state->pctx, surf);
3236 state->pctx->blit(state->pctx, &info);
3258 state->pctx->set_patch_vertices(state->pctx, state->patch_vertices);
3259 state->pctx->draw_vbo(state->pctx, &state->info, 0, &state->indirect_info, &draw, 1);
3544 state->pctx->stream_output_target_destroy(state->pctx, state->so_targets[idx]);
3546 state->so_targets[idx] = state->pctx->create_stream_output_target(state->pctx,
3566 pipe_buffer_read(state->pctx,
3572 state->pctx->set_stream_output_targets(state->pctx, state->num_so_targets,
3587 offset = state->pctx->stream_output_target_offset(state->so_targets[i]);
3589 pipe_buffer_write(state->pctx,
3596 state->pctx->set_stream_output_targets(state->pctx, 0, NULL, NULL);
3605 pipe_buffer_read(state->pctx,
3615 state->pctx->set_patch_vertices(state->pctx, state->patch_vertices);
3616 state->pctx->draw_vbo(state->pctx, &state->info, 0, &state->indirect_info, &draw, 1);
3623 state->pctx->render_condition_mem(state->pctx,
3631 state->pctx->render_condition_mem(state->pctx, NULL, 0, false);
4185 state->pctx = queue->ctx;
4206 state->pctx->stream_output_target_destroy(state->pctx, state->so_targets[i]);
4220 state->pctx->delete_sampler_state(state->pctx, state->ss_cso[PIPE_SHADER_COMPUTE][i]);