diff options
author | Dave Airlie <[email protected]> | 2016-06-10 11:25:29 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-06-11 06:44:30 +1000 |
commit | 1584918996f0deb5de0c4759b23d00ce52db37a4 (patch) | |
tree | c76cbd9d5143514daf89c7c9427fe48372372b35 /src | |
parent | f550b6d296220fdc5f256bb55a3b3422930f957d (diff) |
gallivm: more 64-bit integer prep work.
This converts one other place to using the new helper.
Reviewed-by: Nicolai Hähnle <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_tgsi.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi.c index 614c6558ede..389cbebf0be 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi.c @@ -186,15 +186,15 @@ void lp_build_fetch_args( } /** - * with doubles src and dst channels aren't 1:1. + * with 64-bit src and dst channels aren't 1:1. * check the src/dst types for the opcode, - * 1. if neither is double then src == dst; - * 2. if dest is double + * 1. if neither is 64-bit then src == dst; + * 2. if dest is 64-bit * - don't store to y or w - * - if src is double then src == dst. + * - if src is 64-bit then src == dst. * - else for f2d, d.xy = s.x * - else for f2d, d.zw = s.y - * 3. if dst is single, src is double + * 3. if dst is single, src is 64-bit * - map dst x,z to src xy; * - map dst y,w to src zw; */ @@ -204,12 +204,12 @@ static int get_src_chan_idx(unsigned opcode, enum tgsi_opcode_type dtype = tgsi_opcode_infer_dst_type(opcode); enum tgsi_opcode_type stype = tgsi_opcode_infer_src_type(opcode); - if (dtype != TGSI_TYPE_DOUBLE && stype != TGSI_TYPE_DOUBLE) + if (!tgsi_type_is_64bit(dtype) && !tgsi_type_is_64bit(stype)) return dst_chan_index; - if (dtype == TGSI_TYPE_DOUBLE) { + if (tgsi_type_is_64bit(dtype)) { if (dst_chan_index == 1 || dst_chan_index == 3) return -1; - if (stype == TGSI_TYPE_DOUBLE) + if (tgsi_type_is_64bit(stype)) return dst_chan_index; if (dst_chan_index == 0) return 0; |