radeon: pass flags that can change shaders to disk_cache_create()
authorTimothy Arceri <tarceri@itsqueeze.com>
Sat, 20 May 2017 01:27:32 +0000 (11:27 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 22 May 2017 23:09:43 +0000 (09:09 +1000)
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@igalia.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_pipe_common.c

index 10e9a294fbe96e81a9eda9d9392deb39c99d25a5..5460daabbb4e49bd0d5b32eea0bd9de4d02dac88 100644 (file)
@@ -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);
                }
        }