Commit a262fde8 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3dx9: Fix get_regname debug function.

parent 350f0d39
......@@ -264,13 +264,10 @@ static const char *get_regname(const struct shader_reg *reg, shader_type st) {
return wine_dbg_sprintf("v%u", reg->regnum);
case BWRITERSPR_CONST:
return wine_dbg_sprintf("c%u", reg->regnum);
/* case BWRITERSPR_ADDR: */
case BWRITERSPR_ADDR:
return wine_dbg_sprintf("a%u", reg->regnum);
case BWRITERSPR_TEXTURE:
if(st == ST_VERTEX) {
return wine_dbg_sprintf("a%u", reg->regnum);
} else {
return wine_dbg_sprintf("t%u", reg->regnum);
}
return wine_dbg_sprintf("t%u", reg->regnum);
case BWRITERSPR_RASTOUT:
switch(reg->regnum) {
case BWRITERSRO_POSITION: return "oPos";
......@@ -280,9 +277,10 @@ static const char *get_regname(const struct shader_reg *reg, shader_type st) {
}
case BWRITERSPR_ATTROUT:
return wine_dbg_sprintf("oD%u", reg->regnum);
/* case BWRITERSPR_TEXCRDOUT: */
case BWRITERSPR_TEXCRDOUT:
return wine_dbg_sprintf("oT%u", reg->regnum);
case BWRITERSPR_OUTPUT:
return wine_dbg_sprintf("o[T]%u", reg->regnum);
return wine_dbg_sprintf("o%u", reg->regnum);
case BWRITERSPR_CONSTINT:
return wine_dbg_sprintf("i%u", reg->regnum);
case BWRITERSPR_COLOROUT:
......@@ -305,7 +303,8 @@ static const char *get_regname(const struct shader_reg *reg, shader_type st) {
return wine_dbg_sprintf("l%u", reg->regnum);
case BWRITERSPR_PREDICATE:
return wine_dbg_sprintf("p%u", reg->regnum);
default: return "unknown regname";
default:
return wine_dbg_sprintf("unknown regname %#x", reg->type);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment