mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
anv: Drop shader relocs from anv_shader_bin_create()
Acording to Lionel anv_shader_bin_create() is only used now for internal shaders and those don't use relocs so we can drop this lines. Suggested-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37749>
This commit is contained in:
parent
62a746b353
commit
d5b8c7c17e
1 changed files with 0 additions and 11 deletions
|
|
@ -139,17 +139,6 @@ anv_shader_bin_create(struct anv_device *device,
|
|||
}
|
||||
}
|
||||
|
||||
int rv_count = 0;
|
||||
struct brw_shader_reloc_value reloc_values[11];
|
||||
rv_count = anv_shader_set_relocs(device, reloc_values, stage,
|
||||
&shader->kernel, prog_data_in, bind_map,
|
||||
shader->embedded_samplers);
|
||||
assert(rv_count <= ARRAY_SIZE(reloc_values));
|
||||
|
||||
brw_write_shader_relocs(&device->physical->compiler->isa,
|
||||
shader->kernel.map, prog_data_in,
|
||||
reloc_values, rv_count);
|
||||
|
||||
memcpy(prog_data, prog_data_in, prog_data_size);
|
||||
typed_memcpy(prog_data_relocs, prog_data_in->relocs,
|
||||
prog_data_in->num_relocs);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue