nir: Print the constant data size associated with a shader.
We should probably dump the constants, too, but this is useful to me for now. Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6179>
This commit is contained in:
@@ -1517,6 +1517,8 @@ nir_print_shader_annotated(nir_shader *shader, FILE *fp,
|
||||
fprintf(fp, "shared: %u\n", shader->num_shared);
|
||||
if (shader->scratch_size)
|
||||
fprintf(fp, "scratch: %u\n", shader->scratch_size);
|
||||
if (shader->constant_data_size)
|
||||
fprintf(fp, "constants: %u\n", shader->constant_data_size);
|
||||
|
||||
nir_foreach_variable_in_shader(var, shader)
|
||||
print_var_decl(var, &state);
|
||||
|
Reference in New Issue
Block a user