}
static void
-gen_shader_sha1(struct brw_context *brw, struct gl_program *prog,
- gl_shader_stage stage, void *key, unsigned char *out_sha1)
+gen_shader_sha1(struct gl_program *prog, gl_shader_stage stage,
+ void *key, unsigned char *out_sha1)
{
char sha1_buf[41];
unsigned char sha1[20];
*/
brw_prog_key_set_id(&prog_key, stage, 0);
- gen_shader_sha1(brw, prog, stage, &prog_key, binary_sha1);
+ gen_shader_sha1(prog, stage, &prog_key, binary_sha1);
size_t buffer_size;
uint8_t *buffer = disk_cache_get(cache, binary_sha1, &buffer_size);
unsigned char sha1[20];
char buf[41];
- gen_shader_sha1(brw, prog, stage, key, sha1);
+ gen_shader_sha1(prog, stage, key, sha1);
_mesa_sha1_format(buf, sha1);
if (brw->ctx._Shader->Flags & GLSL_CACHE_INFO) {
fprintf(stderr, "putting binary in cache: %s\n", buf);