d3dcompiler: Print the data type when dumping IR.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
56be9dde92
commit
d60b126b24
|
@ -1806,9 +1806,11 @@ static void debug_dump_ir_var(const struct hlsl_ir_var *var)
|
|||
|
||||
static void debug_dump_deref(const struct hlsl_deref *deref)
|
||||
{
|
||||
wine_dbg_printf("deref(");
|
||||
debug_dump_ir_var(deref->var);
|
||||
wine_dbg_printf(")");
|
||||
if (deref->offset)
|
||||
/* Print the variable's type for convenience. */
|
||||
wine_dbg_printf("(%s %s)", debug_hlsl_type(deref->var->data_type), deref->var->name);
|
||||
else
|
||||
wine_dbg_printf("%s", deref->var->name);
|
||||
if (deref->offset)
|
||||
{
|
||||
wine_dbg_printf("[");
|
||||
|
@ -2045,6 +2047,9 @@ static void debug_dump_instr(const struct hlsl_ir_node *instr)
|
|||
wine_dbg_printf("%4u: ", instr->index);
|
||||
else
|
||||
wine_dbg_printf("%p: ", instr);
|
||||
|
||||
wine_dbg_printf("%10s | ", instr->data_type ? debug_hlsl_type(instr->data_type) : "");
|
||||
|
||||
switch (instr->type)
|
||||
{
|
||||
case HLSL_IR_EXPR:
|
||||
|
|
Loading…
Reference in New Issue