On the off chance the program has already been assigned an id --- src/mesa/drivers/dri/i965/brw_shader_cache.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_shader_cache.c b/src/mesa/drivers/dri/i965/brw_shader_cache.c index 08d43e7..5de261c 100644 --- a/src/mesa/drivers/dri/i965/brw_shader_cache.c +++ b/src/mesa/drivers/dri/i965/brw_shader_cache.c @@ -229,6 +229,8 @@ upload_cached_program(struct brw_context *brw) struct brw_vertex_program *vp = (struct brw_vertex_program *)brw->vertex_program; + vs_key.program_string_id = vp->id; + brw_upload_cache(&brw->cache, BRW_CACHE_VS_PROG, &vs_key, sizeof(struct brw_vs_prog_key), vs_program, vs_program_size, @@ -331,6 +333,8 @@ upload_cached_program(struct brw_context *brw) struct brw_fragment_program *wp = (struct brw_fragment_program *)brw->fragment_program; + wm_key.program_string_id = wp->id; + brw_upload_cache(&brw->cache, BRW_CACHE_FS_PROG, &wm_key, sizeof(struct brw_wm_prog_key), wm_program, wm_program_size, -- 2.5.5 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev