Rico Schüller : d3dcompiler: Reorder section parsing to reflect the order from the shader blob.
Alexandre Julliard
julliard at winehq.org
Mon Feb 28 11:02:06 CST 2011
Module: wine
Branch: master
Commit: 3c1ffbf2e7f440b3d15615f1932e29b43743d24f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3c1ffbf2e7f440b3d15615f1932e29b43743d24f
Author: Rico Schüller <kgbricola at web.de>
Date: Sun Feb 27 22:50:58 2011 +0100
d3dcompiler: Reorder section parsing to reflect the order from the shader blob.
---
dlls/d3dcompiler_43/reflection.c | 38 +++++++++++++++++++-------------------
1 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/dlls/d3dcompiler_43/reflection.c b/dlls/d3dcompiler_43/reflection.c
index 120eff0..157e791 100644
--- a/dlls/d3dcompiler_43/reflection.c
+++ b/dlls/d3dcompiler_43/reflection.c
@@ -1465,25 +1465,6 @@ HRESULT d3dcompiler_shader_reflection_init(struct d3dcompiler_shader_reflection
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:
hr = d3dcompiler_parse_rdef(reflection, section->data, section->data_size);
if (FAILED(hr))
@@ -1545,6 +1526,25 @@ HRESULT d3dcompiler_shader_reflection_init(struct d3dcompiler_shader_reflection
}
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:
FIXME("Unhandled section %s!\n", debugstr_an((const char *)§ion->tag, 4));
break;
More information about the wine-cvs
mailing list