i965: Move program key debugging to the compiler.
[mesa.git] / src / mesa / drivers / dri / i965 / brw_cs.c
index 4d968c26656432c70453a966c870669a4ec061ff..ea78471d7634f8b4dcc5fe2f6accaeb99d761791 100644 (file)
@@ -104,7 +104,8 @@ brw_codegen_cs_prog(struct brw_context *brw,
 
    if (unlikely(brw->perf_debug)) {
       if (cp->compiled_once) {
-         _mesa_problem(&brw->ctx, "CS programs shouldn't need recompiles");
+         brw_debug_recompile(brw, MESA_SHADER_COMPUTE, cp->program.Id,
+                             key->program_string_id, key);
       }
       cp->compiled_once = true;