[PATCH] d3dcompiler: Store some builtin types in the hlsl_ctx structure.

Matteo Bruni matteo.mystral at gmail.com
Sat May 30 11:55:31 CDT 2020


On Sat, May 30, 2020 at 5:43 PM Alexandre Julliard <julliard at winehq.org> wrote:
>
> Matteo Bruni <mbruni at codeweavers.com> writes:
>
> > From: Zebediah Figura <z.figura12 at gmail.com>
> >
> > Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
> > Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
> > ---
> >  dlls/d3dcompiler_43/d3dcompiler_private.h |   8 ++
> >  dlls/d3dcompiler_43/hlsl.y                | 132 +++++++++++-----------
> >  2 files changed, 76 insertions(+), 64 deletions(-)
>
> This causes compiler warnings:
>
> i686-w64-mingw32-gcc -c -o utils.cross.o ../d3dcompiler_43/utils.c -I. -I../d3dcompiler_43 -I../../include \
>   -I../../include/msvcrt -D__WINESRC__ -DD3D_COMPILER_VERSION=33 -D_UCRT -DWINE_CROSS_PE -Wall \
>   -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers \
>   -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits \
>   -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op \
>   -fno-omit-frame-pointer -gdwarf-2 -gstrict-dwarf -Werror -g -O2 -fno-diagnostics-show-caret
> ../d3dcompiler_43/utils.c: In function ‘debug_base_type’:
> ../d3dcompiler_43/utils.c:1708:13: error: enumeration value ‘HLSL_SAMPLER_DIM_COUNT’ not handled in switch [-Werror=switch]
> cc1: all warnings being treated as errors
> make[1]: *** [Makefile:438: utils.cross.o] Error 1

Somehow I missed it, and I was looking specifically for this...

Please ignore this one for now, I guess.



More information about the wine-devel mailing list