gallium/radeon: only pass shader-specific debug flags to the disk shader cache
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
d1285a7103
commit
b420680ede
|
@ -877,10 +877,17 @@ static void r600_disk_cache_create(struct r600_common_screen *rscreen)
|
|||
}
|
||||
#endif
|
||||
if (res != -1) {
|
||||
/* These flags affect shader compilation. */
|
||||
uint64_t shader_debug_flags =
|
||||
rscreen->debug_flags &
|
||||
(DBG_FS_CORRECT_DERIVS_AFTER_KILL |
|
||||
DBG_SI_SCHED |
|
||||
DBG_UNSAFE_MATH);
|
||||
|
||||
rscreen->disk_shader_cache =
|
||||
disk_cache_create(r600_get_family_name(rscreen),
|
||||
timestamp_str,
|
||||
rscreen->debug_flags);
|
||||
shader_debug_flags);
|
||||
free(timestamp_str);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue