turnip: enable VK_KHR_shader_float16_int8
ir3 supports 16-bit floats, so we can enable this. Signed-off-by: Jonathan Marek <jonathan@marek.ca> Reviewed-by: Danylo Piliaiev <dpiliaiev@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9840>
This commit is contained in:
parent
64aaa4afc3
commit
14acc64c3b
|
@ -140,5 +140,10 @@ dEQP-VK.spirv_assembly.instruction.graphics.opquantize.too_small_tessc,Fail
|
|||
dEQP-VK.spirv_assembly.instruction.graphics.spirv_ids_abuse.lots_ids_geom,Timeout
|
||||
dEQP-VK.spirv_assembly.instruction.graphics.variable_pointers.graphics.writes_single_buffer_geom,Fail
|
||||
dEQP-VK.spirv_assembly.instruction.graphics.variable_pointers.graphics.writes_two_buffers_geom,Fail
|
||||
dEQP-VK.spirv_assembly.instruction.graphics.float16.opvectorshuffle.344_vert,Crash
|
||||
dEQP-VK.spirv_assembly.instruction.graphics.float16.opvectorshuffle.444_geom,Crash
|
||||
dEQP-VK.spirv_assembly.instruction.graphics.float16.opvectorshuffle.244_tessc,Crash
|
||||
dEQP-VK.spirv_assembly.instruction.graphics.float16.opvectorshuffle.344_frag,Crash
|
||||
dEQP-VK.spirv_assembly.instruction.compute.float16.opvectorshuffle.344,Crash
|
||||
dEQP-VK.texture.filtering.cube.formats.d24_unorm_s8_uint_stencil.nearest,Fail
|
||||
dEQP-VK.wsi.display_control.register_device_event,Crash
|
||||
|
|
|
@ -416,7 +416,7 @@ tu_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
|
|||
features->storagePushConstant8 = false;
|
||||
features->shaderBufferInt64Atomics = false;
|
||||
features->shaderSharedInt64Atomics = false;
|
||||
features->shaderFloat16 = false;
|
||||
features->shaderFloat16 = true;
|
||||
features->shaderInt8 = false;
|
||||
|
||||
features->descriptorIndexing = true;
|
||||
|
@ -601,7 +601,13 @@ tu_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
|
|||
features->pipelineExecutableInfo = true;
|
||||
break;
|
||||
}
|
||||
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES: {
|
||||
VkPhysicalDeviceShaderFloat16Int8Features *features =
|
||||
(VkPhysicalDeviceShaderFloat16Int8Features *) ext;
|
||||
features->shaderFloat16 = true;
|
||||
features->shaderInt8 = false;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -111,6 +111,7 @@ EXTENSIONS = [
|
|||
Extension('VK_KHR_external_fence_capabilities', 1, True),
|
||||
Extension('VK_KHR_pipeline_executable_properties', 1, True),
|
||||
Extension('VK_KHR_shader_float_controls', 1, True),
|
||||
Extension('VK_KHR_shader_float16_int8', 1, True),
|
||||
]
|
||||
|
||||
MAX_API_VERSION = VkVersion(MAX_API_VERSION)
|
||||
|
|
|
@ -74,6 +74,7 @@ tu_spirv_to_nir(struct tu_device *dev,
|
|||
.descriptor_array_non_uniform_indexing = true,
|
||||
.runtime_descriptor_array = true,
|
||||
.float_controls = true,
|
||||
.float16 = true,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue