Commit c9526556 authored by Samuel Pitoiset's avatar Samuel Pitoiset Committed by Marge Bot
Browse files

ac/rgp, radv: report wave size for shaders



Fills the "Wave mode" in "Pipelines" for GPUs that supports Wave32.
Signed-off-by: Samuel Pitoiset's avatarSamuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer's avatarPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <!12896>
parent d29c381c
Pipeline #403442 waiting for manual action with stages
......@@ -53,6 +53,7 @@ struct rgp_shader_data {
uint32_t vgpr_count;
uint32_t sgpr_count;
uint32_t scratch_memory_size;
uint32_t wavefront_size;
uint64_t base_address;
uint32_t elf_symbol_offset;
uint32_t hw_stage;
......
......@@ -149,7 +149,7 @@ ac_rgp_write_msgpack(FILE *output,
ac_msgpack_add_fixstr(&msgpack, hw_stage_string[
record->shader_data[i].hw_stage]);
ac_msgpack_add_fixmap_op(&msgpack, 4);
ac_msgpack_add_fixmap_op(&msgpack, 5);
ac_msgpack_add_fixstr(&msgpack, ".entry_point");
ac_msgpack_add_fixstr(&msgpack, hw_stage_symbol_string[
record->shader_data[i].hw_stage]);
......@@ -166,6 +166,9 @@ ac_rgp_write_msgpack(FILE *output,
ac_msgpack_add_uint(&msgpack,
record->shader_data[i].scratch_memory_size);
ac_msgpack_add_fixstr(&msgpack, ".wavefront_size");
ac_msgpack_add_uint(&msgpack,
record->shader_data[i].wavefront_size);
}
/* 5 */
......
......@@ -893,6 +893,7 @@ radv_add_code_object(struct radv_device *device, struct radv_pipeline *pipeline)
record->shader_data[i].vgpr_count = shader->config.num_vgprs;
record->shader_data[i].sgpr_count = shader->config.num_sgprs;
record->shader_data[i].scratch_memory_size = shader->config.scratch_bytes_per_wave;
record->shader_data[i].wavefront_size = shader->info.wave_size;
record->shader_data[i].base_address = va & 0xffffffffffff;
record->shader_data[i].elf_symbol_offset = 0;
record->shader_data[i].hw_stage = radv_mesa_to_rgp_shader_stage(pipeline, i);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment