mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-23 21:38:18 +02:00
vulkan/meta: use nir_op_ffma_weak
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41165>
This commit is contained in:
parent
f3e8a5adda
commit
16d47c246d
1 changed files with 2 additions and 2 deletions
|
|
@ -218,7 +218,7 @@ build_blit_shader(const struct vk_meta_blit_key *key)
|
|||
|
||||
nir_def *out_coord_xy = nir_load_frag_coord(b);
|
||||
out_coord_xy = nir_trim_vector(b, out_coord_xy, 2);
|
||||
nir_def *src_coord_xy = nir_ffma_old(b, out_coord_xy, xy_scale, xy_off);
|
||||
nir_def *src_coord_xy = nir_ffma_weak(b, out_coord_xy, xy_scale, xy_off);
|
||||
|
||||
nir_def *z_xform = load_struct_var(b, push, 1);
|
||||
nir_def *out_layer = nir_load_layer_id(b);
|
||||
|
|
@ -227,7 +227,7 @@ build_blit_shader(const struct vk_meta_blit_key *key)
|
|||
nir_def *z_off = nir_channel(b, z_xform, 0);
|
||||
nir_def *z_scale = nir_channel(b, z_xform, 1);
|
||||
nir_def *out_coord_z = nir_fadd_imm(b, nir_u2f32(b, out_layer), 0.5);
|
||||
nir_def *src_coord_z = nir_ffma_old(b, out_coord_z, z_scale, z_off);
|
||||
nir_def *src_coord_z = nir_ffma_weak(b, out_coord_z, z_scale, z_off);
|
||||
src_coord = nir_vec3(b, nir_channel(b, src_coord_xy, 0),
|
||||
nir_channel(b, src_coord_xy, 1),
|
||||
src_coord_z);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue