#include "state_tracker/st_cb_program.h"
#include "api_exec_decl.h"
+#include "pipe/p_screen.h"
void GLAPIENTRY
_mesa_Hint( GLenum target, GLenum mode )
ctx->Hint.MaxShaderCompilerThreads = count;
- st_max_shader_compiler_threads(ctx, count);
+ struct pipe_screen *screen = ctx->screen;
+ if (screen->set_max_shader_compiler_threads)
+ screen->set_max_shader_compiler_threads(screen, count);
}
/**********************************************************************/
return prog;
}
-void
-st_max_shader_compiler_threads(struct gl_context *ctx, unsigned count)
-{
- struct pipe_screen *screen = st_context(ctx)->screen;
-
- if (screen->set_max_shader_compiler_threads)
- screen->set_max_shader_compiler_threads(screen, count);
-}
-
bool
st_get_shader_program_completion_status(struct gl_context *ctx,
struct gl_shader_program *shprog)
struct gl_program *prog);
struct gl_program *st_new_ati_fs(struct gl_context *ctx, struct ati_fragment_shader *curProg);
-void st_max_shader_compiler_threads(struct gl_context *ctx, unsigned count);
bool st_get_shader_program_completion_status(struct gl_context *ctx,
struct gl_shader_program *shprog);