diff options
author | Marek Olšák <[email protected]> | 2018-09-21 21:30:09 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-10-06 21:50:09 -0400 |
commit | 77903c8cfbaa609d132ea5e5fbca062e0b2f0808 (patch) | |
tree | 0e56f3dcaf89f5cd1135cbf325fc3fb0d7222264 /src/gallium/drivers/radeonsi | |
parent | fa023f293eb48d1d2e3c6efb89f4192c4a565fed (diff) |
ac: add ac_build_round
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c b/src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c index cabc448a082..8c44831bccb 100644 --- a/src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c +++ b/src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c @@ -1446,9 +1446,7 @@ static void build_tex_intrinsic(const struct lp_build_tgsi_action *action, opcode != TGSI_OPCODE_TXF_LZ && ctx->screen->info.chip_class <= VI) { unsigned array_coord = target == TGSI_TEXTURE_1D_ARRAY ? 1 : 2; - args.coords[array_coord] = - ac_build_intrinsic(&ctx->ac, "llvm.rint.f32", ctx->f32, - &args.coords[array_coord], 1, 0); + args.coords[array_coord] = ac_build_round(&ctx->ac, args.coords[array_coord]); } /* 1D textures are allocated and used as 2D on GFX9. */ |