}
}
-void cso_delete_fragment_shader(struct cso_context *ctx, void *handle )
-{
- if (handle == ctx->fragment_shader) {
- /* unbind before deleting */
- ctx->pipe->bind_fs_state(ctx->pipe, NULL);
- ctx->fragment_shader = NULL;
- }
- ctx->pipe->delete_fs_state(ctx->pipe, handle);
-}
-
static void
cso_save_fragment_shader(struct cso_context *ctx)
{
}
}
-void cso_delete_vertex_shader(struct cso_context *ctx, void *handle )
-{
- if (handle == ctx->vertex_shader) {
- /* unbind before deleting */
- ctx->pipe->bind_vs_state(ctx->pipe, NULL);
- ctx->vertex_shader = NULL;
- }
- ctx->pipe->delete_vs_state(ctx->pipe, handle);
-}
-
static void
cso_save_vertex_shader(struct cso_context *ctx)
{
}
}
-void cso_delete_geometry_shader(struct cso_context *ctx, void *handle)
-{
- if (handle == ctx->geometry_shader) {
- /* unbind before deleting */
- ctx->pipe->bind_gs_state(ctx->pipe, NULL);
- ctx->geometry_shader = NULL;
- }
- ctx->pipe->delete_gs_state(ctx->pipe, handle);
-}
-
static void
cso_save_geometry_shader(struct cso_context *ctx)
{
}
}
-void cso_delete_tessctrl_shader(struct cso_context *ctx, void *handle)
-{
- if (handle == ctx->tessctrl_shader) {
- /* unbind before deleting */
- ctx->pipe->bind_tcs_state(ctx->pipe, NULL);
- ctx->tessctrl_shader = NULL;
- }
- ctx->pipe->delete_tcs_state(ctx->pipe, handle);
-}
-
static void
cso_save_tessctrl_shader(struct cso_context *ctx)
{
}
}
-void cso_delete_tesseval_shader(struct cso_context *ctx, void *handle)
-{
- if (handle == ctx->tesseval_shader) {
- /* unbind before deleting */
- ctx->pipe->bind_tes_state(ctx->pipe, NULL);
- ctx->tesseval_shader = NULL;
- }
- ctx->pipe->delete_tes_state(ctx->pipe, handle);
-}
-
static void
cso_save_tesseval_shader(struct cso_context *ctx)
{
}
}
-void cso_delete_compute_shader(struct cso_context *ctx, void *handle)
-{
- if (handle == ctx->compute_shader) {
- /* unbind before deleting */
- ctx->pipe->bind_compute_state(ctx->pipe, NULL);
- ctx->compute_shader = NULL;
- }
- ctx->pipe->delete_compute_state(ctx->pipe, handle);
-}
-
static void
cso_set_vertex_elements_direct(struct cso_context *ctx,
const struct cso_velems_state *velems)