Lines Matching defs:sampler
65 void *hash_data = &sampler_state->sampler;
453 struct zink_sampler_state *sampler = CALLOC_STRUCT(zink_sampler_state);
454 if (!sampler)
457 VkResult result = VKSCR(CreateSampler)(screen->dev, &sci, NULL, &sampler->sampler);
460 FREE(sampler);
465 result = VKSCR(CreateSampler)(screen->dev, &sci, NULL, &sampler->sampler_clamped);
468 VKSCR(DestroySampler)(screen->dev, sampler->sampler, NULL);
469 FREE(sampler);
473 util_dynarray_init(&sampler->desc_set_refs.refs, NULL);
474 calc_descriptor_hash_sampler_state(sampler);
475 sampler->custom_border_color = need_custom;
477 sampler->emulate_nonseamless = !state->seamless_cube_map;
479 return sampler;
506 /* if this is a non-seamless cube sampler, return the cube array view */
606 VkSampler sampler = (surface->base.format == PIPE_FORMAT_Z24X8_UNORM && surface->ivci.format == VK_FORMAT_D32_SFLOAT) ||
609 state->sampler;
610 if (ctx->di.textures[shader][slot].sampler != sampler) {
612 ctx->di.textures[shader][slot].sampler = sampler;
706 ctx->di.textures[shader][start_slot + i].sampler = state->sampler;
712 ctx->di.textures[shader][start_slot + i].sampler = state->sampler_clamped;
730 ctx->di.textures[shader][start_slot + i].sampler = VK_NULL_HANDLE;
742 struct zink_sampler_state *sampler = sampler_state;
744 zink_descriptor_set_refs_clear(&sampler->desc_set_refs, sampler_state);
748 sampler->sampler);
749 if (sampler->sampler_clamped)
751 sampler->sampler_clamped);
753 if (sampler->custom_border_color)
755 FREE(sampler);
1490 /* if this was the last image bind, the sampler bind layouts must be updated */
1554 /* if this is the first image bind and there are sampler binds, the image's sampler layout
1831 bd->sampler = pctx->create_sampler_state(pctx, state);
1832 if (!bd->sampler) {
1872 pctx->delete_sampler_state(pctx, bd->sampler);
1913 ii->sampler = VK_NULL_HANDLE;
1944 ii->sampler = bd->sampler->sampler;
1983 bd->sampler = NULL;
2064 ii->sampler = VK_NULL_HANDLE;