d3dcompiler: Reorder section parsing to reflect the order from the shader blob.

This commit is contained in:
Rico Schüller 2011-02-27 22:50:58 +01:00 committed by Alexandre Julliard
parent 3850e8f4e3
commit 3c1ffbf2e7
1 changed files with 19 additions and 19 deletions

View File

@ -1465,25 +1465,6 @@ HRESULT d3dcompiler_shader_reflection_init(struct d3dcompiler_shader_reflection
switch (section->tag) switch (section->tag)
{ {
case TAG_STAT:
hr = d3dcompiler_parse_stat(reflection, section->data, section->data_size);
if (FAILED(hr))
{
WARN("Failed to parse section STAT.\n");
goto err_out;
}
break;
case TAG_SHEX:
case TAG_SHDR:
hr = d3dcompiler_parse_shdr(reflection, section->data, section->data_size);
if (FAILED(hr))
{
WARN("Failed to parse SHDR section.\n");
goto err_out;
}
break;
case TAG_RDEF: case TAG_RDEF:
hr = d3dcompiler_parse_rdef(reflection, section->data, section->data_size); hr = d3dcompiler_parse_rdef(reflection, section->data, section->data_size);
if (FAILED(hr)) if (FAILED(hr))
@ -1545,6 +1526,25 @@ HRESULT d3dcompiler_shader_reflection_init(struct d3dcompiler_shader_reflection
} }
break; break;
case TAG_SHEX:
case TAG_SHDR:
hr = d3dcompiler_parse_shdr(reflection, section->data, section->data_size);
if (FAILED(hr))
{
WARN("Failed to parse SHDR section.\n");
goto err_out;
}
break;
case TAG_STAT:
hr = d3dcompiler_parse_stat(reflection, section->data, section->data_size);
if (FAILED(hr))
{
WARN("Failed to parse section STAT.\n");
goto err_out;
}
break;
default: default:
FIXME("Unhandled section %s!\n", debugstr_an((const char *)&section->tag, 4)); FIXME("Unhandled section %s!\n", debugstr_an((const char *)&section->tag, 4));
break; break;