Home
last modified time | relevance | path

Searched refs:validated_shader (Results 1 – 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/vc4/
Dvc4_validate_shaders.c155 record_texture_sample(struct vc4_validated_shader_info *validated_shader, in record_texture_sample() argument
159 uint32_t s = validated_shader->num_texture_samples; in record_texture_sample()
163 temp_samples = krealloc(validated_shader->texture_samples, in record_texture_sample()
173 validated_shader->num_texture_samples = s + 1; in record_texture_sample()
174 validated_shader->texture_samples = temp_samples; in record_texture_sample()
183 check_tmu_write(struct vc4_validated_shader_info *validated_shader, in check_tmu_write() argument
261 validated_shader->uniforms_size; in check_tmu_write()
272 validated_shader->uniforms_size += 4; in check_tmu_write()
276 if (!record_texture_sample(validated_shader, in check_tmu_write()
287 static bool require_uniform_address_uniform(struct vc4_validated_shader_info *validated_shader) in require_uniform_address_uniform() argument
[all …]
Dvc4_validate.c119 if (bo->validated_shader) { in vc4_use_bo()
812 to_vc4_bo(&bo[0]->base)->validated_shader->is_threaded) { in validate_gl_shader_rec()
817 if (to_vc4_bo(&bo[1]->base)->validated_shader->is_threaded || in validate_gl_shader_rec()
818 to_vc4_bo(&bo[2]->base)->validated_shader->is_threaded) { in validate_gl_shader_rec()
824 struct vc4_validated_shader_info *validated_shader; in validate_gl_shader_rec() local
839 validated_shader = to_vc4_bo(&bo[i]->base)->validated_shader; in validate_gl_shader_rec()
840 if (!validated_shader) in validate_gl_shader_rec()
843 if (validated_shader->uniforms_src_size > in validate_gl_shader_rec()
851 validated_shader->num_texture_samples); in validate_gl_shader_rec()
854 validated_shader->uniforms_size); in validate_gl_shader_rec()
[all …]
Dvc4_bo.c171 if (bo->validated_shader) { in vc4_bo_destroy()
172 kfree(bo->validated_shader->uniform_addr_offsets); in vc4_bo_destroy()
173 kfree(bo->validated_shader->texture_samples); in vc4_bo_destroy()
174 kfree(bo->validated_shader); in vc4_bo_destroy()
175 bo->validated_shader = NULL; in vc4_bo_destroy()
565 if (bo->validated_shader) { in vc4_free_object()
566 kfree(bo->validated_shader->uniform_addr_offsets); in vc4_free_object()
567 kfree(bo->validated_shader->texture_samples); in vc4_free_object()
568 kfree(bo->validated_shader); in vc4_free_object()
569 bo->validated_shader = NULL; in vc4_free_object()
[all …]
Dvc4_drv.h271 struct vc4_validated_shader_info *validated_shader; member