mesa: improve debug log in atifragshader
authorMiklós Máté <mtmkls@gmail.com>
Tue, 15 Dec 2015 23:05:41 +0000 (00:05 +0100)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 17 Dec 2015 20:09:58 +0000 (12:09 -0800)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/atifragshader.c

index 3ddc51d6069f923c410fc230dad823089136ce42..8fcbff6a7a4db5a4d881e54f8cec03e38fcb813d 100644 (file)
@@ -345,6 +345,9 @@ _mesa_BeginFragmentShaderATI(void)
    ctx->ATIFragmentShader.Current->isValid = GL_FALSE;
    ctx->ATIFragmentShader.Current->swizzlerq = 0;
    ctx->ATIFragmentShader.Compiling = 1;
+#if MESA_DEBUG_ATI_FS
+   _mesa_debug(ctx, "%s %u\n", __func__, ctx->ATIFragmentShader.Current->Id);
+#endif
 }
 
 void GLAPIENTRY