mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 07:20:10 +01:00
intel/brw: Add brw_data_type_float/brw_data_type_int
These type encodings were first were used in dpas instructions, but continue to be used in more places. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39007>
This commit is contained in:
parent
54accefed2
commit
46e843f76e
1 changed files with 27 additions and 0 deletions
|
|
@ -188,6 +188,33 @@ brw_type_larger_of(enum brw_reg_type a, enum brw_reg_type b)
|
||||||
|
|
||||||
/* -------------------------------------------------------------- */
|
/* -------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enum for float data types.
|
||||||
|
*/
|
||||||
|
enum PACKED brw_data_type_float {
|
||||||
|
BRW_TYPE_FLOAT_BF8 = 0,
|
||||||
|
BRW_TYPE_FLOAT_HF = 1,
|
||||||
|
BRW_TYPE_FLOAT_F = 2,
|
||||||
|
BRW_TYPE_FLOAT_DF = 3,
|
||||||
|
BRW_TYPE_FLOAT_HF8 = 4,
|
||||||
|
BRW_TYPE_FLOAT_BF = 5,
|
||||||
|
BRW_TYPE_FLOAT_TF32 = 6,
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enum for integer data types.
|
||||||
|
*/
|
||||||
|
enum PACKED brw_data_type_int {
|
||||||
|
BRW_TYPE_INT_UB = 0,
|
||||||
|
BRW_TYPE_INT_UW = 1,
|
||||||
|
BRW_TYPE_INT_UD = 2,
|
||||||
|
BRW_TYPE_INT_UQ = 3,
|
||||||
|
BRW_TYPE_INT_B = 4,
|
||||||
|
BRW_TYPE_INT_W = 5,
|
||||||
|
BRW_TYPE_INT_D = 6,
|
||||||
|
BRW_TYPE_INT_Q = 7,
|
||||||
|
};
|
||||||
|
|
||||||
unsigned
|
unsigned
|
||||||
brw_type_encode(const struct intel_device_info *devinfo,
|
brw_type_encode(const struct intel_device_info *devinfo,
|
||||||
enum brw_reg_file file, enum brw_reg_type type);
|
enum brw_reg_file file, enum brw_reg_type type);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue