st/glsl_to_nir: use nir based program resource list builder
Here we use the NIR based builder to add everything to the resource list execpt for SSO packed varyings. Since the details of those varyings get lost during packing we leave the special handing to the GLSL IR pass for now. In order to do this we add some bools to the build resource list functions. Using the NIR based resource list builder gets us a step closer to using a native NIR based linker. It should also be faster than the GLSL IR builder, one because the NIR optimisations should mean we add less entries due to better optimisations, and two because nir gives us better lists to work with and we don't need to walk the entire IR to find the resources. Ack-by: Alejandro Piñeiro <apinheiro@igalia.com>
This commit is contained in:
@@ -47,7 +47,8 @@ void gl_nir_set_uniform_initializers(struct gl_context *ctx,
|
||||
struct gl_shader_program *prog);
|
||||
|
||||
void nir_build_program_resource_list(struct gl_context *ctx,
|
||||
struct gl_shader_program *prog);
|
||||
struct gl_shader_program *prog,
|
||||
bool rebuild_resourse_list);
|
||||
|
||||
void gl_nir_link_assign_atomic_counter_resources(struct gl_context *ctx,
|
||||
struct gl_shader_program *prog);
|
||||
|
Reference in New Issue
Block a user