Lines Matching defs:shader
230 struct panvk_shader *shader;
232 shader = vk_zalloc2(&dev->vk.alloc, alloc, sizeof(*shader), 8,
234 if (!shader)
237 util_dynarray_init(&shader->binary, NULL);
258 vk_free2(&dev->vk.alloc, alloc, shader);
317 dev, layout, &shader->has_img_access);
374 GENX(pan_shader_compile)(nir, &inputs, &shader->binary, &shader->info);
377 assert(memcmp(&shader->info.sysvals, &fixed_sysvals,
381 shader->info.ubo_count = PANVK_NUM_BUILTIN_UBOS +
383 shader->info.sampler_count = layout->num_samplers;
384 shader->info.texture_count = layout->num_textures;
385 if (shader->has_img_access)
386 shader->info.attribute_count += layout->num_imgs;
388 shader->sysval_ubo = sysval_ubo;
389 shader->local_size.x = nir->info.workgroup_size[0];
390 shader->local_size.y = nir->info.workgroup_size[1];
391 shader->local_size.z = nir->info.workgroup_size[2];
395 return shader;