diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-04-30 06:19:33 +0000 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-05-04 19:08:50 +0000 |
commit | d42c37e494a544aceefc98dc20c659d48a6cf850 (patch) | |
tree | 4596df28fac02d9c0b4b86ead2d19a4e77c376a3 | |
parent | 9559280fc30f46cd2fd675f8e84b26925d205813 (diff) |
panfrost/midgard: Rename ilzcnt8 -> iclz
Per OpenCL.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
-rw-r--r-- | src/gallium/drivers/panfrost/midgard/helpers.h | 2 | ||||
-rw-r--r-- | src/gallium/drivers/panfrost/midgard/midgard.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/panfrost/midgard/helpers.h b/src/gallium/drivers/panfrost/midgard/helpers.h index d2855cd89cd..2be192a363b 100644 --- a/src/gallium/drivers/panfrost/midgard/helpers.h +++ b/src/gallium/drivers/panfrost/midgard/helpers.h @@ -224,7 +224,7 @@ static struct { [midgard_alu_op_inor] = {"inor", UNITS_MOST | OP_COMMUTES}, [midgard_alu_op_ixor] = {"ixor", UNITS_MOST | OP_COMMUTES}, [midgard_alu_op_inxor] = {"inxor", UNITS_MOST | OP_COMMUTES}, - [midgard_alu_op_ilzcnt] = {"ilzcnt", UNITS_ADD}, + [midgard_alu_op_iclz] = {"iclz", UNITS_ADD}, [midgard_alu_op_ibitcount8] = {"ibitcount8", UNITS_ADD}, [midgard_alu_op_inand] = {"inand", UNITS_MOST}, [midgard_alu_op_ishl] = {"ishl", UNITS_ADD}, diff --git a/src/gallium/drivers/panfrost/midgard/midgard.h b/src/gallium/drivers/panfrost/midgard/midgard.h index e86f517442d..c2808937b43 100644 --- a/src/gallium/drivers/panfrost/midgard/midgard.h +++ b/src/gallium/drivers/panfrost/midgard/midgard.h @@ -94,7 +94,7 @@ typedef enum { midgard_alu_op_iornot = 0x75, /* (a | ~b) */ midgard_alu_op_ixor = 0x76, midgard_alu_op_inxor = 0x77, /* ~(a & b) */ - midgard_alu_op_ilzcnt = 0x78, /* Number of zeroes on left. 31 - ilzcnt(x) = findMSB(x) */ + midgard_alu_op_iclz = 0x78, /* Number of zeroes on left */ midgard_alu_op_ibitcount8 = 0x7A, /* Counts bits in 8-bit increments */ midgard_alu_op_imov = 0x7B, midgard_alu_op_iabs = 0x7C, |