radv: Simplify shader config assignment.
We don't hash this struct so direct assignment here is OK. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26692>
This commit is contained in:
parent
4353b0ad72
commit
e444908d65
1 changed files with 1 additions and 3 deletions
|
|
@ -2064,9 +2064,7 @@ radv_shader_create_uncached(struct radv_device *device, const struct radv_shader
|
|||
vk_pipeline_cache_object_init(&device->vk, &shader->base, &radv_shader_ops, shader->hash, sizeof(shader->hash));
|
||||
|
||||
shader->info = binary->info;
|
||||
|
||||
/* Copy the shader binary configuration. */
|
||||
memcpy(&shader->config, &binary->config, sizeof(shader->config));
|
||||
shader->config = binary->config;
|
||||
|
||||
if (binary->type == RADV_BINARY_TYPE_RTLD) {
|
||||
#if !defined(USE_LIBELF)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue