https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a8d718da3924b20d7b2b9…
commit a8d718da3924b20d7b2b93b67004d1692d2af3f1
Author: Amine Khaldi <amine.khaldi(a)reactos.org>
AuthorDate: Mon Mar 5 00:15:03 2018 +0100
Commit: Amine Khaldi <amine.khaldi(a)reactos.org>
CommitDate: Mon Mar 5 00:15:03 2018 +0100
[D3DCOMPILER_43] Sync with Wine Staging 3.3. CORE-14434
---
dll/directx/wine/d3dcompiler_43/CMakeLists.txt | 4 +-
dll/directx/wine/d3dcompiler_43/asmparser.c | 4 +
dll/directx/wine/d3dcompiler_43/blob.c | 3 +
dll/directx/wine/d3dcompiler_43/bytecodewriter.c | 6 +-
dll/directx/wine/d3dcompiler_43/compiler.c | 15 +-
.../wine/d3dcompiler_43/d3dcompiler_private.h | 23 +-
dll/directx/wine/d3dcompiler_43/hlsl.tab.c | 694 +++++++++++----------
dll/directx/wine/d3dcompiler_43/hlsl.tab.h | 8 +-
dll/directx/wine/d3dcompiler_43/hlsl.y | 4 +
dll/directx/wine/d3dcompiler_43/hlsl.yy.c | 69 +-
dll/directx/wine/d3dcompiler_43/main.c | 7 +
dll/directx/wine/d3dcompiler_43/precomp.h | 12 +
dll/directx/wine/d3dcompiler_43/reflection.c | 3 +
dll/directx/wine/d3dcompiler_43/utils.c | 5 +
media/doc/README.WINE | 2 +-
15 files changed, 451 insertions(+), 408 deletions(-)
diff --git a/dll/directx/wine/d3dcompiler_43/CMakeLists.txt
b/dll/directx/wine/d3dcompiler_43/CMakeLists.txt
index 245ffd9ab3..d00c1b69ec 100644
--- a/dll/directx/wine/d3dcompiler_43/CMakeLists.txt
+++ b/dll/directx/wine/d3dcompiler_43/CMakeLists.txt
@@ -18,7 +18,7 @@ list(APPEND SOURCE
main.c
reflection.c
utils.c
- d3dcompiler_private.h
+ precomp.h
${CMAKE_CURRENT_BINARY_DIR}/d3dcompiler_43_stubs.c)
add_library(d3dcompiler_43 SHARED
@@ -30,5 +30,5 @@ set_module_type(d3dcompiler_43 win32dll)
target_link_libraries(d3dcompiler_43 dx10guid uuid wine wpp)
add_importlibs(d3dcompiler_43 msvcrt kernel32 ntdll)
add_dependencies(d3dcompiler_43 d3d_idl_headers)
-add_pch(d3dcompiler_43 d3dcompiler_private.h SOURCE)
+add_pch(d3dcompiler_43 precomp.h SOURCE)
add_cd_file(TARGET d3dcompiler_43 DESTINATION reactos/system32 FOR all)
diff --git a/dll/directx/wine/d3dcompiler_43/asmparser.c
b/dll/directx/wine/d3dcompiler_43/asmparser.c
index 1e7d107276..2d167dece5 100644
--- a/dll/directx/wine/d3dcompiler_43/asmparser.c
+++ b/dll/directx/wine/d3dcompiler_43/asmparser.c
@@ -20,6 +20,10 @@
*
*/
+#include "config.h"
+#include "wine/port.h"
+#include "wine/debug.h"
+
#include "d3dcompiler_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(asmshader);
diff --git a/dll/directx/wine/d3dcompiler_43/blob.c
b/dll/directx/wine/d3dcompiler_43/blob.c
index 896038a9d0..f22dc7183d 100644
--- a/dll/directx/wine/d3dcompiler_43/blob.c
+++ b/dll/directx/wine/d3dcompiler_43/blob.c
@@ -19,6 +19,9 @@
*
*/
+#include "config.h"
+#include "wine/port.h"
+
#include "d3dcompiler_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(d3dcompiler);
diff --git a/dll/directx/wine/d3dcompiler_43/bytecodewriter.c
b/dll/directx/wine/d3dcompiler_43/bytecodewriter.c
index 2b36319b83..a3e6f63fd9 100644
--- a/dll/directx/wine/d3dcompiler_43/bytecodewriter.c
+++ b/dll/directx/wine/d3dcompiler_43/bytecodewriter.c
@@ -20,8 +20,12 @@
*
*/
-#include "d3dcompiler_private.h"
+#include "config.h"
+#include "wine/port.h"
+#include "wine/debug.h"
+
#include "d3d9types.h"
+#include "d3dcompiler_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(bytecodewriter);
diff --git a/dll/directx/wine/d3dcompiler_43/compiler.c
b/dll/directx/wine/d3dcompiler_43/compiler.c
index 9d5e20ce4d..cf75cd516c 100644
--- a/dll/directx/wine/d3dcompiler_43/compiler.c
+++ b/dll/directx/wine/d3dcompiler_43/compiler.c
@@ -17,8 +17,13 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "d3dcompiler_private.h"
+#define COBJMACROS
+#include "config.h"
+#include "wine/port.h"
+#include "wine/debug.h"
#include "wine/unicode.h"
+
+#include "d3dcompiler_private.h"
#include "wine/wpp.h"
WINE_DEFAULT_DEBUG_CHANNEL(d3dcompiler);
@@ -787,3 +792,11 @@ HRESULT WINAPI D3DCompileFromFile(const WCHAR *filename, const
D3D_SHADER_MACRO
return E_NOTIMPL;
}
+
+#ifndef __REACTOS__
+HRESULT WINAPI D3DLoadModule(const void *data, SIZE_T size, ID3D11Module **module)
+{
+ FIXME("data %p, size %lu, module %p stub!\n", data, size, module);
+ return E_NOTIMPL;
+}
+#endif
diff --git a/dll/directx/wine/d3dcompiler_43/d3dcompiler_private.h
b/dll/directx/wine/d3dcompiler_43/d3dcompiler_private.h
index c7ed2e9597..1eea0d242c 100644
--- a/dll/directx/wine/d3dcompiler_43/d3dcompiler_private.h
+++ b/dll/directx/wine/d3dcompiler_43/d3dcompiler_private.h
@@ -22,21 +22,18 @@
#ifndef __WINE_D3DCOMPILER_PRIVATE_H
#define __WINE_D3DCOMPILER_PRIVATE_H
-#include <config.h>
-#include <wine/port.h>
-
-#include <assert.h>
-#include <stdio.h>
+#include "wine/debug.h"
+#include "wine/list.h"
+#include "wine/rbtree.h"
#define COBJMACROS
-#include <windef.h>
-#include <winbase.h>
-#include <objbase.h>
-#include <d3dcompiler.h>
-
-#include <wine/debug.h>
-#include <wine/list.h>
-#include <wine/rbtree.h>
+#include "windef.h"
+#include "winbase.h"
+#include "objbase.h"
+
+#include "d3dcompiler.h"
+
+#include <assert.h>
/*
* This doesn't belong here, but for some functions it is possible to return that
value,
diff --git a/dll/directx/wine/d3dcompiler_43/hlsl.tab.c
b/dll/directx/wine/d3dcompiler_43/hlsl.tab.c
index 5b6d4d7f6b..465416c053 100644
--- a/dll/directx/wine/d3dcompiler_43/hlsl.tab.c
+++ b/dll/directx/wine/d3dcompiler_43/hlsl.tab.c
@@ -73,6 +73,10 @@
/* Copy the first part of user declarations. */
#line 21 "hlsl.y" /* yacc.c:339 */
+#include "config.h"
+#include "wine/debug.h"
+
+#include <stdio.h>
#include "d3dcompiler_private.h"
@@ -951,7 +955,7 @@ static const struct hlsl_ir_function_decl *get_overloaded_func(struct
wine_rb_tr
}
-#line 955 "hlsl.tab.c" /* yacc.c:339 */
+#line 959 "hlsl.tab.c" /* yacc.c:339 */
# ifndef YY_NULL
# if defined __cplusplus && 201103L <= __cplusplus
@@ -971,8 +975,8 @@ static const struct hlsl_ir_function_decl *get_overloaded_func(struct
wine_rb_tr
/* In a future release of Bison, this section will be replaced
by #include "hlsl.tab.h". */
-#ifndef YY_HLSL_E_REACTOSSYNC3_0_GCC_DLL_DIRECTX_WINE_D3DCOMPILER_43_HLSL_TAB_H_INCLUDED
-# define
YY_HLSL_E_REACTOSSYNC3_0_GCC_DLL_DIRECTX_WINE_D3DCOMPILER_43_HLSL_TAB_H_INCLUDED
+#ifndef YY_HLSL_E_REACTOSSYNC_GCC_DLL_DIRECTX_WINE_D3DCOMPILER_43_HLSL_TAB_H_INCLUDED
+# define YY_HLSL_E_REACTOSSYNC_GCC_DLL_DIRECTX_WINE_D3DCOMPILER_43_HLSL_TAB_H_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
@@ -1096,7 +1100,7 @@ extern int hlsl_debug;
typedef union YYSTYPE YYSTYPE;
union YYSTYPE
{
-#line 906 "hlsl.y" /* yacc.c:355 */
+#line 910 "hlsl.y" /* yacc.c:355 */
struct hlsl_type *type;
INT intval;
@@ -1116,7 +1120,7 @@ union YYSTYPE
struct reg_reservation *reg_reservation;
struct parse_colon_attribute colon_attribute;
-#line 1120 "hlsl.tab.c" /* yacc.c:355 */
+#line 1124 "hlsl.tab.c" /* yacc.c:355 */
};
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
@@ -1141,11 +1145,11 @@ extern YYSTYPE hlsl_lval;
extern YYLTYPE hlsl_lloc;
int hlsl_parse (void);
-#endif /*
!YY_HLSL_E_REACTOSSYNC3_0_GCC_DLL_DIRECTX_WINE_D3DCOMPILER_43_HLSL_TAB_H_INCLUDED */
+#endif /* !YY_HLSL_E_REACTOSSYNC_GCC_DLL_DIRECTX_WINE_D3DCOMPILER_43_HLSL_TAB_H_INCLUDED
*/
/* Copy the second part of user declarations. */
-#line 1149 "hlsl.tab.c" /* yacc.c:358 */
+#line 1153 "hlsl.tab.c" /* yacc.c:358 */
#ifdef short
# undef short
@@ -1435,24 +1439,24 @@ static const yytype_uint8 yytranslate[] =
/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
static const yytype_uint16 yyrline[] =
{
- 0, 1091, 1091, 1093, 1130, 1134, 1137, 1142, 1164, 1181,
- 1182, 1184, 1210, 1220, 1221, 1222, 1225, 1229, 1248, 1252,
- 1257, 1264, 1271, 1301, 1306, 1313, 1317, 1318, 1321, 1325,
- 1330, 1336, 1342, 1347, 1356, 1361, 1366, 1380, 1394, 1405,
- 1408, 1419, 1423, 1427, 1432, 1436, 1455, 1475, 1479, 1484,
- 1489, 1494, 1499, 1504, 1512, 1530, 1531, 1532, 1543, 1551,
- 1560, 1566, 1572, 1580, 1586, 1589, 1594, 1600, 1606, 1615,
- 1628, 1631, 1639, 1642, 1646, 1650, 1654, 1658, 1662, 1666,
- 1670, 1674, 1678, 1682, 1687, 1693, 1697, 1702, 1707, 1713,
- 1719, 1723, 1728, 1732, 1739, 1740, 1741, 1742, 1743, 1744,
- 1747, 1770, 1794, 1799, 1805, 1820, 1835, 1843, 1855, 1860,
- 1868, 1882, 1896, 1910, 1921, 1926, 1940, 1944, 1963, 1982,
- 2036, 2096, 2132, 2136, 2152, 2168, 2188, 2220, 2224, 2228,
- 2232, 2237, 2241, 2248, 2255, 2263, 2267, 2274, 2282, 2286,
- 2290, 2295, 2299, 2306, 2313, 2320, 2328, 2332, 2339, 2347,
- 2351, 2356, 2360, 2365, 2369, 2374, 2378, 2383, 2387, 2392,
- 2396, 2401, 2405, 2422, 2426, 2430, 2434, 2438, 2442, 2446,
- 2450, 2454, 2458, 2462, 2467, 2471
+ 0, 1095, 1095, 1097, 1134, 1138, 1141, 1146, 1168, 1185,
+ 1186, 1188, 1214, 1224, 1225, 1226, 1229, 1233, 1252, 1256,
+ 1261, 1268, 1275, 1305, 1310, 1317, 1321, 1322, 1325, 1329,
+ 1334, 1340, 1346, 1351, 1360, 1365, 1370, 1384, 1398, 1409,
+ 1412, 1423, 1427, 1431, 1436, 1440, 1459, 1479, 1483, 1488,
+ 1493, 1498, 1503, 1508, 1516, 1534, 1535, 1536, 1547, 1555,
+ 1564, 1570, 1576, 1584, 1590, 1593, 1598, 1604, 1610, 1619,
+ 1632, 1635, 1643, 1646, 1650, 1654, 1658, 1662, 1666, 1670,
+ 1674, 1678, 1682, 1686, 1691, 1697, 1701, 1706, 1711, 1717,
+ 1723, 1727, 1732, 1736, 1743, 1744, 1745, 1746, 1747, 1748,
+ 1751, 1774, 1798, 1803, 1809, 1824, 1839, 1847, 1859, 1864,
+ 1872, 1886, 1900, 1914, 1925, 1930, 1944, 1948, 1967, 1986,
+ 2040, 2100, 2136, 2140, 2156, 2172, 2192, 2224, 2228, 2232,
+ 2236, 2241, 2245, 2252, 2259, 2267, 2271, 2278, 2286, 2290,
+ 2294, 2299, 2303, 2310, 2317, 2324, 2332, 2336, 2343, 2351,
+ 2355, 2360, 2364, 2369, 2373, 2378, 2382, 2387, 2391, 2396,
+ 2400, 2405, 2409, 2426, 2430, 2434, 2438, 2442, 2446, 2450,
+ 2454, 2458, 2462, 2466, 2471, 2475
};
#endif
@@ -2670,14 +2674,14 @@ yyreduce:
switch (yyn)
{
case 2:
-#line 1091 "hlsl.y" /* yacc.c:1646 */
+#line 1095 "hlsl.y" /* yacc.c:1646 */
{
}
-#line 2677 "hlsl.tab.c" /* yacc.c:1646 */
+#line 2681 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 3:
-#line 1094 "hlsl.y" /* yacc.c:1646 */
+#line 1098 "hlsl.y" /* yacc.c:1646 */
{
const struct hlsl_ir_function_decl *decl;
@@ -2714,34 +2718,34 @@ yyreduce:
TRACE("Adding function '%s' to the function
list.\n", (yyvsp[0].function).name);
add_function_decl(&hlsl_ctx.functions,
(yyvsp[0].function).name, (yyvsp[0].function).decl, FALSE);
}
-#line 2718 "hlsl.tab.c" /* yacc.c:1646 */
+#line 2722 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 4:
-#line 1131 "hlsl.y" /* yacc.c:1646 */
+#line 1135 "hlsl.y" /* yacc.c:1646 */
{
TRACE("Declaration statement parsed.\n");
}
-#line 2726 "hlsl.tab.c" /* yacc.c:1646 */
+#line 2730 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 5:
-#line 1135 "hlsl.y" /* yacc.c:1646 */
+#line 1139 "hlsl.y" /* yacc.c:1646 */
{
}
-#line 2733 "hlsl.tab.c" /* yacc.c:1646 */
+#line 2737 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 6:
-#line 1138 "hlsl.y" /* yacc.c:1646 */
+#line 1142 "hlsl.y" /* yacc.c:1646 */
{
TRACE("Skipping stray semicolon.\n");
}
-#line 2741 "hlsl.tab.c" /* yacc.c:1646 */
+#line 2745 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 7:
-#line 1143 "hlsl.y" /* yacc.c:1646 */
+#line 1147 "hlsl.y" /* yacc.c:1646 */
{
const char **new_array = NULL;
@@ -2762,11 +2766,11 @@ yyreduce:
d3dcompiler_free((yyvsp[0].name));
}
}
-#line 2766 "hlsl.tab.c" /* yacc.c:1646 */
+#line 2770 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 8:
-#line 1165 "hlsl.y" /* yacc.c:1646 */
+#line 1169 "hlsl.y" /* yacc.c:1646 */
{
struct source_location loc;
@@ -2782,11 +2786,11 @@ yyreduce:
}
(yyval.list) = declare_vars((yyvsp[-2].type), 0,
(yyvsp[-1].list));
}
-#line 2786 "hlsl.tab.c" /* yacc.c:1646 */
+#line 2790 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 11:
-#line 1185 "hlsl.y" /* yacc.c:1646 */
+#line 1189 "hlsl.y" /* yacc.c:1646 */
{
BOOL ret;
struct source_location loc;
@@ -2811,11 +2815,11 @@ yyreduce:
return 1;
}
}
-#line 2815 "hlsl.tab.c" /* yacc.c:1646 */
+#line 2819 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 12:
-#line 1211 "hlsl.y" /* yacc.c:1646 */
+#line 1215 "hlsl.y" /* yacc.c:1646 */
{
struct source_location loc;
@@ -2824,20 +2828,20 @@ yyreduce:
check_invalid_matrix_modifiers((yyvsp[-4].modifiers),
&loc);
(yyval.type) = new_struct_type(NULL,
(yyvsp[-4].modifiers), (yyvsp[-1].list));
}
-#line 2828 "hlsl.tab.c" /* yacc.c:1646 */
+#line 2832 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 16:
-#line 1225 "hlsl.y" /* yacc.c:1646 */
+#line 1229 "hlsl.y" /* yacc.c:1646 */
{
(yyval.list) = d3dcompiler_alloc(sizeof(*(yyval.list)));
list_init((yyval.list));
}
-#line 2837 "hlsl.tab.c" /* yacc.c:1646 */
+#line 2841 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 17:
-#line 1230 "hlsl.y" /* yacc.c:1646 */
+#line 1234 "hlsl.y" /* yacc.c:1646 */
{
BOOL ret;
struct hlsl_struct_field *field, *next;
@@ -2855,48 +2859,48 @@ yyreduce:
}
d3dcompiler_free((yyvsp[0].list));
}
-#line 2859 "hlsl.tab.c" /* yacc.c:1646 */
+#line 2863 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 18:
-#line 1249 "hlsl.y" /* yacc.c:1646 */
+#line 1253 "hlsl.y" /* yacc.c:1646 */
{
(yyval.list) = gen_struct_fields((yyvsp[-2].type),
(yyvsp[-3].modifiers), (yyvsp[-1].list));
}
-#line 2867 "hlsl.tab.c" /* yacc.c:1646 */
+#line 2871 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 19:
-#line 1253 "hlsl.y" /* yacc.c:1646 */
+#line 1257 "hlsl.y" /* yacc.c:1646 */
{
(yyval.list) = gen_struct_fields((yyvsp[-2].type), 0,
(yyvsp[-1].list));
}
-#line 2875 "hlsl.tab.c" /* yacc.c:1646 */
+#line 2879 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 20:
-#line 1258 "hlsl.y" /* yacc.c:1646 */
+#line 1262 "hlsl.y" /* yacc.c:1646 */
{
TRACE("Function %s parsed.\n",
(yyvsp[-1].function).name);
(yyval.function) = (yyvsp[-1].function);
(yyval.function).decl->body = (yyvsp[0].list);
pop_scope(&hlsl_ctx);
}
-#line 2886 "hlsl.tab.c" /* yacc.c:1646 */
+#line 2890 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 21:
-#line 1265 "hlsl.y" /* yacc.c:1646 */
+#line 1269 "hlsl.y" /* yacc.c:1646 */
{
TRACE("Function prototype for %s.\n",
(yyvsp[-1].function).name);
(yyval.function) = (yyvsp[-1].function);
pop_scope(&hlsl_ctx);
}
-#line 2896 "hlsl.tab.c" /* yacc.c:1646 */
+#line 2900 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 22:
-#line 1272 "hlsl.y" /* yacc.c:1646 */
+#line 1276 "hlsl.y" /* yacc.c:1646 */
{
if (get_variable(hlsl_ctx.globals, (yyvsp[-4].name)))
{
@@ -2925,81 +2929,81 @@ yyreduce:
(yyval.function).decl->semantic =
(yyvsp[0].colon_attribute).semantic;
set_location(&(yyval.function).decl->node.loc,
&(yylsp[-4]));
}
-#line 2929 "hlsl.tab.c" /* yacc.c:1646 */
+#line 2933 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 23:
-#line 1302 "hlsl.y" /* yacc.c:1646 */
+#line 1306 "hlsl.y" /* yacc.c:1646 */
{
(yyval.list) = d3dcompiler_alloc(sizeof(*(yyval.list)));
list_init((yyval.list));
}
-#line 2938 "hlsl.tab.c" /* yacc.c:1646 */
+#line 2942 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 24:
-#line 1307 "hlsl.y" /* yacc.c:1646 */
+#line 1311 "hlsl.y" /* yacc.c:1646 */
{
pop_scope(&hlsl_ctx);
(yyval.list) = (yyvsp[-1].list);
}
-#line 2947 "hlsl.tab.c" /* yacc.c:1646 */
+#line 2951 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 25:
-#line 1313 "hlsl.y" /* yacc.c:1646 */
+#line 1317 "hlsl.y" /* yacc.c:1646 */
{
push_scope(&hlsl_ctx);
}
-#line 2955 "hlsl.tab.c" /* yacc.c:1646 */
+#line 2959 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 28:
-#line 1321 "hlsl.y" /* yacc.c:1646 */
+#line 1325 "hlsl.y" /* yacc.c:1646 */
{
(yyval.colon_attribute).semantic = NULL;
(yyval.colon_attribute).reg_reservation = NULL;
}
-#line 2964 "hlsl.tab.c" /* yacc.c:1646 */
+#line 2968 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 29:
-#line 1326 "hlsl.y" /* yacc.c:1646 */
+#line 1330 "hlsl.y" /* yacc.c:1646 */
{
(yyval.colon_attribute).semantic = (yyvsp[0].name);
(yyval.colon_attribute).reg_reservation = NULL;
}
-#line 2973 "hlsl.tab.c" /* yacc.c:1646 */
+#line 2977 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 30:
-#line 1331 "hlsl.y" /* yacc.c:1646 */
+#line 1335 "hlsl.y" /* yacc.c:1646 */
{
(yyval.colon_attribute).semantic = NULL;
(yyval.colon_attribute).reg_reservation =
(yyvsp[0].reg_reservation);
}
-#line 2982 "hlsl.tab.c" /* yacc.c:1646 */
+#line 2986 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 31:
-#line 1337 "hlsl.y" /* yacc.c:1646 */
+#line 1341 "hlsl.y" /* yacc.c:1646 */
{
(yyval.name) = (yyvsp[0].name);
}
-#line 2990 "hlsl.tab.c" /* yacc.c:1646 */
+#line 2994 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 32:
-#line 1343 "hlsl.y" /* yacc.c:1646 */
+#line 1347 "hlsl.y" /* yacc.c:1646 */
{
(yyval.reg_reservation) =
parse_reg_reservation((yyvsp[-1].name));
d3dcompiler_free((yyvsp[-1].name));
}
-#line 2999 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3003 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 33:
-#line 1348 "hlsl.y" /* yacc.c:1646 */
+#line 1352 "hlsl.y" /* yacc.c:1646 */
{
FIXME("Ignoring shader target %s in a register
reservation.\n", debugstr_a((yyvsp[-3].name)));
d3dcompiler_free((yyvsp[-3].name));
@@ -3007,28 +3011,28 @@ yyreduce:
(yyval.reg_reservation) =
parse_reg_reservation((yyvsp[-1].name));
d3dcompiler_free((yyvsp[-1].name));
}
-#line 3011 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3015 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 34:
-#line 1357 "hlsl.y" /* yacc.c:1646 */
+#line 1361 "hlsl.y" /* yacc.c:1646 */
{
(yyval.list) = d3dcompiler_alloc(sizeof(*(yyval.list)));
list_init((yyval.list));
}
-#line 3020 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3024 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 35:
-#line 1362 "hlsl.y" /* yacc.c:1646 */
+#line 1366 "hlsl.y" /* yacc.c:1646 */
{
(yyval.list) = (yyvsp[0].list);
}
-#line 3028 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3032 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 36:
-#line 1367 "hlsl.y" /* yacc.c:1646 */
+#line 1371 "hlsl.y" /* yacc.c:1646 */
{
struct source_location loc;
@@ -3042,11 +3046,11 @@ yyreduce:
return -1;
}
}
-#line 3046 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3050 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 37:
-#line 1381 "hlsl.y" /* yacc.c:1646 */
+#line 1385 "hlsl.y" /* yacc.c:1646 */
{
struct source_location loc;
@@ -3059,11 +3063,11 @@ yyreduce:
return 1;
}
}
-#line 3063 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3067 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 38:
-#line 1395 "hlsl.y" /* yacc.c:1646 */
+#line 1399 "hlsl.y" /* yacc.c:1646 */
{
(yyval.parameter).modifiers = (yyvsp[-4].modifiers) ?
(yyvsp[-4].modifiers) : HLSL_MODIFIER_IN;
(yyval.parameter).modifiers |= (yyvsp[-3].modifiers);
@@ -3072,19 +3076,19 @@ yyreduce:
(yyval.parameter).semantic =
(yyvsp[0].colon_attribute).semantic;
(yyval.parameter).reg_reservation =
(yyvsp[0].colon_attribute).reg_reservation;
}
-#line 3076 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3080 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 39:
-#line 1405 "hlsl.y" /* yacc.c:1646 */
+#line 1409 "hlsl.y" /* yacc.c:1646 */
{
(yyval.modifiers) = 0;
}
-#line 3084 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3088 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 40:
-#line 1409 "hlsl.y" /* yacc.c:1646 */
+#line 1413 "hlsl.y" /* yacc.c:1646 */
{
if ((yyvsp[-1].modifiers) & (yyvsp[0].modifiers))
{
@@ -3094,43 +3098,43 @@ yyreduce:
}
(yyval.modifiers) = (yyvsp[-1].modifiers) |
(yyvsp[0].modifiers);
}
-#line 3098 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3102 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 41:
-#line 1420 "hlsl.y" /* yacc.c:1646 */
+#line 1424 "hlsl.y" /* yacc.c:1646 */
{
(yyval.modifiers) = HLSL_MODIFIER_IN;
}
-#line 3106 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3110 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 42:
-#line 1424 "hlsl.y" /* yacc.c:1646 */
+#line 1428 "hlsl.y" /* yacc.c:1646 */
{
(yyval.modifiers) = HLSL_MODIFIER_OUT;
}
-#line 3114 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3118 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 43:
-#line 1428 "hlsl.y" /* yacc.c:1646 */
+#line 1432 "hlsl.y" /* yacc.c:1646 */
{
(yyval.modifiers) = HLSL_MODIFIER_IN |
HLSL_MODIFIER_OUT;
}
-#line 3122 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3126 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 44:
-#line 1433 "hlsl.y" /* yacc.c:1646 */
+#line 1437 "hlsl.y" /* yacc.c:1646 */
{
(yyval.type) = (yyvsp[0].type);
}
-#line 3130 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3134 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 45:
-#line 1437 "hlsl.y" /* yacc.c:1646 */
+#line 1441 "hlsl.y" /* yacc.c:1646 */
{
if ((yyvsp[-3].type)->type != HLSL_CLASS_SCALAR)
{
@@ -3149,11 +3153,11 @@ yyreduce:
(yyval.type) = new_hlsl_type(NULL, HLSL_CLASS_VECTOR,
(yyvsp[-3].type)->base_type, (yyvsp[-1].intval), 1);
}
-#line 3153 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3157 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 46:
-#line 1456 "hlsl.y" /* yacc.c:1646 */
+#line 1460 "hlsl.y" /* yacc.c:1646 */
{
if ((yyvsp[-5].type)->type != HLSL_CLASS_SCALAR)
{
@@ -3172,64 +3176,64 @@ yyreduce:
(yyval.type) = new_hlsl_type(NULL, HLSL_CLASS_MATRIX,
(yyvsp[-5].type)->base_type, (yyvsp[-3].intval), (yyvsp[-1].intval));
}
-#line 3176 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3180 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 47:
-#line 1476 "hlsl.y" /* yacc.c:1646 */
+#line 1480 "hlsl.y" /* yacc.c:1646 */
{
(yyval.type) =
new_hlsl_type(d3dcompiler_strdup("void"), HLSL_CLASS_OBJECT, HLSL_TYPE_VOID, 1,
1);
}
-#line 3184 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3188 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 48:
-#line 1480 "hlsl.y" /* yacc.c:1646 */
+#line 1484 "hlsl.y" /* yacc.c:1646 */
{
(yyval.type) =
new_hlsl_type(d3dcompiler_strdup("sampler"), HLSL_CLASS_OBJECT,
HLSL_TYPE_SAMPLER, 1, 1);
(yyval.type)->sampler_dim = HLSL_SAMPLER_DIM_GENERIC;
}
-#line 3193 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3197 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 49:
-#line 1485 "hlsl.y" /* yacc.c:1646 */
+#line 1489 "hlsl.y" /* yacc.c:1646 */
{
(yyval.type) =
new_hlsl_type(d3dcompiler_strdup("sampler1D"), HLSL_CLASS_OBJECT,
HLSL_TYPE_SAMPLER, 1, 1);
(yyval.type)->sampler_dim = HLSL_SAMPLER_DIM_1D;
}
-#line 3202 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3206 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 50:
-#line 1490 "hlsl.y" /* yacc.c:1646 */
+#line 1494 "hlsl.y" /* yacc.c:1646 */
{
(yyval.type) =
new_hlsl_type(d3dcompiler_strdup("sampler2D"), HLSL_CLASS_OBJECT,
HLSL_TYPE_SAMPLER, 1, 1);
(yyval.type)->sampler_dim = HLSL_SAMPLER_DIM_2D;
}
-#line 3211 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3215 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 51:
-#line 1495 "hlsl.y" /* yacc.c:1646 */
+#line 1499 "hlsl.y" /* yacc.c:1646 */
{
(yyval.type) =
new_hlsl_type(d3dcompiler_strdup("sampler3D"), HLSL_CLASS_OBJECT,
HLSL_TYPE_SAMPLER, 1, 1);
(yyval.type)->sampler_dim = HLSL_SAMPLER_DIM_3D;
}
-#line 3220 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3224 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 52:
-#line 1500 "hlsl.y" /* yacc.c:1646 */
+#line 1504 "hlsl.y" /* yacc.c:1646 */
{
(yyval.type) =
new_hlsl_type(d3dcompiler_strdup("samplerCUBE"), HLSL_CLASS_OBJECT,
HLSL_TYPE_SAMPLER, 1, 1);
(yyval.type)->sampler_dim = HLSL_SAMPLER_DIM_CUBE;
}
-#line 3229 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3233 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 53:
-#line 1505 "hlsl.y" /* yacc.c:1646 */
+#line 1509 "hlsl.y" /* yacc.c:1646 */
{
struct hlsl_type *type;
@@ -3237,11 +3241,11 @@ yyreduce:
(yyval.type) = type;
d3dcompiler_free((yyvsp[0].name));
}
-#line 3241 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3245 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 54:
-#line 1513 "hlsl.y" /* yacc.c:1646 */
+#line 1517 "hlsl.y" /* yacc.c:1646 */
{
struct hlsl_type *type;
@@ -3258,11 +3262,11 @@ yyreduce:
}
d3dcompiler_free((yyvsp[0].name));
}
-#line 3262 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3266 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 57:
-#line 1533 "hlsl.y" /* yacc.c:1646 */
+#line 1537 "hlsl.y" /* yacc.c:1646 */
{
(yyval.list) = d3dcompiler_alloc(sizeof(*(yyval.list)));
if (!(yyval.list))
@@ -3272,11 +3276,11 @@ yyreduce:
}
list_init((yyval.list));
}
-#line 3276 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3280 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 58:
-#line 1544 "hlsl.y" /* yacc.c:1646 */
+#line 1548 "hlsl.y" /* yacc.c:1646 */
{
struct source_location loc;
@@ -3284,11 +3288,11 @@ yyreduce:
if (!add_typedef((yyvsp[-3].modifiers), (yyvsp[-2].type),
(yyvsp[-1].list), &loc))
return 1;
}
-#line 3288 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3292 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 59:
-#line 1552 "hlsl.y" /* yacc.c:1646 */
+#line 1556 "hlsl.y" /* yacc.c:1646 */
{
struct source_location loc;
@@ -3296,84 +3300,84 @@ yyreduce:
if (!add_typedef(0, (yyvsp[-2].type), (yyvsp[-1].list),
&loc))
return 1;
}
-#line 3300 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3304 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 60:
-#line 1561 "hlsl.y" /* yacc.c:1646 */
+#line 1565 "hlsl.y" /* yacc.c:1646 */
{
(yyval.list) = d3dcompiler_alloc(sizeof(*(yyval.list)));
list_init((yyval.list));
list_add_head((yyval.list),
&(yyvsp[0].variable_def)->entry);
}
-#line 3310 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3314 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 61:
-#line 1567 "hlsl.y" /* yacc.c:1646 */
+#line 1571 "hlsl.y" /* yacc.c:1646 */
{
(yyval.list) = (yyvsp[-2].list);
list_add_tail((yyval.list),
&(yyvsp[0].variable_def)->entry);
}
-#line 3319 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3323 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 62:
-#line 1573 "hlsl.y" /* yacc.c:1646 */
+#line 1577 "hlsl.y" /* yacc.c:1646 */
{
(yyval.variable_def) =
d3dcompiler_alloc(sizeof(*(yyval.variable_def)));
set_location(&(yyval.variable_def)->loc,
&(yylsp[-1]));
(yyval.variable_def)->name = (yyvsp[-1].name);
(yyval.variable_def)->array_size = (yyvsp[0].intval);
}
-#line 3330 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3334 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 63:
-#line 1581 "hlsl.y" /* yacc.c:1646 */
+#line 1585 "hlsl.y" /* yacc.c:1646 */
{
(yyval.list) = declare_vars((yyvsp[-2].type),
(yyvsp[-3].modifiers), (yyvsp[-1].list));
}
-#line 3338 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3342 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 64:
-#line 1586 "hlsl.y" /* yacc.c:1646 */
+#line 1590 "hlsl.y" /* yacc.c:1646 */
{
(yyval.list) = NULL;
}
-#line 3346 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3350 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 65:
-#line 1590 "hlsl.y" /* yacc.c:1646 */
+#line 1594 "hlsl.y" /* yacc.c:1646 */
{
(yyval.list) = (yyvsp[0].list);
}
-#line 3354 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3358 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 66:
-#line 1595 "hlsl.y" /* yacc.c:1646 */
+#line 1599 "hlsl.y" /* yacc.c:1646 */
{
(yyval.list) = d3dcompiler_alloc(sizeof(*(yyval.list)));
list_init((yyval.list));
list_add_head((yyval.list),
&(yyvsp[0].variable_def)->entry);
}
-#line 3364 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3368 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 67:
-#line 1601 "hlsl.y" /* yacc.c:1646 */
+#line 1605 "hlsl.y" /* yacc.c:1646 */
{
(yyval.list) = (yyvsp[-2].list);
list_add_tail((yyval.list),
&(yyvsp[0].variable_def)->entry);
}
-#line 3373 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3377 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 68:
-#line 1607 "hlsl.y" /* yacc.c:1646 */
+#line 1611 "hlsl.y" /* yacc.c:1646 */
{
(yyval.variable_def) =
d3dcompiler_alloc(sizeof(*(yyval.variable_def)));
set_location(&(yyval.variable_def)->loc,
&(yylsp[-2]));
@@ -3382,11 +3386,11 @@ yyreduce:
(yyval.variable_def)->semantic =
(yyvsp[0].colon_attribute).semantic;
(yyval.variable_def)->reg_reservation =
(yyvsp[0].colon_attribute).reg_reservation;
}
-#line 3386 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3390 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 69:
-#line 1616 "hlsl.y" /* yacc.c:1646 */
+#line 1620 "hlsl.y" /* yacc.c:1646 */
{
TRACE("Declaration with initializer.\n");
(yyval.variable_def) =
d3dcompiler_alloc(sizeof(*(yyval.variable_def)));
@@ -3397,212 +3401,212 @@ yyreduce:
(yyval.variable_def)->reg_reservation =
(yyvsp[-2].colon_attribute).reg_reservation;
(yyval.variable_def)->initializer = (yyvsp[0].list);
}
-#line 3401 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3405 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 70:
-#line 1628 "hlsl.y" /* yacc.c:1646 */
+#line 1632 "hlsl.y" /* yacc.c:1646 */
{
(yyval.intval) = 0;
}
-#line 3409 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3413 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 71:
-#line 1632 "hlsl.y" /* yacc.c:1646 */
+#line 1636 "hlsl.y" /* yacc.c:1646 */
{
FIXME("Array.\n");
(yyval.intval) = 0;
free_instr((yyvsp[-1].instr));
}
-#line 3419 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3423 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 72:
-#line 1639 "hlsl.y" /* yacc.c:1646 */
+#line 1643 "hlsl.y" /* yacc.c:1646 */
{
(yyval.modifiers) = 0;
}
-#line 3427 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3431 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 73:
-#line 1643 "hlsl.y" /* yacc.c:1646 */
+#line 1647 "hlsl.y" /* yacc.c:1646 */
{
(yyval.modifiers) = add_modifier((yyvsp[0].modifiers),
HLSL_STORAGE_EXTERN, &(yylsp[-1]));
}
-#line 3435 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3439 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 74:
-#line 1647 "hlsl.y" /* yacc.c:1646 */
+#line 1651 "hlsl.y" /* yacc.c:1646 */
{
(yyval.modifiers) = add_modifier((yyvsp[0].modifiers),
HLSL_STORAGE_NOINTERPOLATION, &(yylsp[-1]));
}
-#line 3443 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3447 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 75:
-#line 1651 "hlsl.y" /* yacc.c:1646 */
+#line 1655 "hlsl.y" /* yacc.c:1646 */
{
(yyval.modifiers) = add_modifier((yyvsp[0].modifiers),
HLSL_MODIFIER_PRECISE, &(yylsp[-1]));
}
-#line 3451 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3455 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 76:
-#line 1655 "hlsl.y" /* yacc.c:1646 */
+#line 1659 "hlsl.y" /* yacc.c:1646 */
{
(yyval.modifiers) = add_modifier((yyvsp[0].modifiers),
HLSL_STORAGE_SHARED, &(yylsp[-1]));
}
-#line 3459 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3463 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 77:
-#line 1659 "hlsl.y" /* yacc.c:1646 */
+#line 1663 "hlsl.y" /* yacc.c:1646 */
{
(yyval.modifiers) = add_modifier((yyvsp[0].modifiers),
HLSL_STORAGE_GROUPSHARED, &(yylsp[-1]));
}
-#line 3467 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3471 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 78:
-#line 1663 "hlsl.y" /* yacc.c:1646 */
+#line 1667 "hlsl.y" /* yacc.c:1646 */
{
(yyval.modifiers) = add_modifier((yyvsp[0].modifiers),
HLSL_STORAGE_STATIC, &(yylsp[-1]));
}
-#line 3475 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3479 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 79:
-#line 1667 "hlsl.y" /* yacc.c:1646 */
+#line 1671 "hlsl.y" /* yacc.c:1646 */
{
(yyval.modifiers) = add_modifier((yyvsp[0].modifiers),
HLSL_STORAGE_UNIFORM, &(yylsp[-1]));
}
-#line 3483 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3487 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 80:
-#line 1671 "hlsl.y" /* yacc.c:1646 */
+#line 1675 "hlsl.y" /* yacc.c:1646 */
{
(yyval.modifiers) = add_modifier((yyvsp[0].modifiers),
HLSL_STORAGE_VOLATILE, &(yylsp[-1]));
}
-#line 3491 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3495 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 81:
-#line 1675 "hlsl.y" /* yacc.c:1646 */
+#line 1679 "hlsl.y" /* yacc.c:1646 */
{
(yyval.modifiers) = add_modifier((yyvsp[0].modifiers),
HLSL_MODIFIER_CONST, &(yylsp[-1]));
}
-#line 3499 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3503 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 82:
-#line 1679 "hlsl.y" /* yacc.c:1646 */
+#line 1683 "hlsl.y" /* yacc.c:1646 */
{
(yyval.modifiers) = add_modifier((yyvsp[0].modifiers),
HLSL_MODIFIER_ROW_MAJOR, &(yylsp[-1]));
}
-#line 3507 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3511 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 83:
-#line 1683 "hlsl.y" /* yacc.c:1646 */
+#line 1687 "hlsl.y" /* yacc.c:1646 */
{
(yyval.modifiers) = add_modifier((yyvsp[0].modifiers),
HLSL_MODIFIER_COLUMN_MAJOR, &(yylsp[-1]));
}
-#line 3515 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3519 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 84:
-#line 1688 "hlsl.y" /* yacc.c:1646 */
+#line 1692 "hlsl.y" /* yacc.c:1646 */
{
(yyval.list) = d3dcompiler_alloc(sizeof(*(yyval.list)));
list_init((yyval.list));
list_add_head((yyval.list),
&(yyvsp[0].instr)->entry);
}
-#line 3525 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3529 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 85:
-#line 1694 "hlsl.y" /* yacc.c:1646 */
+#line 1698 "hlsl.y" /* yacc.c:1646 */
{
(yyval.list) = (yyvsp[-1].list);
}
-#line 3533 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3537 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 86:
-#line 1698 "hlsl.y" /* yacc.c:1646 */
+#line 1702 "hlsl.y" /* yacc.c:1646 */
{
(yyval.list) = (yyvsp[-2].list);
}
-#line 3541 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3545 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 87:
-#line 1703 "hlsl.y" /* yacc.c:1646 */
+#line 1707 "hlsl.y" /* yacc.c:1646 */
{
(yyval.instr) = (yyvsp[0].instr);
}
-#line 3549 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3553 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 88:
-#line 1708 "hlsl.y" /* yacc.c:1646 */
+#line 1712 "hlsl.y" /* yacc.c:1646 */
{
(yyval.list) = d3dcompiler_alloc(sizeof(*(yyval.list)));
list_init((yyval.list));
list_add_head((yyval.list),
&(yyvsp[0].instr)->entry);
}
-#line 3559 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3563 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 89:
-#line 1714 "hlsl.y" /* yacc.c:1646 */
+#line 1718 "hlsl.y" /* yacc.c:1646 */
{
(yyval.list) = (yyvsp[-2].list);
list_add_tail((yyval.list),
&(yyvsp[0].instr)->entry);
}
-#line 3568 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3572 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 90:
-#line 1720 "hlsl.y" /* yacc.c:1646 */
+#line 1724 "hlsl.y" /* yacc.c:1646 */
{
(yyval.boolval) = TRUE;
}
-#line 3576 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3580 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 91:
-#line 1724 "hlsl.y" /* yacc.c:1646 */
+#line 1728 "hlsl.y" /* yacc.c:1646 */
{
(yyval.boolval) = FALSE;
}
-#line 3584 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3588 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 92:
-#line 1729 "hlsl.y" /* yacc.c:1646 */
+#line 1733 "hlsl.y" /* yacc.c:1646 */
{
(yyval.list) = (yyvsp[0].list);
}
-#line 3592 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3596 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 93:
-#line 1733 "hlsl.y" /* yacc.c:1646 */
+#line 1737 "hlsl.y" /* yacc.c:1646 */
{
(yyval.list) = (yyvsp[-1].list);
list_move_tail((yyval.list), (yyvsp[0].list));
d3dcompiler_free((yyvsp[0].list));
}
-#line 3602 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3606 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 100:
-#line 1748 "hlsl.y" /* yacc.c:1646 */
+#line 1752 "hlsl.y" /* yacc.c:1646 */
{
struct hlsl_ir_jump *jump =
d3dcompiler_alloc(sizeof(*jump));
if (!jump)
@@ -3624,11 +3628,11 @@ yyreduce:
list_init((yyval.list));
list_add_tail((yyval.list), &jump->node.entry);
}
-#line 3628 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3632 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 101:
-#line 1771 "hlsl.y" /* yacc.c:1646 */
+#line 1775 "hlsl.y" /* yacc.c:1646 */
{
struct hlsl_ir_if *instr =
d3dcompiler_alloc(sizeof(*instr));
if (!instr)
@@ -3651,29 +3655,29 @@ yyreduce:
list_init((yyval.list));
list_add_head((yyval.list), &instr->node.entry);
}
-#line 3655 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3659 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 102:
-#line 1795 "hlsl.y" /* yacc.c:1646 */
+#line 1799 "hlsl.y" /* yacc.c:1646 */
{
(yyval.if_body).then_instrs = (yyvsp[0].list);
(yyval.if_body).else_instrs = NULL;
}
-#line 3664 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3668 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 103:
-#line 1800 "hlsl.y" /* yacc.c:1646 */
+#line 1804 "hlsl.y" /* yacc.c:1646 */
{
(yyval.if_body).then_instrs = (yyvsp[-2].list);
(yyval.if_body).else_instrs = (yyvsp[0].list);
}
-#line 3673 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3677 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 104:
-#line 1806 "hlsl.y" /* yacc.c:1646 */
+#line 1810 "hlsl.y" /* yacc.c:1646 */
{
struct source_location loc;
struct list *cond = d3dcompiler_alloc(sizeof(*cond));
@@ -3688,11 +3692,11 @@ yyreduce:
set_location(&loc, &(yylsp[-4]));
(yyval.list) = create_loop(LOOP_WHILE, NULL, cond, NULL,
(yyvsp[0].list), &loc);
}
-#line 3692 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3696 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 105:
-#line 1821 "hlsl.y" /* yacc.c:1646 */
+#line 1825 "hlsl.y" /* yacc.c:1646 */
{
struct source_location loc;
struct list *cond = d3dcompiler_alloc(sizeof(*cond));
@@ -3707,11 +3711,11 @@ yyreduce:
set_location(&loc, &(yylsp[-6]));
(yyval.list) = create_loop(LOOP_DO_WHILE, NULL, cond,
NULL, (yyvsp[-5].list), &loc);
}
-#line 3711 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3715 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 106:
-#line 1836 "hlsl.y" /* yacc.c:1646 */
+#line 1840 "hlsl.y" /* yacc.c:1646 */
{
struct source_location loc;
@@ -3719,11 +3723,11 @@ yyreduce:
(yyval.list) = create_loop(LOOP_FOR, (yyvsp[-4].list),
(yyvsp[-3].list), (yyvsp[-2].instr), (yyvsp[0].list), &loc);
pop_scope(&hlsl_ctx);
}
-#line 3723 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3727 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 107:
-#line 1844 "hlsl.y" /* yacc.c:1646 */
+#line 1848 "hlsl.y" /* yacc.c:1646 */
{
struct source_location loc;
@@ -3734,31 +3738,31 @@ yyreduce:
(yyval.list) = create_loop(LOOP_FOR, (yyvsp[-4].list),
(yyvsp[-3].list), (yyvsp[-2].instr), (yyvsp[0].list), &loc);
pop_scope(&hlsl_ctx);
}
-#line 3738 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3742 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 108:
-#line 1856 "hlsl.y" /* yacc.c:1646 */
+#line 1860 "hlsl.y" /* yacc.c:1646 */
{
(yyval.list) = d3dcompiler_alloc(sizeof(*(yyval.list)));
list_init((yyval.list));
}
-#line 3747 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3751 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 109:
-#line 1861 "hlsl.y" /* yacc.c:1646 */
+#line 1865 "hlsl.y" /* yacc.c:1646 */
{
(yyval.list) = d3dcompiler_alloc(sizeof(*(yyval.list)));
list_init((yyval.list));
if ((yyvsp[-1].instr))
list_add_head((yyval.list),
&(yyvsp[-1].instr)->entry);
}
-#line 3758 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3762 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 110:
-#line 1869 "hlsl.y" /* yacc.c:1646 */
+#line 1873 "hlsl.y" /* yacc.c:1646 */
{
struct hlsl_ir_constant *c =
d3dcompiler_alloc(sizeof(*c));
if (!c)
@@ -3772,11 +3776,11 @@ yyreduce:
c->v.value.f[0] = (yyvsp[0].floatval);
(yyval.instr) = &c->node;
}
-#line 3776 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3780 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 111:
-#line 1883 "hlsl.y" /* yacc.c:1646 */
+#line 1887 "hlsl.y" /* yacc.c:1646 */
{
struct hlsl_ir_constant *c =
d3dcompiler_alloc(sizeof(*c));
if (!c)
@@ -3790,11 +3794,11 @@ yyreduce:
c->v.value.i[0] = (yyvsp[0].intval);
(yyval.instr) = &c->node;
}
-#line 3794 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3798 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 112:
-#line 1897 "hlsl.y" /* yacc.c:1646 */
+#line 1901 "hlsl.y" /* yacc.c:1646 */
{
struct hlsl_ir_constant *c =
d3dcompiler_alloc(sizeof(*c));
if (!c)
@@ -3808,11 +3812,11 @@ yyreduce:
c->v.value.b[0] = (yyvsp[0].boolval);
(yyval.instr) = &c->node;
}
-#line 3812 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3816 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 113:
-#line 1911 "hlsl.y" /* yacc.c:1646 */
+#line 1915 "hlsl.y" /* yacc.c:1646 */
{
struct hlsl_ir_deref *deref =
new_var_deref((yyvsp[0].var));
if (deref)
@@ -3823,19 +3827,19 @@ yyreduce:
else
(yyval.instr) = NULL;
}
-#line 3827 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3831 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 114:
-#line 1922 "hlsl.y" /* yacc.c:1646 */
+#line 1926 "hlsl.y" /* yacc.c:1646 */
{
(yyval.instr) = (yyvsp[-1].instr);
}
-#line 3835 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3839 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 115:
-#line 1927 "hlsl.y" /* yacc.c:1646 */
+#line 1931 "hlsl.y" /* yacc.c:1646 */
{
struct hlsl_ir_var *var;
var = get_variable(hlsl_ctx.cur_scope, (yyvsp[0].name));
@@ -3848,19 +3852,19 @@ yyreduce:
}
(yyval.var) = var;
}
-#line 3852 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3856 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 116:
-#line 1941 "hlsl.y" /* yacc.c:1646 */
+#line 1945 "hlsl.y" /* yacc.c:1646 */
{
(yyval.instr) = (yyvsp[0].instr);
}
-#line 3860 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3864 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 117:
-#line 1945 "hlsl.y" /* yacc.c:1646 */
+#line 1949 "hlsl.y" /* yacc.c:1646 */
{
struct hlsl_ir_node *operands[3];
struct source_location loc;
@@ -3879,11 +3883,11 @@ yyreduce:
(yyval.instr)->data_type =
clone_hlsl_type((yyval.instr)->data_type);
(yyval.instr)->data_type->modifiers |=
HLSL_MODIFIER_CONST;
}
-#line 3883 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3887 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 118:
-#line 1964 "hlsl.y" /* yacc.c:1646 */
+#line 1968 "hlsl.y" /* yacc.c:1646 */
{
struct hlsl_ir_node *operands[3];
struct source_location loc;
@@ -3902,11 +3906,11 @@ yyreduce:
(yyval.instr)->data_type =
clone_hlsl_type((yyval.instr)->data_type);
(yyval.instr)->data_type->modifiers |=
HLSL_MODIFIER_CONST;
}
-#line 3906 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3910 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 119:
-#line 1983 "hlsl.y" /* yacc.c:1646 */
+#line 1987 "hlsl.y" /* yacc.c:1646 */
{
struct source_location loc;
@@ -3960,11 +3964,11 @@ yyreduce:
return 1;
}
}
-#line 3964 "hlsl.tab.c" /* yacc.c:1646 */
+#line 3968 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 120:
-#line 2037 "hlsl.y" /* yacc.c:1646 */
+#line 2041 "hlsl.y" /* yacc.c:1646 */
{
/* This may be an array dereference or a vector/matrix
* subcomponent access.
@@ -4022,11 +4026,11 @@ yyreduce:
(yyval.instr) = &deref->node;
}
-#line 4026 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4030 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 121:
-#line 2097 "hlsl.y" /* yacc.c:1646 */
+#line 2101 "hlsl.y" /* yacc.c:1646 */
{
struct hlsl_ir_constructor *constructor;
@@ -4061,19 +4065,19 @@ yyreduce:
(yyval.instr) = &constructor->node;
}
-#line 4065 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4069 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 122:
-#line 2133 "hlsl.y" /* yacc.c:1646 */
+#line 2137 "hlsl.y" /* yacc.c:1646 */
{
(yyval.instr) = (yyvsp[0].instr);
}
-#line 4073 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4077 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 123:
-#line 2137 "hlsl.y" /* yacc.c:1646 */
+#line 2141 "hlsl.y" /* yacc.c:1646 */
{
struct hlsl_ir_node *operands[3];
struct source_location loc;
@@ -4089,11 +4093,11 @@ yyreduce:
operands[1] = operands[2] = NULL;
(yyval.instr) = &new_expr(HLSL_IR_UNOP_PREINC,
operands, &loc)->node;
}
-#line 4093 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4097 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 124:
-#line 2153 "hlsl.y" /* yacc.c:1646 */
+#line 2157 "hlsl.y" /* yacc.c:1646 */
{
struct hlsl_ir_node *operands[3];
struct source_location loc;
@@ -4109,11 +4113,11 @@ yyreduce:
operands[1] = operands[2] = NULL;
(yyval.instr) = &new_expr(HLSL_IR_UNOP_PREDEC,
operands, &loc)->node;
}
-#line 4113 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4117 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 125:
-#line 2169 "hlsl.y" /* yacc.c:1646 */
+#line 2173 "hlsl.y" /* yacc.c:1646 */
{
enum hlsl_ir_expr_op ops[] = {0, HLSL_IR_UNOP_NEG,
HLSL_IR_UNOP_LOGIC_NOT, HLSL_IR_UNOP_BIT_NOT};
@@ -4132,11 +4136,11 @@ yyreduce:
(yyval.instr) =
&new_expr(ops[(yyvsp[-1].unary_op)], operands, &loc)->node;
}
}
-#line 4136 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4140 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 126:
-#line 2189 "hlsl.y" /* yacc.c:1646 */
+#line 2193 "hlsl.y" /* yacc.c:1646 */
{
struct hlsl_ir_expr *expr;
struct hlsl_type *src_type =
(yyvsp[0].instr)->data_type;
@@ -4167,324 +4171,324 @@ yyreduce:
expr = new_cast((yyvsp[0].instr), dst_type, &loc);
(yyval.instr) = expr ? &expr->node : NULL;
}
-#line 4171 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4175 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 127:
-#line 2221 "hlsl.y" /* yacc.c:1646 */
+#line 2225 "hlsl.y" /* yacc.c:1646 */
{
(yyval.unary_op) = UNARY_OP_PLUS;
}
-#line 4179 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4183 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 128:
-#line 2225 "hlsl.y" /* yacc.c:1646 */
+#line 2229 "hlsl.y" /* yacc.c:1646 */
{
(yyval.unary_op) = UNARY_OP_MINUS;
}
-#line 4187 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4191 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 129:
-#line 2229 "hlsl.y" /* yacc.c:1646 */
+#line 2233 "hlsl.y" /* yacc.c:1646 */
{
(yyval.unary_op) = UNARY_OP_LOGICNOT;
}
-#line 4195 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4199 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 130:
-#line 2233 "hlsl.y" /* yacc.c:1646 */
+#line 2237 "hlsl.y" /* yacc.c:1646 */
{
(yyval.unary_op) = UNARY_OP_BITNOT;
}
-#line 4203 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4207 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 131:
-#line 2238 "hlsl.y" /* yacc.c:1646 */
+#line 2242 "hlsl.y" /* yacc.c:1646 */
{
(yyval.instr) = (yyvsp[0].instr);
}
-#line 4211 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4215 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 132:
-#line 2242 "hlsl.y" /* yacc.c:1646 */
+#line 2246 "hlsl.y" /* yacc.c:1646 */
{
struct source_location loc;
set_location(&loc, &(yylsp[-1]));
(yyval.instr) = &hlsl_mul((yyvsp[-2].instr),
(yyvsp[0].instr), &loc)->node;
}
-#line 4222 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4226 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 133:
-#line 2249 "hlsl.y" /* yacc.c:1646 */
+#line 2253 "hlsl.y" /* yacc.c:1646 */
{
struct source_location loc;
set_location(&loc, &(yylsp[-1]));
(yyval.instr) = &hlsl_div((yyvsp[-2].instr),
(yyvsp[0].instr), &loc)->node;
}
-#line 4233 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4237 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 134:
-#line 2256 "hlsl.y" /* yacc.c:1646 */
+#line 2260 "hlsl.y" /* yacc.c:1646 */
{
struct source_location loc;
set_location(&loc, &(yylsp[-1]));
(yyval.instr) = &hlsl_mod((yyvsp[-2].instr),
(yyvsp[0].instr), &loc)->node;
}
-#line 4244 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4248 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 135:
-#line 2264 "hlsl.y" /* yacc.c:1646 */
+#line 2268 "hlsl.y" /* yacc.c:1646 */
{
(yyval.instr) = (yyvsp[0].instr);
}
-#line 4252 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4256 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 136:
-#line 2268 "hlsl.y" /* yacc.c:1646 */
+#line 2272 "hlsl.y" /* yacc.c:1646 */
{
struct source_location loc;
set_location(&loc, &(yylsp[-1]));
(yyval.instr) = &hlsl_add((yyvsp[-2].instr),
(yyvsp[0].instr), &loc)->node;
}
-#line 4263 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4267 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 137:
-#line 2275 "hlsl.y" /* yacc.c:1646 */
+#line 2279 "hlsl.y" /* yacc.c:1646 */
{
struct source_location loc;
set_location(&loc, &(yylsp[-1]));
(yyval.instr) = &hlsl_sub((yyvsp[-2].instr),
(yyvsp[0].instr), &loc)->node;
}
-#line 4274 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4278 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 138:
-#line 2283 "hlsl.y" /* yacc.c:1646 */
+#line 2287 "hlsl.y" /* yacc.c:1646 */
{
(yyval.instr) = (yyvsp[0].instr);
}
-#line 4282 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4286 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 139:
-#line 2287 "hlsl.y" /* yacc.c:1646 */
+#line 2291 "hlsl.y" /* yacc.c:1646 */
{
FIXME("Left shift\n");
}
-#line 4290 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4294 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 140:
-#line 2291 "hlsl.y" /* yacc.c:1646 */
+#line 2295 "hlsl.y" /* yacc.c:1646 */
{
FIXME("Right shift\n");
}
-#line 4298 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4302 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 141:
-#line 2296 "hlsl.y" /* yacc.c:1646 */
+#line 2300 "hlsl.y" /* yacc.c:1646 */
{
(yyval.instr) = (yyvsp[0].instr);
}
-#line 4306 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4310 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 142:
-#line 2300 "hlsl.y" /* yacc.c:1646 */
+#line 2304 "hlsl.y" /* yacc.c:1646 */
{
struct source_location loc;
set_location(&loc, &(yylsp[-1]));
(yyval.instr) = &hlsl_lt((yyvsp[-2].instr),
(yyvsp[0].instr), &loc)->node;
}
-#line 4317 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4321 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 143:
-#line 2307 "hlsl.y" /* yacc.c:1646 */
+#line 2311 "hlsl.y" /* yacc.c:1646 */
{
struct source_location loc;
set_location(&loc, &(yylsp[-1]));
(yyval.instr) = &hlsl_gt((yyvsp[-2].instr),
(yyvsp[0].instr), &loc)->node;
}
-#line 4328 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4332 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 144:
-#line 2314 "hlsl.y" /* yacc.c:1646 */
+#line 2318 "hlsl.y" /* yacc.c:1646 */
{
struct source_location loc;
set_location(&loc, &(yylsp[-1]));
(yyval.instr) = &hlsl_le((yyvsp[-2].instr),
(yyvsp[0].instr), &loc)->node;
}
-#line 4339 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4343 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 145:
-#line 2321 "hlsl.y" /* yacc.c:1646 */
+#line 2325 "hlsl.y" /* yacc.c:1646 */
{
struct source_location loc;
set_location(&loc, &(yylsp[-1]));
(yyval.instr) = &hlsl_ge((yyvsp[-2].instr),
(yyvsp[0].instr), &loc)->node;
}
-#line 4350 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4354 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 146:
-#line 2329 "hlsl.y" /* yacc.c:1646 */
+#line 2333 "hlsl.y" /* yacc.c:1646 */
{
(yyval.instr) = (yyvsp[0].instr);
}
-#line 4358 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4362 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 147:
-#line 2333 "hlsl.y" /* yacc.c:1646 */
+#line 2337 "hlsl.y" /* yacc.c:1646 */
{
struct source_location loc;
set_location(&loc, &(yylsp[-1]));
(yyval.instr) = &hlsl_eq((yyvsp[-2].instr),
(yyvsp[0].instr), &loc)->node;
}
-#line 4369 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4373 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 148:
-#line 2340 "hlsl.y" /* yacc.c:1646 */
+#line 2344 "hlsl.y" /* yacc.c:1646 */
{
struct source_location loc;
set_location(&loc, &(yylsp[-1]));
(yyval.instr) = &hlsl_ne((yyvsp[-2].instr),
(yyvsp[0].instr), &loc)->node;
}
-#line 4380 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4384 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 149:
-#line 2348 "hlsl.y" /* yacc.c:1646 */
+#line 2352 "hlsl.y" /* yacc.c:1646 */
{
(yyval.instr) = (yyvsp[0].instr);
}
-#line 4388 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4392 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 150:
-#line 2352 "hlsl.y" /* yacc.c:1646 */
+#line 2356 "hlsl.y" /* yacc.c:1646 */
{
FIXME("bitwise AND\n");
}
-#line 4396 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4400 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 151:
-#line 2357 "hlsl.y" /* yacc.c:1646 */
+#line 2361 "hlsl.y" /* yacc.c:1646 */
{
(yyval.instr) = (yyvsp[0].instr);
}
-#line 4404 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4408 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 152:
-#line 2361 "hlsl.y" /* yacc.c:1646 */
+#line 2365 "hlsl.y" /* yacc.c:1646 */
{
FIXME("bitwise XOR\n");
}
-#line 4412 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4416 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 153:
-#line 2366 "hlsl.y" /* yacc.c:1646 */
+#line 2370 "hlsl.y" /* yacc.c:1646 */
{
(yyval.instr) = (yyvsp[0].instr);
}
-#line 4420 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4424 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 154:
-#line 2370 "hlsl.y" /* yacc.c:1646 */
+#line 2374 "hlsl.y" /* yacc.c:1646 */
{
FIXME("bitwise OR\n");
}
-#line 4428 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4432 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 155:
-#line 2375 "hlsl.y" /* yacc.c:1646 */
+#line 2379 "hlsl.y" /* yacc.c:1646 */
{
(yyval.instr) = (yyvsp[0].instr);
}
-#line 4436 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4440 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 156:
-#line 2379 "hlsl.y" /* yacc.c:1646 */
+#line 2383 "hlsl.y" /* yacc.c:1646 */
{
FIXME("logic AND\n");
}
-#line 4444 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4448 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 157:
-#line 2384 "hlsl.y" /* yacc.c:1646 */
+#line 2388 "hlsl.y" /* yacc.c:1646 */
{
(yyval.instr) = (yyvsp[0].instr);
}
-#line 4452 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4456 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 158:
-#line 2388 "hlsl.y" /* yacc.c:1646 */
+#line 2392 "hlsl.y" /* yacc.c:1646 */
{
FIXME("logic OR\n");
}
-#line 4460 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4464 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 159:
-#line 2393 "hlsl.y" /* yacc.c:1646 */
+#line 2397 "hlsl.y" /* yacc.c:1646 */
{
(yyval.instr) = (yyvsp[0].instr);
}
-#line 4468 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4472 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 160:
-#line 2397 "hlsl.y" /* yacc.c:1646 */
+#line 2401 "hlsl.y" /* yacc.c:1646 */
{
FIXME("ternary operator\n");
}
-#line 4476 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4480 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 161:
-#line 2402 "hlsl.y" /* yacc.c:1646 */
+#line 2406 "hlsl.y" /* yacc.c:1646 */
{
(yyval.instr) = (yyvsp[0].instr);
}
-#line 4484 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4488 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 162:
-#line 2406 "hlsl.y" /* yacc.c:1646 */
+#line 2410 "hlsl.y" /* yacc.c:1646 */
{
struct source_location loc;
@@ -4500,115 +4504,115 @@ yyreduce:
return 1;
(yyval.instr)->loc = loc;
}
-#line 4504 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4508 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 163:
-#line 2423 "hlsl.y" /* yacc.c:1646 */
+#line 2427 "hlsl.y" /* yacc.c:1646 */
{
(yyval.assign_op) = ASSIGN_OP_ASSIGN;
}
-#line 4512 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4516 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 164:
-#line 2427 "hlsl.y" /* yacc.c:1646 */
+#line 2431 "hlsl.y" /* yacc.c:1646 */
{
(yyval.assign_op) = ASSIGN_OP_ADD;
}
-#line 4520 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4524 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 165:
-#line 2431 "hlsl.y" /* yacc.c:1646 */
+#line 2435 "hlsl.y" /* yacc.c:1646 */
{
(yyval.assign_op) = ASSIGN_OP_SUB;
}
-#line 4528 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4532 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 166:
-#line 2435 "hlsl.y" /* yacc.c:1646 */
+#line 2439 "hlsl.y" /* yacc.c:1646 */
{
(yyval.assign_op) = ASSIGN_OP_MUL;
}
-#line 4536 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4540 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 167:
-#line 2439 "hlsl.y" /* yacc.c:1646 */
+#line 2443 "hlsl.y" /* yacc.c:1646 */
{
(yyval.assign_op) = ASSIGN_OP_DIV;
}
-#line 4544 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4548 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 168:
-#line 2443 "hlsl.y" /* yacc.c:1646 */
+#line 2447 "hlsl.y" /* yacc.c:1646 */
{
(yyval.assign_op) = ASSIGN_OP_MOD;
}
-#line 4552 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4556 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 169:
-#line 2447 "hlsl.y" /* yacc.c:1646 */
+#line 2451 "hlsl.y" /* yacc.c:1646 */
{
(yyval.assign_op) = ASSIGN_OP_LSHIFT;
}
-#line 4560 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4564 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 170:
-#line 2451 "hlsl.y" /* yacc.c:1646 */
+#line 2455 "hlsl.y" /* yacc.c:1646 */
{
(yyval.assign_op) = ASSIGN_OP_RSHIFT;
}
-#line 4568 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4572 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 171:
-#line 2455 "hlsl.y" /* yacc.c:1646 */
+#line 2459 "hlsl.y" /* yacc.c:1646 */
{
(yyval.assign_op) = ASSIGN_OP_AND;
}
-#line 4576 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4580 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 172:
-#line 2459 "hlsl.y" /* yacc.c:1646 */
+#line 2463 "hlsl.y" /* yacc.c:1646 */
{
(yyval.assign_op) = ASSIGN_OP_OR;
}
-#line 4584 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4588 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 173:
-#line 2463 "hlsl.y" /* yacc.c:1646 */
+#line 2467 "hlsl.y" /* yacc.c:1646 */
{
(yyval.assign_op) = ASSIGN_OP_XOR;
}
-#line 4592 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4596 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 174:
-#line 2468 "hlsl.y" /* yacc.c:1646 */
+#line 2472 "hlsl.y" /* yacc.c:1646 */
{
(yyval.instr) = (yyvsp[0].instr);
}
-#line 4600 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4604 "hlsl.tab.c" /* yacc.c:1646 */
break;
case 175:
-#line 2472 "hlsl.y" /* yacc.c:1646 */
+#line 2476 "hlsl.y" /* yacc.c:1646 */
{
FIXME("Comma expression\n");
}
-#line 4608 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4612 "hlsl.tab.c" /* yacc.c:1646 */
break;
-#line 4612 "hlsl.tab.c" /* yacc.c:1646 */
+#line 4616 "hlsl.tab.c" /* yacc.c:1646 */
default: break;
}
/* User semantic actions sometimes alter yychar, and that requires
@@ -4843,7 +4847,7 @@ yyreturn:
#endif
return yyresult;
}
-#line 2476 "hlsl.y" /* yacc.c:1906 */
+#line 2480 "hlsl.y" /* yacc.c:1906 */
static void set_location(struct source_location *loc, const struct YYLTYPE *l)
diff --git a/dll/directx/wine/d3dcompiler_43/hlsl.tab.h
b/dll/directx/wine/d3dcompiler_43/hlsl.tab.h
index 8ca95d0a65..9a15a5ebb3 100644
--- a/dll/directx/wine/d3dcompiler_43/hlsl.tab.h
+++ b/dll/directx/wine/d3dcompiler_43/hlsl.tab.h
@@ -30,8 +30,8 @@
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
-#ifndef YY_HLSL_E_REACTOSSYNC3_0_GCC_DLL_DIRECTX_WINE_D3DCOMPILER_43_HLSL_TAB_H_INCLUDED
-# define
YY_HLSL_E_REACTOSSYNC3_0_GCC_DLL_DIRECTX_WINE_D3DCOMPILER_43_HLSL_TAB_H_INCLUDED
+#ifndef YY_HLSL_E_REACTOSSYNC_GCC_DLL_DIRECTX_WINE_D3DCOMPILER_43_HLSL_TAB_H_INCLUDED
+# define YY_HLSL_E_REACTOSSYNC_GCC_DLL_DIRECTX_WINE_D3DCOMPILER_43_HLSL_TAB_H_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
@@ -155,7 +155,7 @@ extern int hlsl_debug;
typedef union YYSTYPE YYSTYPE;
union YYSTYPE
{
-#line 906 "hlsl.y" /* yacc.c:1909 */
+#line 910 "hlsl.y" /* yacc.c:1909 */
struct hlsl_type *type;
INT intval;
@@ -200,4 +200,4 @@ extern YYSTYPE hlsl_lval;
extern YYLTYPE hlsl_lloc;
int hlsl_parse (void);
-#endif /*
!YY_HLSL_E_REACTOSSYNC3_0_GCC_DLL_DIRECTX_WINE_D3DCOMPILER_43_HLSL_TAB_H_INCLUDED */
+#endif /* !YY_HLSL_E_REACTOSSYNC_GCC_DLL_DIRECTX_WINE_D3DCOMPILER_43_HLSL_TAB_H_INCLUDED
*/
diff --git a/dll/directx/wine/d3dcompiler_43/hlsl.y
b/dll/directx/wine/d3dcompiler_43/hlsl.y
index f8bcdab979..c2c415f858 100644
--- a/dll/directx/wine/d3dcompiler_43/hlsl.y
+++ b/dll/directx/wine/d3dcompiler_43/hlsl.y
@@ -19,6 +19,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
%{
+#include "config.h"
+#include "wine/debug.h"
+
+#include <stdio.h>
#include "d3dcompiler_private.h"
diff --git a/dll/directx/wine/d3dcompiler_43/hlsl.yy.c
b/dll/directx/wine/d3dcompiler_43/hlsl.yy.c
index a3e98d5543..9a91a4dd74 100644
--- a/dll/directx/wine/d3dcompiler_43/hlsl.yy.c
+++ b/dll/directx/wine/d3dcompiler_43/hlsl.yy.c
@@ -28,7 +28,7 @@
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
-#define YY_FLEX_SUBMINOR_VERSION 35
+#define YY_FLEX_SUBMINOR_VERSION 37
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
@@ -161,15 +161,7 @@ typedef unsigned int flex_uint32_t;
/* Size of default input buffer. */
#ifndef YY_BUF_SIZE
-#ifdef __ia64__
-/* On IA-64, the buffer size is 16k, not 8k.
- * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
- * Ditto for the __ia64__ case accordingly.
- */
-#define YY_BUF_SIZE 32768
-#else
#define YY_BUF_SIZE 16384
-#endif /* __ia64__ */
#endif
/* The state buf must be large enough to hold one state per character in the main
buffer.
@@ -181,7 +173,12 @@ typedef unsigned int flex_uint32_t;
typedef struct yy_buffer_state *YY_BUFFER_STATE;
#endif
-extern int hlsl_leng;
+#ifndef YY_TYPEDEF_YY_SIZE_T
+#define YY_TYPEDEF_YY_SIZE_T
+typedef size_t yy_size_t;
+#endif
+
+extern yy_size_t hlsl_leng;
extern FILE *hlsl_in, *hlsl_out;
@@ -207,11 +204,6 @@ extern FILE *hlsl_in, *hlsl_out;
#define unput(c) yyunput( c, (yytext_ptr) )
-#ifndef YY_TYPEDEF_YY_SIZE_T
-#define YY_TYPEDEF_YY_SIZE_T
-typedef size_t yy_size_t;
-#endif
-
#ifndef YY_STRUCT_YY_BUFFER_STATE
#define YY_STRUCT_YY_BUFFER_STATE
struct yy_buffer_state
@@ -229,7 +221,7 @@ struct yy_buffer_state
/* Number of characters read into yy_ch_buf, not including EOB
* characters.
*/
- int yy_n_chars;
+ yy_size_t yy_n_chars;
/* Whether we "own" the buffer - i.e., we know we created it,
* and can realloc() it to grow it, and should free() it to
@@ -299,8 +291,8 @@ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an
array. */
/* yy_hold_char holds the character lost when hlsl_text is formed. */
static char yy_hold_char;
-static int yy_n_chars; /* number of characters read into yy_ch_buf */
-int hlsl_leng;
+static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */
+yy_size_t hlsl_leng;
/* Points to current character in buffer. */
static char *yy_c_buf_p = (char *) 0;
@@ -328,7 +320,7 @@ static void hlsl__init_buffer (YY_BUFFER_STATE b,FILE *file );
YY_BUFFER_STATE hlsl__scan_buffer (char *base,yy_size_t size );
YY_BUFFER_STATE hlsl__scan_string (yyconst char *yy_str );
-YY_BUFFER_STATE hlsl__scan_bytes (yyconst char *bytes,int len );
+YY_BUFFER_STATE hlsl__scan_bytes (yyconst char *bytes,yy_size_t len );
void *hlsl_alloc (yy_size_t );
void *hlsl_realloc (void *,yy_size_t );
@@ -360,7 +352,7 @@ void hlsl_free (void * );
/* Begin user sect3 */
-#define hlsl_wrap(n) 1
+#define hlsl_wrap() 1
#define YY_SKIP_YYWRAP
typedef unsigned char YY_CHAR;
@@ -980,7 +972,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(hlsl_parser);
#define YY_NO_INPUT 1
-#line 984 "hlsl.yy.c"
+#line 976 "hlsl.yy.c"
#define INITIAL 0
#define pp 1
@@ -995,7 +987,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(hlsl_parser);
*/
#include <unistd.h>
#endif
-
+
#ifndef YY_EXTRA_TYPE
#define YY_EXTRA_TYPE void *
#endif
@@ -1023,7 +1015,7 @@ FILE *hlsl_get_out (void );
void hlsl_set_out (FILE * out_str );
-int hlsl_get_leng (void );
+yy_size_t hlsl_get_leng (void );
char *hlsl_get_text (void );
@@ -1063,12 +1055,7 @@ static int input (void );
/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
-#ifdef __ia64__
-/* On IA-64, the buffer size is 16k, not 8k */
-#define YY_READ_BUF_SIZE 16384
-#else
#define YY_READ_BUF_SIZE 8192
-#endif /* __ia64__ */
#endif
/* Copy whatever the last rule matched to the standard output. */
@@ -1174,7 +1161,7 @@ YY_DECL
#line 60 "hlsl.l"
-#line 1178 "hlsl.yy.c"
+#line 1165 "hlsl.yy.c"
if ( !(yy_init) )
{
@@ -1965,7 +1952,7 @@ YY_RULE_SETUP
#line 276 "hlsl.l"
ECHO;
YY_BREAK
-#line 1969 "hlsl.yy.c"
+#line 1956 "hlsl.yy.c"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(pp):
case YY_STATE_EOF(pp_line):
@@ -2156,21 +2143,21 @@ static int yy_get_next_buffer (void)
else
{
- int num_to_read =
+ yy_size_t num_to_read =
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
while ( num_to_read <= 0 )
{ /* Not enough room in the buffer - grow it. */
/* just a shorter name for the current buffer */
- YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
+ YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
int yy_c_buf_p_offset =
(int) ((yy_c_buf_p) - b->yy_ch_buf);
if ( b->yy_is_our_buffer )
{
- int new_size = b->yy_buf_size * 2;
+ yy_size_t new_size = b->yy_buf_size * 2;
if ( new_size <= 0 )
b->yy_buf_size += b->yy_buf_size / 8;
@@ -2201,7 +2188,7 @@ static int yy_get_next_buffer (void)
/* Read in more data. */
YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
- (yy_n_chars), (size_t) num_to_read );
+ (yy_n_chars), num_to_read );
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
}
@@ -2297,7 +2284,7 @@ static int yy_get_next_buffer (void)
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
yy_is_jam = (yy_current_state == 716);
- return yy_is_jam ? 0 : yy_current_state;
+ return yy_is_jam ? 0 : yy_current_state;
}
#ifndef YY_NO_INPUT
@@ -2324,7 +2311,7 @@ static int yy_get_next_buffer (void)
else
{ /* need more input */
- int offset = (yy_c_buf_p) - (yytext_ptr);
+ yy_size_t offset = (yy_c_buf_p) - (yytext_ptr);
++(yy_c_buf_p);
switch ( yy_get_next_buffer( ) )
@@ -2598,7 +2585,7 @@ void hlsl_pop_buffer_state (void)
*/
static void hlsl_ensure_buffer_stack (void)
{
- int num_to_alloc;
+ yy_size_t num_to_alloc;
if (!(yy_buffer_stack)) {
@@ -2695,12 +2682,12 @@ YY_BUFFER_STATE hlsl__scan_string (yyconst char * yystr )
*
* @return the newly allocated buffer state object.
*/
-YY_BUFFER_STATE hlsl__scan_bytes (yyconst char * yybytes, int _yybytes_len )
+YY_BUFFER_STATE hlsl__scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len )
{
YY_BUFFER_STATE b;
char *buf;
yy_size_t n;
- int i;
+ yy_size_t i;
/* Get memory for full buffer, including space for trailing EOB's. */
n = _yybytes_len + 2;
@@ -2782,7 +2769,7 @@ FILE *hlsl_get_out (void)
/** Get the length of the current token.
*
*/
-int hlsl_get_leng (void)
+yy_size_t hlsl_get_leng (void)
{
return hlsl_leng;
}
@@ -2930,7 +2917,7 @@ void hlsl_free (void * ptr )
#define YYTABLES_NAME "yytables"
-#line 276 "hlsl.l"
+#line 275 "hlsl.l"
diff --git a/dll/directx/wine/d3dcompiler_43/main.c
b/dll/directx/wine/d3dcompiler_43/main.c
index f67f3a63f4..929cec0a7a 100644
--- a/dll/directx/wine/d3dcompiler_43/main.c
+++ b/dll/directx/wine/d3dcompiler_43/main.c
@@ -19,6 +19,13 @@
*
*/
+#include "config.h"
+
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+
#include "d3dcompiler_private.h"
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, void *reserved)
diff --git a/dll/directx/wine/d3dcompiler_43/precomp.h
b/dll/directx/wine/d3dcompiler_43/precomp.h
new file mode 100644
index 0000000000..149c438b9d
--- /dev/null
+++ b/dll/directx/wine/d3dcompiler_43/precomp.h
@@ -0,0 +1,12 @@
+
+#ifndef __WINE_D3DCOMPILER_PRECOMP_H
+#define __WINE_D3DCOMPILER_PRECOMP_H
+
+#include <wine/config.h>
+#include <wine/port.h>
+
+#include <stdio.h>
+
+#include "d3dcompiler_private.h"
+
+#endif /* !__WINE_D3DCOMPILER_PRECOMP_H */
diff --git a/dll/directx/wine/d3dcompiler_43/reflection.c
b/dll/directx/wine/d3dcompiler_43/reflection.c
index 3376f2287c..5a59c64f94 100644
--- a/dll/directx/wine/d3dcompiler_43/reflection.c
+++ b/dll/directx/wine/d3dcompiler_43/reflection.c
@@ -18,6 +18,9 @@
*
*/
+#include "config.h"
+#include "wine/port.h"
+
#include "d3dcompiler_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(d3dcompiler);
diff --git a/dll/directx/wine/d3dcompiler_43/utils.c
b/dll/directx/wine/d3dcompiler_43/utils.c
index fb4f0b7deb..79f3be8840 100644
--- a/dll/directx/wine/d3dcompiler_43/utils.c
+++ b/dll/directx/wine/d3dcompiler_43/utils.c
@@ -21,6 +21,11 @@
*
*/
+#include "config.h"
+#include "wine/port.h"
+
+#include <stdio.h>
+
#include "d3dcompiler_private.h"
WINE_DEFAULT_DEBUG_CHANNEL(d3dcompiler);
diff --git a/media/doc/README.WINE b/media/doc/README.WINE
index 24c72fb703..f137ad18a8 100644
--- a/media/doc/README.WINE
+++ b/media/doc/README.WINE
@@ -24,7 +24,7 @@ The following libraries are shared with Wine.
reactos/dll/directx/wine/amstream # Synced to Wine-3.0
reactos/dll/directx/wine/d3d8 # Synced to Wine-3.0
reactos/dll/directx/wine/d3d9 # Synced to Wine-3.0
-reactos/dll/directx/wine/d3dcompiler_43 # Synced to Wine-3.0
+reactos/dll/directx/wine/d3dcompiler_43 # Synced to WineStaging-3.3
reactos/dll/directx/wine/d3drm # Synced to WineStaging-2.16
reactos/dll/directx/wine/d3dx9_24 => 43 # Synced to Wine-3.0
reactos/dll/directx/wine/d3dxof # Synced to WineStaging-2.9