Lines Matching defs:ret

2017    VkResult ret = VKSCR(CreateShaderModule)(screen->dev, &smci, NULL, &mod);
2018 bool success = zink_screen_handle_vkresult(screen, ret);
2329 bool ret = false;
2344 ret = true;
2373 return ret;
3019 struct zink_shader *ret = CALLOC_STRUCT(zink_shader);
3022 ret->sinfo.have_vulkan_memory_model = screen->info.have_KHR_vulkan_memory_model;
3024 ret->hash = _mesa_hash_pointer(ret);
3025 ret->reduced_prim = get_shader_base_prim_type(nir);
3027 ret->programs = _mesa_pointer_set_create(NULL);
3028 simple_mtx_init(&ret->lock, mtx_plain);
3081 bool needs_size = analyze_io(ret, nir);
3082 NIR_PASS_V(nir, unbreak_bos, ret, needs_size);
3087 NIR_PASS_V(nir, remove_bo_access, ret);
3112 scan_nir(screen, nir, ret);
3134 ret->bindings[ztype][ret->num_bindings[ztype]].index = var->data.driver_location;
3135 ret->bindings[ztype][ret->num_bindings[ztype]].binding = binding;
3136 ret->bindings[ztype][ret->num_bindings[ztype]].type = vktype;
3137 ret->bindings[ztype][ret->num_bindings[ztype]].size = glsl_get_length(var->type);
3138 assert(ret->bindings[ztype][ret->num_bindings[ztype]].size);
3139 ret->num_bindings[ztype]++;
3147 ret->bindings[ztype][ret->num_bindings[ztype]].index = var->data.driver_location;
3148 ret->bindings[ztype][ret->num_bindings[ztype]].binding = var->data.binding;
3149 ret->bindings[ztype][ret->num_bindings[ztype]].type = VK_DESCRIPTOR_TYPE_STORAGE_BUFFER;
3150 ret->bindings[ztype][ret->num_bindings[ztype]].size = glsl_get_length(var->type);
3151 assert(ret->bindings[ztype][ret->num_bindings[ztype]].size);
3152 ret->num_bindings[ztype]++;
3157 ret->bindless = true;
3163 ret->num_texel_buffers++;
3167 ret->bindings[ztype][ret->num_bindings[ztype]].index = var->data.driver_location;
3168 ret->bindings[ztype][ret->num_bindings[ztype]].binding = var->data.binding;
3169 ret->bindings[ztype][ret->num_bindings[ztype]].type = vktype;
3171 ret->bindings[ztype][ret->num_bindings[ztype]].size = glsl_get_aoa_size(var->type);
3173 ret->bindings[ztype][ret->num_bindings[ztype]].size = 1;
3174 ret->num_bindings[ztype]++;
3181 ret->bindless |= bindless_lowered;
3187 ret->nir = nir;
3191 update_so_info(ret, so_info, nir->info.outputs_written, have_psiz);
3210 ret->can_inline = true;
3212 return ret;
3325 struct zink_shader *ret = CALLOC_STRUCT(zink_shader);
3326 ret->hash = _mesa_hash_pointer(ret);
3327 ret->programs = _mesa_pointer_set_create(NULL);
3328 simple_mtx_init(&ret->lock, mtx_plain);
3411 ret->nir = nir;
3412 ret->is_generated = true;
3413 return ret;