anv/device: expose shaderInt16 support in gen8+
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 4 May 2018 09:35:55 +0000 (11:35 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Sat, 5 May 2018 10:41:14 +0000 (12:41 +0200)
This rollbacks the revert of this patch introduced with
commit 7cf284f18e6774c810ed6db17b98e597bf96f8a5.

Tested-by: Mark Janes <mark.a.janes@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_device.c

index 0563eae5c18f31956033cbc451d6bdda59ca94f4..fd516fb8466a58109c9f82118f2426bbe70a566b 100644 (file)
@@ -759,7 +759,7 @@ void anv_GetPhysicalDeviceFeatures(
                                                   pdevice->info.has_64bit_types,
       .shaderInt64                              = pdevice->info.gen >= 8 &&
                                                   pdevice->info.has_64bit_types,
-      .shaderInt16                              = false,
+      .shaderInt16                              = pdevice->info.gen >= 8,
       .shaderResourceMinLod                     = false,
       .variableMultisampleRate                  = true,
       .inheritedQueries                         = true,