mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 16:56:50 +00:00
[AMDGPU] fix amd_kernel_code_t bit field position as per spec (added missing reserved fields)
lit tests passed before and after because it doesn't test the binary representation of amd_kernel_code_t. Patch by: Valery Pykhtin (Valery.Pykhtin@amd.com) Reviewers: arsenm git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@261732 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
16e21309bf
commit
60afe01d26
@ -127,10 +127,14 @@ enum amd_code_property_mask_t {
|
||||
AMD_CODE_PROPERTY_ENABLE_SGPR_GRID_WORKGROUP_COUNT_Z_WIDTH = 1,
|
||||
AMD_CODE_PROPERTY_ENABLE_SGPR_GRID_WORKGROUP_COUNT_Z = ((1 << AMD_CODE_PROPERTY_ENABLE_SGPR_GRID_WORKGROUP_COUNT_Z_WIDTH) - 1) << AMD_CODE_PROPERTY_ENABLE_SGPR_GRID_WORKGROUP_COUNT_Z_SHIFT,
|
||||
|
||||
AMD_CODE_PROPERTY_RESERVED1_SHIFT = 10,
|
||||
AMD_CODE_PROPERTY_RESERVED1_WIDTH = 6,
|
||||
AMD_CODE_PROPERTY_RESERVED1 = ((1 << AMD_CODE_PROPERTY_RESERVED1_WIDTH) - 1) << AMD_CODE_PROPERTY_RESERVED1_SHIFT,
|
||||
|
||||
/// Control wave ID base counter for GDS ordered-append. Used to set
|
||||
/// COMPUTE_DISPATCH_INITIATOR.ORDERED_APPEND_ENBL. (Not sure if
|
||||
/// ORDERED_APPEND_MODE also needs to be settable)
|
||||
AMD_CODE_PROPERTY_ENABLE_ORDERED_APPEND_GDS_SHIFT = 10,
|
||||
AMD_CODE_PROPERTY_ENABLE_ORDERED_APPEND_GDS_SHIFT = 16,
|
||||
AMD_CODE_PROPERTY_ENABLE_ORDERED_APPEND_GDS_WIDTH = 1,
|
||||
AMD_CODE_PROPERTY_ENABLE_ORDERED_APPEND_GDS = ((1 << AMD_CODE_PROPERTY_ENABLE_ORDERED_APPEND_GDS_WIDTH) - 1) << AMD_CODE_PROPERTY_ENABLE_ORDERED_APPEND_GDS_SHIFT,
|
||||
|
||||
@ -155,7 +159,7 @@ enum amd_code_property_mask_t {
|
||||
/// is generally DWORD.
|
||||
///
|
||||
/// uSE VALUES FROM THE AMD_ELEMENT_BYTE_SIZE_T ENUM.
|
||||
AMD_CODE_PROPERTY_PRIVATE_ELEMENT_SIZE_SHIFT = 11,
|
||||
AMD_CODE_PROPERTY_PRIVATE_ELEMENT_SIZE_SHIFT = 17,
|
||||
AMD_CODE_PROPERTY_PRIVATE_ELEMENT_SIZE_WIDTH = 2,
|
||||
AMD_CODE_PROPERTY_PRIVATE_ELEMENT_SIZE = ((1 << AMD_CODE_PROPERTY_PRIVATE_ELEMENT_SIZE_WIDTH) - 1) << AMD_CODE_PROPERTY_PRIVATE_ELEMENT_SIZE_SHIFT,
|
||||
|
||||
@ -164,7 +168,7 @@ enum amd_code_property_mask_t {
|
||||
/// HSA_MACHINE_LARGE. Must also match
|
||||
/// SH_MEM_CONFIG.PTR32 (GFX6 (SI)/GFX7 (CI)),
|
||||
/// SH_MEM_CONFIG.ADDRESS_MODE (GFX8 (VI)+).
|
||||
AMD_CODE_PROPERTY_IS_PTR64_SHIFT = 13,
|
||||
AMD_CODE_PROPERTY_IS_PTR64_SHIFT = 19,
|
||||
AMD_CODE_PROPERTY_IS_PTR64_WIDTH = 1,
|
||||
AMD_CODE_PROPERTY_IS_PTR64 = ((1 << AMD_CODE_PROPERTY_IS_PTR64_WIDTH) - 1) << AMD_CODE_PROPERTY_IS_PTR64_SHIFT,
|
||||
|
||||
@ -176,18 +180,22 @@ enum amd_code_property_mask_t {
|
||||
/// workitem_private_segment_byte_size only specifies the statically
|
||||
/// know private segment size, and additional space must be added
|
||||
/// for the call stack.
|
||||
AMD_CODE_PROPERTY_IS_DYNAMIC_CALLSTACK_SHIFT = 14,
|
||||
AMD_CODE_PROPERTY_IS_DYNAMIC_CALLSTACK_SHIFT = 20,
|
||||
AMD_CODE_PROPERTY_IS_DYNAMIC_CALLSTACK_WIDTH = 1,
|
||||
AMD_CODE_PROPERTY_IS_DYNAMIC_CALLSTACK = ((1 << AMD_CODE_PROPERTY_IS_DYNAMIC_CALLSTACK_WIDTH) - 1) << AMD_CODE_PROPERTY_IS_DYNAMIC_CALLSTACK_SHIFT,
|
||||
|
||||
/// Indicate if code generated has support for debugging.
|
||||
AMD_CODE_PROPERTY_IS_DEBUG_SUPPORTED_SHIFT = 15,
|
||||
AMD_CODE_PROPERTY_IS_DEBUG_SUPPORTED_SHIFT = 21,
|
||||
AMD_CODE_PROPERTY_IS_DEBUG_SUPPORTED_WIDTH = 1,
|
||||
AMD_CODE_PROPERTY_IS_DEBUG_SUPPORTED = ((1 << AMD_CODE_PROPERTY_IS_DEBUG_SUPPORTED_WIDTH) - 1) << AMD_CODE_PROPERTY_IS_DEBUG_SUPPORTED_SHIFT,
|
||||
|
||||
AMD_CODE_PROPERTY_IS_XNACK_SUPPORTED_SHIFT = 15,
|
||||
AMD_CODE_PROPERTY_IS_XNACK_SUPPORTED_SHIFT = 22,
|
||||
AMD_CODE_PROPERTY_IS_XNACK_SUPPORTED_WIDTH = 1,
|
||||
AMD_CODE_PROPERTY_IS_XNACK_SUPPORTED = ((1 << AMD_CODE_PROPERTY_IS_XNACK_SUPPORTED_WIDTH) - 1) << AMD_CODE_PROPERTY_IS_XNACK_SUPPORTED_SHIFT
|
||||
AMD_CODE_PROPERTY_IS_XNACK_SUPPORTED = ((1 << AMD_CODE_PROPERTY_IS_XNACK_SUPPORTED_WIDTH) - 1) << AMD_CODE_PROPERTY_IS_XNACK_SUPPORTED_SHIFT,
|
||||
|
||||
AMD_CODE_PROPERTY_RESERVED2_SHIFT = 23,
|
||||
AMD_CODE_PROPERTY_RESERVED2_WIDTH = 9,
|
||||
AMD_CODE_PROPERTY_RESERVED2 = ((1 << AMD_CODE_PROPERTY_RESERVED2_WIDTH) - 1) << AMD_CODE_PROPERTY_RESERVED2_SHIFT
|
||||
};
|
||||
|
||||
/// @brief The hsa_ext_control_directives_t specifies the values for the HSAIL
|
||||
|
Loading…
Reference in New Issue
Block a user