mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-25 09:20:30 +01:00
mesa: Get rid of _mesa_active_fragment_shader_has_side_effects
It is no longer used. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
35bf4d9dc2
commit
66bd2e1133
1 changed files with 0 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue