aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-01-26 13:18:36 +0000
committerEmil Velikov <[email protected]>2017-01-27 17:56:56 +0000
commita2dea3b654ed3e3c3d5e9a470027441f266f892e (patch)
tree2443a56f62a242632d25d7abfee97620f1b5f707 /src/compiler
parent01849ae0dcd51ce0dfc1444bdf6aa2a012a1e4ec (diff)
nir: silence implicit conversion to 64bit
MSVC warns about implicit conversion as below. Annotate the literal appropriately to silence the warning. nir_gather_info.c(249) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/nir/nir_gather_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_gather_info.c b/src/compiler/nir/nir_gather_info.c
index 35a1ce4dec6..0c70787252b 100644
--- a/src/compiler/nir/nir_gather_info.c
+++ b/src/compiler/nir/nir_gather_info.c
@@ -246,7 +246,7 @@ gather_intrinsic_info(nir_intrinsic_instr *instr, nir_shader *shader)
case nir_intrinsic_load_tess_level_outer:
case nir_intrinsic_load_tess_level_inner:
shader->info->system_values_read |=
- (1 << nir_system_value_from_intrinsic(instr->intrinsic));
+ (1ull << nir_system_value_from_intrinsic(instr->intrinsic));
break;
case nir_intrinsic_end_primitive: