radv: enable VK_KHR_shader_float16_int8
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
@@ -902,7 +902,7 @@ void radv_GetPhysicalDeviceFeatures2(
|
||||
VkPhysicalDeviceFloat16Int8FeaturesKHR *features =
|
||||
(VkPhysicalDeviceFloat16Int8FeaturesKHR*)ext;
|
||||
bool enabled = pdevice->rad_info.chip_class >= VI;
|
||||
features->shaderFloat16 = VK_FALSE;
|
||||
features->shaderFloat16 = enabled && HAVE_LLVM >= 0x0800;
|
||||
features->shaderInt8 = enabled;
|
||||
break;
|
||||
}
|
||||
|
@@ -252,6 +252,7 @@ radv_shader_compile_to_nir(struct radv_device *device,
|
||||
.variable_pointers = true,
|
||||
.storage_8bit = true,
|
||||
.int8 = true,
|
||||
.float16 = true,
|
||||
},
|
||||
.ubo_ptr_type = glsl_vector_type(GLSL_TYPE_UINT, 2),
|
||||
.ssbo_ptr_type = glsl_vector_type(GLSL_TYPE_UINT, 2),
|
||||
|
Reference in New Issue
Block a user