mesa: make _mesa_find_temp_intervals() a static function

It is no longer used externally.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10446>
This commit is contained in:
Timothy Arceri 2021-04-26 16:35:05 +10:00 committed by Marge Bot
parent a7e95dfca5
commit db717677e7
2 changed files with 7 additions and 14 deletions

View File

@ -954,11 +954,11 @@ update_interval(GLint intBegin[], GLint intEnd[],
/**
* Find first/last instruction that references each temporary register.
*/
GLboolean
_mesa_find_temp_intervals(const struct prog_instruction *instructions,
GLuint numInstructions,
GLint intBegin[REG_ALLOCATE_MAX_PROGRAM_TEMPS],
GLint intEnd[REG_ALLOCATE_MAX_PROGRAM_TEMPS])
static bool
find_temp_intervals(const struct prog_instruction *instructions,
GLuint numInstructions,
GLint intBegin[REG_ALLOCATE_MAX_PROGRAM_TEMPS],
GLint intEnd[REG_ALLOCATE_MAX_PROGRAM_TEMPS])
{
struct loop_info loopStack[MAX_LOOP_NESTING];
GLuint loopStackDepth = 0;
@ -1034,9 +1034,8 @@ find_live_intervals(struct gl_program *prog,
}
/* build intermediate arrays */
if (!_mesa_find_temp_intervals(prog->arb.Instructions,
prog->arb.NumInstructions,
intBegin, intEnd))
if (!find_temp_intervals(prog->arb.Instructions, prog->arb.NumInstructions,
intBegin, intEnd))
return GL_FALSE;
/* Build live intervals list from intermediate arrays */

View File

@ -39,12 +39,6 @@ struct gl_program;
struct prog_instruction;
extern GLboolean
_mesa_find_temp_intervals(const struct prog_instruction *instructions,
GLuint numInstructions,
GLint intBegin[MAX_PROGRAM_TEMPS],
GLint intEnd[MAX_PROGRAM_TEMPS]);
extern void
_mesa_optimize_program(struct gl_program *program, void *mem_ctx);