panfrost: Flag indirect draw/dispatch shaders as internal

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10417>
This commit is contained in:
Boris Brezillon 2021-05-11 12:40:33 +02:00 committed by Marge Bot
parent ec2b46a1ce
commit 7db79fa677
2 changed files with 2 additions and 0 deletions

View file

@ -171,6 +171,7 @@ pan_indirect_dispatch_init(struct panfrost_device *dev)
nir_builder_init_simple_shader(MESA_SHADER_COMPUTE,
pan_shader_get_compiler_options(dev),
"%s", "indirect_dispatch");
b.shader->info.internal = true;
nir_variable_create(b.shader, nir_var_mem_ubo,
glsl_uint_type(), "inputs");
b.shader->info.num_ubos++;

View file

@ -374,6 +374,7 @@ init_shader_builder(struct indirect_draw_shader_builder *builder,
}
nir_builder *b = &builder->b;
b->shader->info.internal = true;
nir_variable_create(b->shader, nir_var_mem_ubo,
glsl_uint_type(), "inputs");
b->shader->info.num_ubos++;