Mesa (master): radeon: pass flags that can change shaders to disk_cache_create()

Timothy Arceri tarceri at kemper.freedesktop.org
Mon May 22 23:09:55 UTC 2017


Module: Mesa
Branch: master
Commit: a363fa0c990284657df178b73e68d268c25069cf
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a363fa0c990284657df178b73e68d268c25069cf

Author: Timothy Arceri <tarceri at itsqueeze.com>
Date:   Sat May 20 11:27:32 2017 +1000

radeon: pass flags that can change shaders to disk_cache_create()

I wasn't sure if I should filter the flags so that we only use
flags that actually change the shader output. To avoid manual
updates we just pass in everything for now.

Reviewed-by: Eduardo Lima Mitev <elima at igalia.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>

---

 src/gallium/drivers/radeon/r600_pipe_common.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c
index 10e9a294fb..5460daabbb 100644
--- a/src/gallium/drivers/radeon/r600_pipe_common.c
+++ b/src/gallium/drivers/radeon/r600_pipe_common.c
@@ -868,7 +868,8 @@ static void r600_disk_cache_create(struct r600_common_screen *rscreen)
 		if (res != -1) {
 			rscreen->disk_shader_cache =
 				disk_cache_create(r600_get_chip_name(rscreen),
-						  timestamp_str, 0);
+						  timestamp_str,
+						  rscreen->debug_flags);
 			free(timestamp_str);
 		}
 	}




More information about the mesa-commit mailing list