diff options
author | Marek Olšák <[email protected]> | 2017-10-04 15:37:30 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-10-24 14:56:34 +0200 |
commit | da0083f1237cb89bc818be99dd0717b7e76b6248 (patch) | |
tree | 36c9b36acfe6911f8bf0f0db2ef65f91c84be058 /src/gallium/drivers/radeonsi/si_state_shaders.c | |
parent | 478afbe525badde95b583dfd4852bd1234daa6de (diff) |
radeonsi: use postponed KILL only when derivatives are used
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state_shaders.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_shaders.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index 9340328a72a..af7f6ecfd60 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -2052,6 +2052,12 @@ static void *si_create_shader_selector(struct pipe_context *ctx, sel->info.num_inputs && !sel->info.properties[TGSI_PROPERTY_VS_BLIT_SGPRS]; + sel->force_correct_derivs_after_kill = + sel->type == PIPE_SHADER_FRAGMENT && + sel->info.uses_derivatives && + sel->info.uses_kill && + sctx->screen->b.debug_flags & DBG(FS_CORRECT_DERIVS_AFTER_KILL); + /* Set which opcode uses which (i,j) pair. */ if (sel->info.uses_persp_opcode_interp_centroid) sel->info.uses_persp_centroid = true; |