diff options
author | Tim Rowley <[email protected]> | 2016-09-30 15:18:13 -0500 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2016-10-03 09:57:31 -0500 |
commit | 114f7a92c6a5ea796a4fea9a7b71188fdb243950 (patch) | |
tree | 72284495c31e908b24ee5b2d55e6470eb6afb4d1 /src/gallium/drivers/swr/swr_state.cpp | |
parent | 4198520a82463aa392762ec156231b95bf2685ac (diff) |
swr: [rasterizer jitter] canonicalize blend compile state
Canonicalize to prevent unnecessary JIT compiles.
Signed-off-by: Tim Rowley <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_state.cpp')
-rw-r--r-- | src/gallium/drivers/swr/swr_state.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/swr_state.cpp b/src/gallium/drivers/swr/swr_state.cpp index 7d49ce7b896..3e023225433 100644 --- a/src/gallium/drivers/swr/swr_state.cpp +++ b/src/gallium/drivers/swr/swr_state.cpp @@ -1318,6 +1318,8 @@ swr_update_derived(struct pipe_context *pipe, swr_convert_depth_func(ctx->depth_stencil->alpha.func); compileState.alphaTestFormat = ALPHA_TEST_FLOAT32; // xxx + compileState.Canonicalize(); + PFN_BLEND_JIT_FUNC func = NULL; auto search = ctx->blendJIT->find(compileState); if (search != ctx->blendJIT->end()) { |