Mesa (master): r600g: print opcodes names instead of numbers
Marek Olšák
mareko at kemper.freedesktop.org
Fri Apr 29 11:18:32 UTC 2011
Module: Mesa
Branch: master
Commit: f8279fb9d82cbbbbaf8a5cc26486142c21d4d2d2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f8279fb9d82cbbbbaf8a5cc26486142c21d4d2d2
Author: Marek Olšák <maraeo at gmail.com>
Date: Fri Apr 29 13:16:24 2011 +0200
r600g: print opcodes names instead of numbers
---
src/gallium/drivers/r600/r600_shader.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index 0f4c013..845d41a 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -21,6 +21,7 @@
* USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "pipe/p_shader_tokens.h"
+#include "tgsi/tgsi_info.h"
#include "tgsi/tgsi_parse.h"
#include "tgsi/tgsi_scan.h"
#include "tgsi/tgsi_dump.h"
@@ -824,7 +825,8 @@ out_err:
static int tgsi_unsupported(struct r600_shader_ctx *ctx)
{
- R600_ERR("%d tgsi opcode unsupported\n", ctx->inst_info->tgsi_opcode);
+ R600_ERR("%s tgsi opcode unsupported\n",
+ tgsi_get_opcode_name(ctx->inst_info->tgsi_opcode));
return -EINVAL;
}
More information about the mesa-commit
mailing list