diff options
author | Jordan Justen <[email protected]> | 2014-08-30 19:57:39 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2015-05-02 00:34:28 -0700 |
commit | c380973a9564be57acdae5ab6c6a9efcb72cf6c9 (patch) | |
tree | ffa1168a86239d8f7b19ddf5546425c40b775d6b /src/mesa/drivers/dri/i965/brw_context.c | |
parent | ae6308a41e9d11b4b166fb2f821e7252ca2761e8 (diff) |
i965/fs: Support compute programs in fs_visitor
v2:
* Clean out some unneeded code copied from run_fs (krh)
* Always use NIR
* Split shader time out into a separate commit
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 0f2f9ad7d34..24edf6117a2 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -594,6 +594,8 @@ brw_initialize_context_constants(struct brw_context *brw) if (brw_env_var_as_boolean("INTEL_USE_NIR", true)) ctx->Const.ShaderCompilerOptions[MESA_SHADER_FRAGMENT].NirOptions = &nir_options; + ctx->Const.ShaderCompilerOptions[MESA_SHADER_COMPUTE].NirOptions = &nir_options; + /* ARB_viewport_array */ if (brw->gen >= 7 && ctx->API == API_OPENGL_CORE) { ctx->Const.MaxViewports = GEN7_NUM_VIEWPORTS; |