intel/elk: Use the pixel_coord UW x/y values for noncoherent FB reads.

No need to force generating the float cast just to turn it back to an int.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25190>
This commit is contained in:
Emma Anholt 2025-02-21 10:43:35 -08:00 committed by Marge Bot
parent 1134cdc198
commit 241bc5da70

View file

@ -3187,8 +3187,8 @@ emit_non_coherent_fb_read(nir_to_elk_state &ntb, const fs_builder &bld, const el
/* Calculate the fragment coordinates. */
const elk_fs_reg coords = bld.vgrf(ELK_REGISTER_TYPE_UD, 3);
bld.MOV(offset(coords, bld, 0), s.pixel_x);
bld.MOV(offset(coords, bld, 1), s.pixel_y);
bld.MOV(offset(coords, bld, 0), s.uw_pixel_x);
bld.MOV(offset(coords, bld, 1), s.uw_pixel_y);
bld.MOV(offset(coords, bld, 2), fetch_render_target_array_index(bld));
/* Calculate the sample index and MCS payload when multisampling. Luckily