Module: Mesa Branch: master Commit: 66bd2e1133baae35c38272bc8728cee631bcbefa URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=66bd2e1133baae35c38272bc8728cee631bcbefa
Author: Jason Ekstrand <[email protected]> Date: Wed Jun 1 18:53:32 2016 -0700 mesa: Get rid of _mesa_active_fragment_shader_has_side_effects It is no longer used. Signed-off-by: Jason Ekstrand <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> --- src/mesa/main/mtypes.h | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index d0f3760..0f9b01d 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -4685,24 +4685,6 @@ enum _debug DEBUG_INCOMPLETE_FBO = (1 << 3) }; -/** - * Checks if the active fragment shader program can have side effects due - * to use of things like atomic buffers or images - */ -static inline bool -_mesa_active_fragment_shader_has_side_effects(const struct gl_context *ctx) -{ - const struct gl_shader *sh; - - if (!ctx->_Shader->_CurrentFragmentProgram) - return false; - - sh = ctx->_Shader->_CurrentFragmentProgram->_LinkedShaders[MESA_SHADER_FRAGMENT]; - return sh->NumAtomicBuffers > 0 || - sh->NumImages > 0 || - sh->NumShaderStorageBlocks > 0; -} - #ifdef __cplusplus } #endif _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
