Lines Matching defs:pctx
94 zink_context_destroy(struct pipe_context *pctx)
96 struct zink_context *ctx = zink_context(pctx);
97 struct zink_screen *screen = zink_screen(pctx->screen);
169 u_upload_destroy(pctx->stream_uploader);
170 u_upload_destroy(pctx->const_uploader);
201 zink_get_device_reset_status(struct pipe_context *pctx)
203 struct zink_context *ctx = zink_context(pctx);
222 zink_set_device_reset_callback(struct pipe_context *pctx,
225 struct zink_context *ctx = zink_context(pctx);
236 p_atomic_inc(&zink_screen(pctx->screen)->robust_ctx_count);
238 p_atomic_dec(&zink_screen(pctx->screen)->robust_ctx_count);
243 zink_set_context_param(struct pipe_context *pctx, enum pipe_context_param param,
246 struct zink_context *ctx = zink_context(pctx);
332 zink_create_sampler_state(struct pipe_context *pctx,
335 struct zink_screen *screen = zink_screen(pctx->screen);
687 zink_bind_sampler_states(struct pipe_context *pctx,
693 struct zink_context *ctx = zink_context(pctx);
694 struct zink_screen *screen = zink_screen(pctx->screen);
700 zink_screen(pctx->screen)->context_invalidate_descriptor_state(ctx, shader, ZINK_DESCRIPTOR_TYPE_SAMPLER_VIEW, start_slot, 1);
739 zink_delete_sampler_state(struct pipe_context *pctx,
743 struct zink_batch *batch = &zink_context(pctx)->batch;
754 p_atomic_dec(&zink_screen(pctx->screen)->cur_custom_border_color_samplers);
885 zink_create_sampler_view(struct pipe_context *pctx, struct pipe_resource *pres,
888 struct zink_screen *screen = zink_screen(pctx->screen);
890 struct zink_context *ctx = zink_context(pctx);
898 sampler_view->base.context = pctx;
998 zink_sampler_view_destroy(struct pipe_context *pctx,
1003 zink_buffer_view_reference(zink_screen(pctx->screen), &view->buffer_view, NULL);
1005 zink_surface_reference(zink_screen(pctx->screen), &view->image_view, NULL);
1006 zink_surface_reference(zink_screen(pctx->screen), &view->cube_array, NULL);
1085 zink_set_polygon_stipple(struct pipe_context *pctx,
1118 zink_set_vertex_buffers(struct pipe_context *pctx,
1125 struct zink_context *ctx = zink_context(pctx);
1126 const bool have_input_state = zink_screen(pctx->screen)->info.have_EXT_vertex_input_dynamic_state;
1127 const bool need_state_change = !zink_screen(pctx->screen)->info.have_EXT_extended_dynamic_state &&
1187 zink_set_viewport_states(struct pipe_context *pctx,
1192 struct zink_context *ctx = zink_context(pctx);
1201 zink_set_scissor_states(struct pipe_context *pctx,
1205 struct zink_context *ctx = zink_context(pctx);
1213 zink_set_inlinable_constants(struct pipe_context *pctx,
1217 struct zink_context *ctx = (struct zink_context *)pctx;
1280 zink_set_constant_buffer(struct pipe_context *pctx,
1285 struct zink_context *ctx = zink_context(pctx);
1292 struct zink_screen *screen = zink_screen(pctx->screen);
1353 zink_screen(pctx->screen)->context_invalidate_descriptor_state(ctx, shader, ZINK_DESCRIPTOR_TYPE_UBO, index, 1);
1387 zink_set_shader_buffers(struct pipe_context *pctx,
1393 struct zink_context *ctx = zink_context(pctx);
1450 zink_screen(pctx->screen)->context_invalidate_descriptor_state(ctx, p_stage, ZINK_DESCRIPTOR_TYPE_SSBO, start_slot, count);
1608 zink_set_shader_images(struct pipe_context *pctx,
1614 struct zink_context *ctx = zink_context(pctx);
1683 zink_screen(pctx->screen)->context_invalidate_descriptor_state(ctx, p_stage, ZINK_DESCRIPTOR_TYPE_IMAGE, start_slot, count);
1716 zink_set_sampler_views(struct pipe_context *pctx,
1724 struct zink_context *ctx = zink_context(pctx);
1813 struct zink_screen *screen = zink_screen(pctx->screen);
1821 zink_create_texture_handle(struct pipe_context *pctx, struct pipe_sampler_view *view, const struct pipe_sampler_state *state)
1823 struct zink_context *ctx = zink_context(pctx);
1831 bd->sampler = pctx->create_sampler_state(pctx, state);
1839 zink_buffer_view_reference(zink_screen(pctx->screen), &bd->ds.bufferview, sv->buffer_view);
1841 zink_surface_reference(zink_screen(pctx->screen), &bd->ds.surface, sv->image_view);
1851 zink_delete_texture_handle(struct pipe_context *pctx, uint64_t handle)
1853 struct zink_context *ctx = zink_context(pctx);
1867 zink_buffer_view_reference(zink_screen(pctx->screen), &ds->bufferview, NULL);
1871 zink_surface_reference(zink_screen(pctx->screen), &ds->surface, NULL);
1872 pctx->delete_sampler_state(pctx, bd->sampler);
1921 zink_make_texture_handle_resident(struct pipe_context *pctx, uint64_t handle, bool resident)
1923 struct zink_context *ctx = zink_context(pctx);
1971 zink_create_image_handle(struct pipe_context *pctx, const struct pipe_image_view *view)
1973 struct zink_context *ctx = zink_context(pctx);
1999 zink_delete_image_handle(struct pipe_context *pctx, uint64_t handle)
2001 struct zink_context *ctx = zink_context(pctx);
2014 zink_buffer_view_reference(zink_screen(pctx->screen), &ds->bufferview, NULL);
2018 zink_surface_reference(zink_screen(pctx->screen), &ds->surface, NULL);
2024 zink_make_image_handle_resident(struct pipe_context *pctx, uint64_t handle, unsigned paccess, bool resident)
2026 struct zink_context *ctx = zink_context(pctx);
2093 zink_set_stencil_ref(struct pipe_context *pctx,
2096 struct zink_context *ctx = zink_context(pctx);
2102 zink_set_clip_state(struct pipe_context *pctx,
2108 zink_set_tess_state(struct pipe_context *pctx,
2112 struct zink_context *ctx = zink_context(pctx);
2118 zink_set_patch_vertices(struct pipe_context *pctx, uint8_t patch_vertices)
2120 struct zink_context *ctx = zink_context(pctx);
2527 zink_evaluate_depth_buffer(struct pipe_context *pctx)
2529 struct zink_context *ctx = zink_context(pctx);
2806 zink_set_framebuffer_state(struct pipe_context *pctx,
2809 struct zink_context *ctx = zink_context(pctx);
2963 zink_set_blend_color(struct pipe_context *pctx,
2966 struct zink_context *ctx = zink_context(pctx);
2971 zink_set_sample_mask(struct pipe_context *pctx, unsigned sample_mask)
2973 struct zink_context *ctx = zink_context(pctx);
2979 zink_set_sample_locations(struct pipe_context *pctx, size_t size, const uint8_t *locations)
2981 struct zink_context *ctx = zink_context(pctx);
3390 zink_flush(struct pipe_context *pctx,
3394 struct zink_context *ctx = zink_context(pctx);
3464 mfence->deferred_ctx = pctx;
3481 zink_fence_wait(struct pipe_context *pctx)
3483 struct zink_context *ctx = zink_context(pctx);
3486 pctx->flush(pctx, NULL, PIPE_FLUSH_HINT_FINISH);
3525 zink_texture_barrier(struct pipe_context *pctx, unsigned flags)
3527 struct zink_context *ctx = zink_context(pctx);
3646 zink_memory_barrier(struct pipe_context *pctx, unsigned flags)
3648 struct zink_context *ctx = zink_context(pctx);
3662 zink_flush_resource(struct pipe_context *pctx,
3665 struct zink_context *ctx = zink_context(pctx);
3680 zink_create_stream_output_target(struct pipe_context *pctx,
3694 t->counter_buffer = pipe_buffer_create(pctx->screen, PIPE_BIND_STREAM_OUTPUT | PIPE_BIND_CUSTOM, PIPE_USAGE_DEFAULT, 4);
3701 t->base.context = pctx;
3712 zink_stream_output_target_destroy(struct pipe_context *pctx,
3722 zink_set_stream_output_targets(struct pipe_context *pctx,
3727 struct zink_context *ctx = zink_context(pctx);
4112 zink_resource_copy_region(struct pipe_context *pctx,
4120 struct zink_context *ctx = zink_context(pctx);
4222 zink_resource_commit(struct pipe_context *pctx, struct pipe_resource *pres, unsigned level, struct pipe_box *box, bool commit)
4224 struct zink_context *ctx = zink_context(pctx);
4226 struct zink_screen *screen = zink_screen(pctx->screen);
4355 zink_context_replace_buffer_storage(struct pipe_context *pctx, struct pipe_resource *dst,
4361 struct zink_context *ctx = zink_context(pctx);
4362 struct zink_screen *screen = zink_screen(pctx->screen);
4394 zink_emit_string_marker(struct pipe_context *pctx,
4397 struct zink_screen *screen = zink_screen(pctx->screen);
4398 struct zink_batch *batch = &zink_context(pctx)->batch;
4674 zink_tc_context_unwrap(struct pipe_context *pctx)
4676 struct zink_context *ctx = zink_context(pctx);
4680 pctx = threaded_context_unwrap_sync(pctx);
4681 pctx = trace_get_possibly_threaded_context(pctx);
4682 return zink_context(pctx);