mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
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:
parent
bbe8febd93
commit
14f03978ed
2 changed files with 2 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue