i965: Use real stage in "Unsupported form of variable indexing" warning.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 29 Jul 2015 01:45:32 +0000 (18:45 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 29 Jul 2015 06:03:08 +0000 (23:03 -0700)
Other stages can be miserably slow too!

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/drivers/dri/i965/brw_shader.cpp

index 703e9aa913e77087680a61361dff17bf5aeb2e9f..4186432ae418c0375c43cde0b4976d2f858fea33 100644 (file)
@@ -290,8 +290,9 @@ process_glsl_ir(gl_shader_stage stage,
                                           options->EmitNoIndirectUniform);
 
    if (unlikely(brw->perf_debug && lowered_variable_indexing)) {
-      perf_debug("Unsupported form of variable indexing in FS; falling "
-                 "back to very inefficient code generation\n");
+      perf_debug("Unsupported form of variable indexing in %s; falling "
+                 "back to very inefficient code generation\n",
+                 _mesa_shader_stage_to_abbrev(shader->Stage));
    }
 
    lower_ubo_reference(shader, shader->ir);