From a650d7068a00f0a256ecb54112da0f4ab9204b86 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sun, 23 May 2010 18:34:04 +0200 Subject: [PATCH] r300g: extend compile error message --- src/gallium/drivers/r300/r300_fs.c | 3 ++- src/gallium/drivers/r300/r300_vs.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/r300/r300_fs.c b/src/gallium/drivers/r300/r300_fs.c index 30aa065..b2d3b52 100644 --- a/src/gallium/drivers/r300/r300_fs.c +++ b/src/gallium/drivers/r300/r300_fs.c @@ -295,7 +295,8 @@ static void r300_translate_fragment_shader( if (compiler.Base.Error) { fprintf(stderr, "r300 FP: Compiler Error:\n%sUsing a dummy shader" - " instead.\n", compiler.Base.ErrorMsg); + " instead.\nIf there's an 'unknown opcode' message, please" + " file a bug report and attach this log.\n", compiler.Base.ErrorMsg); if (shader->dummy) { fprintf(stderr, "r300 FP: Cannot compile the dummy shader! " diff --git a/src/gallium/drivers/r300/r300_vs.c b/src/gallium/drivers/r300/r300_vs.c index ef3af63..6d69bb3 100644 --- a/src/gallium/drivers/r300/r300_vs.c +++ b/src/gallium/drivers/r300/r300_vs.c @@ -227,7 +227,8 @@ void r300_translate_vertex_shader(struct r300_context *r300, if (compiler.Base.Error) { /* XXX We should fallback using Draw. */ fprintf(stderr, "r300 VP: Compiler error:\n%sUsing a dummy shader" - " instead.\n", compiler.Base.ErrorMsg); + " instead.\nIf there's an 'unknown opcode' message, please" + " file a bug report and attach this log.\n", compiler.Base.ErrorMsg); if (vs->dummy) { fprintf(stderr, "r300 VP: Cannot compile the dummy shader! " -- 2.7.4