mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 18:40:13 +01:00
iris: rzalloc iris_compiled_shader so memcmp works even if padding creeps in
This commit is contained in:
parent
5f722bf7c4
commit
8e186cef2c
1 changed files with 2 additions and 2 deletions
|
|
@ -215,8 +215,8 @@ iris_upload_shader(struct iris_context *ice,
|
|||
struct gen_device_info *devinfo = &screen->devinfo;
|
||||
struct hash_table *cache = ice->shaders.cache;
|
||||
struct iris_compiled_shader *shader =
|
||||
ralloc_size(cache, sizeof(struct iris_compiled_shader) +
|
||||
ice->vtbl.derived_program_state_size(cache_id));
|
||||
rzalloc_size(cache, sizeof(struct iris_compiled_shader) +
|
||||
ice->vtbl.derived_program_state_size(cache_id));
|
||||
const struct iris_compiled_shader *existing =
|
||||
find_existing_assembly(cache, assembly, prog_data->program_size);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue