mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
radv: Fix disk_cache_get size argument.
Got some int->pointer warnings and 20 is not a valid pointer ....
Fixes: 2e3a635ee6 "radv: Add an early exit in the secure compile if we already have the cache entries."
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
e06fcbe2c8
commit
6ced684e27
1 changed files with 2 additions and 2 deletions
|
|
@ -4646,10 +4646,10 @@ radv_secure_compile(struct radv_pipeline *pipeline,
|
|||
|
||||
/* Do an early exit if all cache entries are already there. */
|
||||
bool may_need_copy_shader = pStages[MESA_SHADER_GEOMETRY];
|
||||
void *main_entry = disk_cache_get(device->physical_device->disk_cache, allowed_hashes[0], 20);
|
||||
void *main_entry = disk_cache_get(device->physical_device->disk_cache, allowed_hashes[0], NULL);
|
||||
void *copy_entry = NULL;
|
||||
if (may_need_copy_shader)
|
||||
copy_entry = disk_cache_get(device->physical_device->disk_cache, allowed_hashes[1], 20);
|
||||
copy_entry = disk_cache_get(device->physical_device->disk_cache, allowed_hashes[1], NULL);
|
||||
|
||||
bool has_all_cache_entries = main_entry && (!may_need_copy_shader || copy_entry);
|
||||
free(main_entry);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue