diff options
author | Kenneth Graunke <[email protected]> | 2018-11-22 02:55:27 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:10 -0800 |
commit | 855ff47d365abfc0d97061f1084f68bcff961743 (patch) | |
tree | aadd7eed4f690a3dc4b42f48a184940ed25c127b /src/gallium/drivers/iris/iris_screen.c | |
parent | ed4ffb971585908e7bdd8ec1bfffbc6f7b06bd10 (diff) |
iris: Enable precompiles
Diffstat (limited to 'src/gallium/drivers/iris/iris_screen.c')
-rw-r--r-- | src/gallium/drivers/iris/iris_screen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c index 1216933c66d..9e1147ffc80 100644 --- a/src/gallium/drivers/iris/iris_screen.c +++ b/src/gallium/drivers/iris/iris_screen.c @@ -37,6 +37,7 @@ #include "pipe/p_state.h" #include "pipe/p_context.h" #include "pipe/p_screen.h" +#include "util/debug.h" #include "util/u_inlines.h" #include "util/u_format.h" #include "util/u_upload_mgr.h" @@ -565,6 +566,8 @@ iris_screen_create(int fd) brw_process_intel_debug_variable(); + screen->precompile = env_var_as_boolean("shader_precompile", true); + bool hw_has_swizzling = false; // XXX: detect? isl_device_init(&screen->isl_dev, &screen->devinfo, hw_has_swizzling); |