mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-22 22:40:46 +02:00
gallium/radeon: disable the shader cache if dumping shaders
otherwise, cached shaders aren't dumped. Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
71a2e4e945
commit
cdbe4990cd
1 changed files with 5 additions and 0 deletions
|
|
@ -785,6 +785,11 @@ static const char* r600_get_chip_name(struct r600_common_screen *rscreen)
|
|||
|
||||
static void r600_disk_cache_create(struct r600_common_screen *rscreen)
|
||||
{
|
||||
/* Don't use the cache if shader dumping is enabled. */
|
||||
if (rscreen->debug_flags &
|
||||
(DBG_FS | DBG_VS | DBG_TCS | DBG_TES | DBG_GS | DBG_PS | DBG_CS))
|
||||
return;
|
||||
|
||||
uint32_t mesa_timestamp;
|
||||
if (disk_cache_get_function_timestamp(r600_disk_cache_create,
|
||||
&mesa_timestamp)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue