Skip to content

microsoft/compiler: Add scope for declaration in case statement.

Vinson Lee requested to merge vlee/mesa:d3d12-switch-scope into master

This patch fixes this build error.

../src/microsoft/compiler/dxil_nir.c: In function 'extract_comps_from_vec32': ../src/microsoft/compiler/dxil_nir.c:52:10: error: a label can only be part of a statement and a declaration is not a statement 52 | unsigned dst_offs = i * comps_per32b; | ^~~~~~~~

Fixes: b9c61379 ("microsoft/compiler: translate nir to dxil") Signed-off-by: Vinson Lee vlee@freedesktop.org

cc: @kusma

Merge request reports